diff options
author | kugwa <kugwa2000@gmail.com> | 2015-10-21 14:31:59 +0800 |
---|---|---|
committer | kugwa <kugwa2000@gmail.com> | 2015-10-21 14:33:13 +0800 |
commit | 0eef921b4e2620600d2ed77ac0adf737ba7d3fa2 (patch) | |
tree | 6f7950470577d34c55967c856da495a2406e2a3c | |
parent | 000bed18daaf2ed26a2b6371f6032881a6e5cdb9 (diff) | |
download | compiler2015-0eef921b4e2620600d2ed77ac0adf737ba7d3fa2.tar compiler2015-0eef921b4e2620600d2ed77ac0adf737ba7d3fa2.tar.gz compiler2015-0eef921b4e2620600d2ed77ac0adf737ba7d3fa2.tar.bz2 compiler2015-0eef921b4e2620600d2ed77ac0adf737ba7d3fa2.tar.lz compiler2015-0eef921b4e2620600d2ed77ac0adf737ba7d3fa2.tar.xz compiler2015-0eef921b4e2620600d2ed77ac0adf737ba7d3fa2.tar.zst compiler2015-0eef921b4e2620600d2ed77ac0adf737ba7d3fa2.zip |
Replace tabs with spaces in symbol-table.c
-rw-r--r-- | symbol-table.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/symbol-table.c b/symbol-table.c index a281e5e..785faf8 100644 --- a/symbol-table.c +++ b/symbol-table.c @@ -51,7 +51,7 @@ void insertID(char *name) { hash_table[hash_key] = symptr; symptr->front = NULL; symptr->back = symptr; - } else { + } else { symptr->front = ptr; ptr->back = symptr; symptr->back = symptr; @@ -73,13 +73,13 @@ void printSymTab(void) { for (int i = 0; i < TABLE_SIZE; i++) { symtab *symptr; - symptr = hash_table[i]; - while (symptr != NULL) - { - printf("====> index = %d\n", i); - printSym(symptr); - symptr = symptr->front; - } + symptr = hash_table[i]; + while (symptr != NULL) + { + printf("====> index = %d\n", i); + printSym(symptr); + symptr = symptr->front; + } } } |