[BACK]Return to main.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / m4

Diff for /src/usr.bin/m4/main.c between version 1.57 and 1.58

version 1.57, 2003/06/12 14:36:43 version 1.58, 2003/06/18 21:08:07
Line 586 
Line 586 
                 p->nxtptr = hashtab[h % HASHSIZE];                  p->nxtptr = hashtab[h % HASHSIZE];
                 hashtab[h % HASHSIZE] = p;                  hashtab[h % HASHSIZE] = p;
                 p->name = xstrdup(keywrds[i].knam);                  p->name = xstrdup(keywrds[i].knam);
                 p->defn = null;                  p->defn = xstrdup(keywrds[i].knam);
                 p->hv = h;                  p->hv = h;
                 p->type = keywrds[i].ktyp & TYPEMASK;                  p->type = keywrds[i].ktyp & TYPEMASK;
                 if ((keywrds[i].ktyp & NOARGS) == 0)                  if ((keywrds[i].ktyp & NOARGS) == 0)
Line 604 
Line 604 
                 if (STREQ(keywrds[i].knam, key))                  if (STREQ(keywrds[i].knam, key))
                         return keywrds[i].ktyp;                          return keywrds[i].ktyp;
         return -1;          return -1;
 }  
   
 char *  
 builtin_realname(int n)  
 {  
         int i;  
   
         for (i = 0; i != MAXKEYS; i++)  
                 if (((keywrds[i].ktyp ^ n) & TYPEMASK) == 0)  
                         return keywrds[i].knam;  
         return NULL;  
 }  }
   
 static void  static void

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