#include <stdio.h>
#include "symtable.h"
+#if 0
#define DD
+#endif
struct symbol *tab_new(void)
{
}
do {
- if((elm->type == type) && (strcmp(elm->ident, ident) == 0)) {
+ if((elm->type & type) && (strcmp(elm->ident, ident) == 0)) {
return elm;
}
elm = elm->next;
printf("check: tab(%08X), ident(%s), type(%i), elm(%08X)\n", tab, ident, type, elm);
#endif
- if(type == S_VAR) {
+ if(type & (S_VAR | S_PARM)) {
elm = tab_lookup(tab, ident, type);
if(elm != SYMNULL) {
return;