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

Diff for /mandoc/mdoc.c between version 1.4 and 1.5

version 1.4, 2008/12/23 05:30:49 version 1.5, 2008/12/28 00:34:20
Line 89  const struct mdoc_macro __mdoc_macros[MDOC_MAX] = {
Line 89  const struct mdoc_macro __mdoc_macros[MDOC_MAX] = {
         { macro_prologue_os, 0 }, /* Os */          { macro_prologue_os, 0 }, /* Os */
         { macro_scoped_implicit, 0 }, /* Sh */          { macro_scoped_implicit, 0 }, /* Sh */
         { macro_scoped_implicit, 0 }, /* Ss */          { macro_scoped_implicit, 0 }, /* Ss */
         { NULL, 0 }, /* Pp */          { macro_text, 0 }, /* Pp */
         { NULL, 0 }, /* D1 */          { NULL, 0 }, /* D1 */
         { NULL, 0 }, /* Dl */          { NULL, 0 }, /* Dl */
         { NULL, 0 }, /* Bd */          { macro_scoped_explicit, MDOC_EXPLICIT }, /* Bd */
         { NULL, 0 }, /* Ed */          { macro_scoped_explicit, 0 }, /* Ed */
         { macro_scoped_explicit, MDOC_EXPLICIT }, /* Bl */          { macro_scoped_explicit, MDOC_EXPLICIT }, /* Bl */
         { macro_scoped_explicit, 0 }, /* El */          { macro_scoped_explicit, 0 }, /* El */
         { NULL, 0 }, /* It */          { NULL, 0 }, /* It */
Line 252  mdoc_parseln(struct mdoc *mdoc, char *buf)
Line 252  mdoc_parseln(struct mdoc *mdoc, char *buf)
         int               c, i;          int               c, i;
         char              tmp[5];          char              tmp[5];
   
         if ('.' != *buf)  {          if ('.' != *buf) {
                 /* TODO. */                  mdoc_word_alloc(mdoc, 0, buf);
                 return(1);                  return(1);
         }          }
   
         if (buf[1] && '\\' == buf[1])          if (buf[1] && '\\' == buf[1])
Line 347  mdoc_node_append(struct mdoc *mdoc, int pos, struct md
Line 347  mdoc_node_append(struct mdoc *mdoc, int pos, struct md
   
         switch (p->type) {          switch (p->type) {
         case (MDOC_TEXT):          case (MDOC_TEXT):
                 nn = "<text>";                  nn = p->data.text.string;
                 nt = "text";                  nt = "text";
                 break;                  break;
         case (MDOC_BODY):          case (MDOC_BODY):
Line 416  mdoc_node_append(struct mdoc *mdoc, int pos, struct md
Line 416  mdoc_node_append(struct mdoc *mdoc, int pos, struct md
                 case (MDOC_HEAD):                  case (MDOC_HEAD):
                         p->parent = mdoc->last->parent;                          p->parent = mdoc->last->parent;
                         mdoc->last->next = p;                          mdoc->last->next = p;
                           p->prev = mdoc->last;
                         act = "sibling";                          act = "sibling";
                         break;                          break;
                 default:                  default:
Line 440  mdoc_node_append(struct mdoc *mdoc, int pos, struct md
Line 441  mdoc_node_append(struct mdoc *mdoc, int pos, struct md
                         break;                          break;
                 default:                  default:
                         p->parent = mdoc->last->parent;                          p->parent = mdoc->last->parent;
                           p->prev = mdoc->last;
                         mdoc->last->next = p;                          mdoc->last->next = p;
                         act = "sibling";                          act = "sibling";
                         break;                          break;

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

CVSweb