modify symtab.h struct naming
This commit is contained in:
12
src/symtab.h
12
src/symtab.h
@@ -15,9 +15,9 @@
|
|||||||
/* the list of line numbers of the source
|
/* the list of line numbers of the source
|
||||||
* code in which a variable is referenced
|
* code in which a variable is referenced
|
||||||
*/
|
*/
|
||||||
typedef struct LineListRec {
|
typedef struct LineListEntry {
|
||||||
int lineno;
|
int lineno;
|
||||||
struct LineListRec *next;
|
struct LineListEntry *next;
|
||||||
} *LineList;
|
} *LineList;
|
||||||
|
|
||||||
/* The record in the bucket lists for
|
/* The record in the bucket lists for
|
||||||
@@ -26,18 +26,18 @@ typedef struct LineListRec {
|
|||||||
* the list of line numbers in which
|
* the list of line numbers in which
|
||||||
* it appears in the source code
|
* it appears in the source code
|
||||||
*/
|
*/
|
||||||
typedef struct BucketListRec {
|
typedef struct BucketListEntry {
|
||||||
char *name;
|
char *name;
|
||||||
LineList lines;
|
LineList lines;
|
||||||
ExpType type;
|
ExpType type;
|
||||||
int memloc; /* memory location for variable */
|
int memloc; /* memory location for variable */
|
||||||
struct BucketListRec *next;
|
struct BucketListEntry *next;
|
||||||
} *BucketList;
|
} *BucketList;
|
||||||
|
|
||||||
typedef struct ScopeListRec {
|
typedef struct Scope {
|
||||||
char *name;
|
char *name;
|
||||||
int depth;
|
int depth;
|
||||||
struct ScopeListRec *parent;
|
struct Scope *parent;
|
||||||
BucketList hashTable[SYMTAB_SIZE];
|
BucketList hashTable[SYMTAB_SIZE];
|
||||||
} *Scope;
|
} *Scope;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user