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

Diff for /mandoc/mdoc_html.c between version 1.38 and 1.39

version 1.38, 2009/10/26 04:09:45 version 1.39, 2009/10/26 08:18:16
Line 16 
Line 16 
  */   */
 #include <sys/types.h>  #include <sys/types.h>
 #include <sys/param.h>  #include <sys/param.h>
 #include <sys/queue.h>  
   
 #include <assert.h>  #include <assert.h>
 #include <ctype.h>  #include <ctype.h>
Line 417  print_mdoc_node(MDOC_ARGS)
Line 416  print_mdoc_node(MDOC_ARGS)
         struct tag      *t;          struct tag      *t;
   
         child = 1;          child = 1;
         t = SLIST_FIRST(&h->tags);          t = h->tags.head;
   
         bufinit(h);          bufinit(h);
         switch (n->type) {          switch (n->type) {
Line 981  mdoc_it_head_pre(MDOC_ARGS, int type, struct roffsu *w
Line 980  mdoc_it_head_pre(MDOC_ARGS, int type, struct roffsu *w
                 print_otag(h, TAG_SPAN, 1, &tag);                  print_otag(h, TAG_SPAN, 1, &tag);
                 break;                  break;
         case (MDOC_Enum):          case (MDOC_Enum):
                 ord = SLIST_FIRST(&h->ords);                  ord = h->ords.head;
                 assert(ord);                  assert(ord);
                 nbuf[BUFSIZ - 1] = 0;                  nbuf[BUFSIZ - 1] = 0;
                 (void)snprintf(nbuf, BUFSIZ - 1, "%d.", ord->pos++);                  (void)snprintf(nbuf, BUFSIZ - 1, "%d.", ord->pos++);
Line 1116  mdoc_bl_pre(MDOC_ARGS)
Line 1115  mdoc_bl_pre(MDOC_ARGS)
                 err(EXIT_FAILURE, "malloc");                  err(EXIT_FAILURE, "malloc");
         ord->cookie = n;          ord->cookie = n;
         ord->pos = 1;          ord->pos = 1;
         SLIST_INSERT_HEAD(&h->ords, ord, entry);          ord->next = h->ords.head;
           h->ords.head = ord;
         return(1);          return(1);
 }  }
   
Line 1132  mdoc_bl_post(MDOC_ARGS)
Line 1132  mdoc_bl_post(MDOC_ARGS)
         if (MDOC_Enum != a2list(n))          if (MDOC_Enum != a2list(n))
                 return;                  return;
   
         ord = SLIST_FIRST(&h->ords);          ord = h->ords.head;
         assert(ord);          assert(ord);
         SLIST_REMOVE_HEAD(&h->ords, entry);          h->ords.head = ord->next;
         free(ord);          free(ord);
 }  }
   

Legend:
Removed from v.1.38  
changed lines
  Added in v.1.39

CVSweb