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

Diff for /src/usr.bin/lex/sym.c between version 1.8 and 1.9

version 1.8, 2015/11/19 23:20:34 version 1.9, 2015/11/19 23:34:56
Line 122 
Line 122 
 /* cclinstal - save the text of a character class */  /* cclinstal - save the text of a character class */
   
 void    cclinstal (ccltxt, cclnum)  void    cclinstal (ccltxt, cclnum)
      Char    ccltxt[];       u_char    ccltxt[];
      int     cclnum;       int     cclnum;
 {  {
         /* We don't bother checking the return status because we are not          /* We don't bother checking the return status because we are not
Line 140 
Line 140 
  */   */
   
 int     ccllookup (ccltxt)  int     ccllookup (ccltxt)
      Char    ccltxt[];       u_char    ccltxt[];
 {  {
         return findsym ((char *) ccltxt, ccltab, CCL_HASH_SIZE)->int_val;          return findsym ((char *) ccltxt, ccltab, CCL_HASH_SIZE)->int_val;
 }  }
Line 195 
Line 195 
   
 void    ndinstal (name, definition)  void    ndinstal (name, definition)
      const char *name;       const char *name;
      Char    definition[];       u_char    definition[];
 {  {
   
         if (addsym (copy_string (name),          if (addsym (copy_string (name),
Line 210 
Line 210 
  * Returns a nil pointer if the name definition does not exist.   * Returns a nil pointer if the name definition does not exist.
  */   */
   
 Char   *ndlookup (nd)  u_char   *ndlookup (nd)
      const char *nd;       const char *nd;
 {  {
         return (Char *) findsym (nd, ndtbl, NAME_TABLE_HASH_SIZE)->str_val;          return (u_char *) findsym (nd, ndtbl, NAME_TABLE_HASH_SIZE)->str_val;
 }  }
   
   

Legend:
Removed from v.1.8  
changed lines
  Added in v.1.9