summaryrefslogtreecommitdiff
path: root/src/program.h
diff options
context:
space:
mode:
authorAdrian Thurston <thurston@complang.org>2015-05-10 15:17:12 -0400
committerAdrian Thurston <thurston@complang.org>2015-05-10 15:17:12 -0400
commit041084f89d3b05c4e9817002fcbe363839336538 (patch)
tree11827b1aa63701884474bf397fa2f21267483da3 /src/program.h
parent26ba9ef6c965fed03f081054bdb11d212e55f311 (diff)
downloadcolm-041084f89d3b05c4e9817002fcbe363839336538.tar.gz
some naming cleanup
Diffstat (limited to 'src/program.h')
-rw-r--r--src/program.h29
1 files changed, 14 insertions, 15 deletions
diff --git a/src/program.h b/src/program.h
index 1d244ce2..9d86415d 100644
--- a/src/program.h
+++ b/src/program.h
@@ -24,15 +24,15 @@
#include <colm/pdarun.h>
-typedef struct ColmStackBlock
+struct stack_block
{
Tree **data;
int len;
int offset;
- struct ColmStackBlock *next;
-} StackBlock;
+ struct stack_block *next;
+};
-typedef struct colm_sections
+struct colm_sections
{
LangElInfo *lelInfo;
long numLangEls;
@@ -75,8 +75,8 @@ typedef struct colm_sections
CaptureAttr *captureAttr;
long numCapturedAttr;
- FsmTables *fsmTables;
- PdaTables *pdaTables;
+ struct fsm_tables *fsmTables;
+ struct pda_tables *pdaTables;
int *startStates;
int *eofLelIds;
int *parserLelIds;
@@ -94,19 +94,19 @@ typedef struct colm_sections
long globalId;
long argvElId;
- void (*fsmExecute)( struct pda_run *pdaRun, struct _StreamImpl *inputStream );
+ void (*fsm_execute)( struct pda_run *pdaRun, struct _StreamImpl *inputStream );
void (*sendNamedLangEl)( struct colm_program *prg, Tree **tree,
struct pda_run *pdaRun, struct _StreamImpl *inputStream );
void (*initBindings)( struct pda_run *pdaRun );
void (*popBinding)( struct pda_run *pdaRun, ParseTree *tree );
-} RuntimeData;
+};
-typedef struct colm_heap_list
+struct heap_list
{
struct colm_struct *head;
struct colm_struct *tail;
-} HeapList;
+};
struct colm_program
{
@@ -116,7 +116,7 @@ struct colm_program
const char **argv;
unsigned char ctxDepParsing;
- RuntimeData *rtd;
+ struct colm_sections *rtd;
struct colm_struct *global;
int induceExit;
int exitStatus;
@@ -130,7 +130,7 @@ struct colm_program
Tree *trueVal;
Tree *falseVal;
- struct colm_heap_list heap;
+ struct heap_list heap;
Stream *stdinVal;
Stream *stdoutVal;
@@ -144,9 +144,8 @@ struct colm_program
Tree **sb_beg;
Tree **sb_end;
long sb_total;
- StackBlock *reserve;
-
- StackBlock *stackBlock;
+ struct stack_block *reserve;
+ struct stack_block *stackBlock;
Tree **stackRoot;
/* Returned value for main program and any exported functions. */