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

Diff for /src/usr.bin/mandoc/Attic/man_hash.c between version 1.21 and 1.22

version 1.21, 2015/04/02 22:06:17 version 1.22, 2015/04/18 17:01:28
Line 45 
Line 45 
 static  unsigned char    table[26 * HASH_DEPTH];  static  unsigned char    table[26 * HASH_DEPTH];
   
   
 /*  
  * XXX - this hash has global scope, so if intended for use as a library  
  * with multiple callers, it will need re-invocation protection.  
  */  
 void  void
 man_hash_init(void)  man_hash_init(void)
 {  {
         int              i, j, x;          int              i, j, x;
   
           if (*table != '\0')
                   return;
   
         memset(table, UCHAR_MAX, sizeof(table));          memset(table, UCHAR_MAX, sizeof(table));
   

Legend:
Removed from v.1.21  
changed lines
  Added in v.1.22