Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

/home/groups/n/no/noxwizard/cvs/src/compiler/sc7.c File Reference

#include <assert.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#include "sc.h"
#include "sc7.scp"

Compounds

struct  argstack

Defines

#define sSTG_GROW   512
#define sSTG_MAX   20480
#define CHECK_STGBUFFER(index)   if ((int)(index)>=stgmax) grow_stgbuffer((index)+1)
#define _maxoptvars   4
#define _aliasmax   10

Functions

void stgstring (char *start, char *end)
void stgopt (char *start, char *end)
void grow_stgbuffer (int requiredsize)
void stgbuffer_cleanup (void)
void stgmark (char mark)
int filewrite (char *str)
void stgwrite (char *st)
void stgout (int index)
void stgdel (int index, cell code_index)
int stgget (int *index, cell *code_index)
void stgset (int onoff)
int phopt_init (void)
int phopt_cleanup (void)
int matchsequence (char *start, char *end, char *pattern, char symbols[4][10+1], int *num)
void replacesequence (char *pattern, char symbols[4][10+1])

Variables

char * stgbuf = NULL
int stgmax = 0
SEQUENCE * sequences

Define Documentation

#define _aliasmax   10
 

#define _maxoptvars   4
 

#define CHECK_STGBUFFER index       if ((int)(index)>=stgmax) grow_stgbuffer((index)+1)
 

#define sSTG_GROW   512
 

#define sSTG_MAX   20480
 


Function Documentation

int filewrite char *    str [static]
 

void grow_stgbuffer int    requiredsize [static]
 

int matchsequence char *    start,
char *    end,
char *    pattern,
char    symbols[4][10+1],
int *    num
[static]
 

int phopt_cleanup void   
 

int phopt_init void   
 

void replacesequence char *    pattern,
char    symbols[4][10+1]
[static]
 

void stgbuffer_cleanup void   
 

void stgdel int    index,
cell    code_index
 

int stgget int *    index,
cell   code_index
 

void stgmark char    mark
 

void stgopt char *    start,
char *    end
[static]
 

void stgout int    index
 

void stgset int    onoff
 

void stgstring char *    start,
char *    end
[static]
 

void stgwrite char *    st
 


Variable Documentation

SEQUENCE* sequences [static]
 

char* stgbuf = NULL [static]
 

int stgmax = 0 [static]
 

SourceForge.net Logo