[BACK]Return to chars.c CVS log [TXT][DIR] Up to [cvsweb.bsd.lv] / mandoc

Diff for /mandoc/chars.c between version 1.32 and 1.33

version 1.32, 2011/01/30 16:05:37 version 1.33, 2011/03/17 08:49:34
Line 92  chars_init(enum chars type)
Line 92  chars_init(enum chars type)
          * (they're in-line re-ordered during lookup).           * (they're in-line re-ordered during lookup).
          */           */
   
         tab = malloc(sizeof(struct ctab));          tab = mandoc_malloc(sizeof(struct ctab));
         if (NULL == tab) {          htab = mandoc_calloc(PRINT_HI - PRINT_LO + 1, sizeof(struct ln **));
                 perror(NULL);  
                 exit((int)MANDOCLEVEL_SYSERR);  
         }  
   
         htab = calloc(PRINT_HI - PRINT_LO + 1, sizeof(struct ln **));  
         if (NULL == htab) {  
                 perror(NULL);  
                 exit((int)MANDOCLEVEL_SYSERR);  
         }  
   
         for (i = 0; i < LINES_MAX; i++) {          for (i = 0; i < LINES_MAX; i++) {
                 hash = (int)lines[i].code[0] - PRINT_LO;                  hash = (int)lines[i].code[0] - PRINT_LO;

Legend:
Removed from v.1.32  
changed lines
  Added in v.1.33

CVSweb