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

Diff for /mandoc/Attic/ascii.c between version 1.2 and 1.4

version 1.2, 2009/03/17 13:35:46 version 1.4, 2009/03/20 21:58:38
Line 62  static inline int   match(const struct line *,
Line 62  static inline int   match(const struct line *,
   
   
 void  void
 asciifree(void *arg)  term_asciifree(void *arg)
 {  {
         struct asciitab *tab;          struct asciitab *tab;
   
Line 75  asciifree(void *arg)
Line 75  asciifree(void *arg)
   
   
 void *  void *
 ascii2htab(void)  term_ascii2htab(void)
 {  {
         struct asciitab  *tab;          struct asciitab  *tab;
         void            **htab;          void            **htab;
Line 92  ascii2htab(void)
Line 92  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))))
Line 132  ascii2htab(void)
Line 131  ascii2htab(void)
   
   
 const char *  const char *
 a2ascii(void *arg, const char *p, size_t sz, size_t *rsz)  term_a2ascii(void *arg, const char *p, size_t sz, size_t *rsz)
 {  {
         struct asciitab  *tab;          struct asciitab  *tab;
         struct linep     *pp, *prev;          struct linep     *pp, *prev;

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.4

CVSweb