[BACK]Return to lex.c CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / src / usr.bin / xlint / lint1

Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.

Diff for /src/usr.bin/xlint/lint1/lex.c between version 1.56 and 1.57

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;

Legend:
Removed from v.1.56  
changed lines
  Added in v.1.57

CVSweb <webmaster@jp.NetBSD.org>