From f4501529dfbb5f1a998bc7f78aed76d017a899f1 Mon Sep 17 00:00:00 2001 From: yenru0 Date: Mon, 1 Dec 2025 16:55:56 +0900 Subject: [PATCH] modify symtab.h struct naming --- src/symtab.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/symtab.h b/src/symtab.h index a3a47d7..26661a9 100644 --- a/src/symtab.h +++ b/src/symtab.h @@ -15,9 +15,9 @@ /* the list of line numbers of the source * code in which a variable is referenced */ -typedef struct LineListRec { +typedef struct LineListEntry { int lineno; - struct LineListRec *next; + struct LineListEntry *next; } *LineList; /* The record in the bucket lists for @@ -26,18 +26,18 @@ typedef struct LineListRec { * the list of line numbers in which * it appears in the source code */ -typedef struct BucketListRec { +typedef struct BucketListEntry { char *name; LineList lines; ExpType type; int memloc; /* memory location for variable */ - struct BucketListRec *next; + struct BucketListEntry *next; } *BucketList; -typedef struct ScopeListRec { +typedef struct Scope { char *name; int depth; - struct ScopeListRec *parent; + struct Scope *parent; BucketList hashTable[SYMTAB_SIZE]; } *Scope;