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

Diff for /src/usr.bin/m4/look.c between version 1.9 and 1.10

version 1.9, 2002/02/16 21:27:48 version 1.10, 2002/04/26 16:15:16
Line 57 
Line 57 
   
 static void freent(ndptr);  static void freent(ndptr);
   
 unsigned  unsigned int
 hash(name)  hash(const char *name)
         const char *name;  
 {  {
         unsigned int h = 0;          unsigned int h = 0;
         while (*name)          while (*name)
Line 71 
Line 70 
  * find name in the hash table   * find name in the hash table
  */   */
 ndptr  ndptr
 lookup(name)  lookup(const char *name)
         const char *name;  
 {  {
         ndptr p;          ndptr p;
         unsigned int h;          unsigned int h;
Line 89 
Line 87 
  * The new entry is added in front of a hash bucket.   * The new entry is added in front of a hash bucket.
  */   */
 ndptr  ndptr
 addent(name)  addent(const char *name)
         const char *name;  
 {  {
         unsigned int h;          unsigned int h;
         ndptr p;          ndptr p;
Line 105 
Line 102 
 }  }
   
 static void  static void
 freent(p)  freent(ndptr p)
         ndptr p;  
 {  {
         free((char *) p->name);          free((char *) p->name);
         if (p->defn != null)          if (p->defn != null)
Line 118 
Line 114 
  * remove an entry from the hashtable   * remove an entry from the hashtable
  */   */
 void  void
 remhash(name, all)  remhash(const char *name, int all)
         const char *name;  
         int all;  
 {  {
         unsigned int h;          unsigned int h;
         ndptr xp, tp, mp;          ndptr xp, tp, mp;

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