exit(4);
}
- if(tab_lookup(tab, ident, type) != SYMNULL) {
+ if(tab_lookup(tab, ident, type) != SYMNULL || (type == S_VAR && tab_lookup(tab, ident, S_PARM) != SYMNULL)) {
if(check) {
fprintf(stderr, "Identifier doppelt vorhanden: \"%s\"\n", ident);
exit(3);
new_elm->param_index = param_index;
new_elm->soffset = soffset;
- if(tab == SYMNULL) {
- return new_elm;
- }
+ if(tab == SYMNULL) return new_elm;
while(elm->next != SYMNULL) {
elm = elm->next;
{
struct symbol *elm = tab;
- if(tab == SYMNULL) {
- return SYMNULL;
- }
+ if(tab == SYMNULL) return SYMNULL;
do {
if((elm->type & type) && (strcmp(elm->ident, ident) == 0)) {