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

Diff for /mandoc/Attic/ascii.c between version 1.3 and 1.5

version 1.3, 2009/03/20 15:14:01 version 1.5, 2009/04/05 16:34:22
Line 26 
Line 26 
 #define ASCII_PRINT_HI   126  #define ASCII_PRINT_HI   126
 #define ASCII_PRINT_LO   32  #define ASCII_PRINT_LO   32
   
 /*  
  * Lookup and hashing routines for constructing the ASCII symbol table,  
  * which should contain a significant portion of mdoc(7)'s special  
  * symbols.  
  */  
   
 struct  line {  struct  line {
         const char       *code;          const char       *code;
         const char       *out;          const char       *out;
Line 92  term_ascii2htab(void)
Line 86  term_ascii2htab(void)
         if (NULL == (tab = malloc(sizeof(struct asciitab))))          if (NULL == (tab = malloc(sizeof(struct asciitab))))
                 err(1, "malloc");                  err(1, "malloc");
   
         assert(0 == sizeof(lines) % sizeof(struct line));  
         len = sizeof(lines) / sizeof(struct line);          len = sizeof(lines) / sizeof(struct line);
   
         if (NULL == (p = calloc((size_t)len, sizeof(struct linep))))          if (NULL == (p = calloc((size_t)len, sizeof(struct linep))))

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.5

CVSweb