edited while loops in grammar to not look for comparison to NULL. Undefined instead
This commit is contained in:
@ -196,7 +196,7 @@ function_declaration:
|
||||
idlist:
|
||||
ID {
|
||||
TableNode *entry = getFirstEntry(cur);
|
||||
while (getName(entry) != NULL) {
|
||||
while (strcmp(getName(entry),"undefined") != 0) {
|
||||
entry = getNextEntry(entry);
|
||||
}
|
||||
if (getNextEntry(entry) == NULL) {
|
||||
@ -207,7 +207,7 @@ idlist:
|
||||
| ID {
|
||||
|
||||
TableNode *entry = getFirstEntry(cur);
|
||||
while (getName(entry) != NULL) {
|
||||
while (strcmp(getName(entry),"undefined") != 0) {
|
||||
entry = getNextEntry(entry);
|
||||
}
|
||||
if (getNextEntry(entry) != NULL) {
|
||||
|
Reference in New Issue
Block a user