64 |
out_hash= out_hash%HASHTBLSIZE; |
out_hash= out_hash%HASHTBLSIZE; |
65 |
position= &(in_hashtbl[out_hash]); |
position= &(in_hashtbl[out_hash]); |
66 |
|
|
67 |
while(position != NULL){ |
while(1){ |
68 |
if(*position==NULL) /* If empty */ |
if(*position==NULL) /* If empty */ |
69 |
return position; |
return position; |
70 |
|
|
73 |
|
|
74 |
position= &((*position)->next); /* Try next */ |
position= &((*position)->next); /* Try next */ |
75 |
} |
} |
|
return NULL; /* end of list reached without finding |
|
|
an empty position */ |
|
76 |
} |
} |
77 |
|
|
78 |
/* Generic push function. */ |
/* Generic push function. */ |
216 |
printf("\"%s\"", (char*)temp->content.ptr); |
printf("\"%s\"", (char*)temp->content.ptr); |
217 |
break; |
break; |
218 |
case symbol: |
case symbol: |
219 |
|
case func: |
220 |
printf("%s", temp->id); |
printf("%s", temp->id); |
221 |
break; |
break; |
222 |
default: |
default: |