diff options
author | Ting-Wei Lan <lantw44@gmail.com> | 2015-10-21 16:02:08 +0800 |
---|---|---|
committer | Ting-Wei Lan <lantw44@gmail.com> | 2015-10-21 16:02:08 +0800 |
commit | 9dda481bb913f613e7b41e4fbbc49d579bec0880 (patch) | |
tree | c7d4dcab17754e24f0785114de8341884c25b594 | |
parent | c96e3923d339fa7095c0d28da01009f95ae86340 (diff) | |
download | compiler2015-9dda481bb913f613e7b41e4fbbc49d579bec0880.tar compiler2015-9dda481bb913f613e7b41e4fbbc49d579bec0880.tar.gz compiler2015-9dda481bb913f613e7b41e4fbbc49d579bec0880.tar.bz2 compiler2015-9dda481bb913f613e7b41e4fbbc49d579bec0880.tar.lz compiler2015-9dda481bb913f613e7b41e4fbbc49d579bec0880.tar.xz compiler2015-9dda481bb913f613e7b41e4fbbc49d579bec0880.tar.zst compiler2015-9dda481bb913f613e7b41e4fbbc49d579bec0880.zip |
symbol-table.h needs a header guard
-rw-r--r-- | symbol-table.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/symbol-table.h b/symbol-table.h index aaeaac0..9ca58dc 100644 --- a/symbol-table.h +++ b/symbol-table.h @@ -1,3 +1,6 @@ +#ifndef CCMMC_HEADER_SYMBOL_TABLE_H +#define CCMMC_HEADER_SYMBOL_TABLE_H + struct symtab { char lexeme[256]; struct symtab *front; @@ -12,4 +15,5 @@ void insertID(char *name, int line_number); void printSymTab(void); symtab **fillTab(int *len); +#endif // vim: set sw=4 ts=4 sts=4 et: |