version 1.56, 2021/07/23 15:36:56 |
version 1.57, 2021/07/31 13:47:19 |
Line 450 lex_name(const char *yytext, size_t yyle |
|
Line 450 lex_name(const char *yytext, size_t yyle |
|
static sym_t * |
static sym_t * |
search(sbuf_t *sb) |
search(sbuf_t *sb) |
{ |
{ |
sym_t *sym; |
sym_t *sym; |
|
const struct kwtab *kw; |
|
|
for (sym = symtab[sb->sb_hash]; sym != NULL; sym = sym->s_link) { |
for (sym = symtab[sb->sb_hash]; sym != NULL; sym = sym->s_link) { |
if (strcmp(sym->s_name, sb->sb_name) == 0) { |
if (strcmp(sym->s_name, sb->sb_name) != 0) |
if (sym->s_keyword != NULL) { |
continue; |
const struct kwtab *kw = sym->s_keyword; |
kw = sym->s_keyword; |
if (!kw->kw_attr || attron) |
|
return sym; |
if (kw != NULL && !kw->kw_attr) |
} else if (!attron && sym->s_kind == symtyp) |
return sym; |
return sym; |
if (kw != NULL && attron) |
} |
return sym; |
|
if (kw == NULL && !attron && sym->s_kind == symtyp) |
|
return sym; |
} |
} |
|
|
return NULL; |
return NULL; |