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

Diff for /mandoc/mdoc.c between version 1.20 and 1.21

version 1.20, 2009/01/07 15:53:00 version 1.21, 2009/01/07 15:57:14
Line 312  mdoc_parseln(struct mdoc *mdoc, int line, char *buf)
Line 312  mdoc_parseln(struct mdoc *mdoc, int line, char *buf)
         while (buf[i] && isspace(buf[i]))          while (buf[i] && isspace(buf[i]))
                 i++;                  i++;
   
         if ( ! mdoc_macro(mdoc, c, 1, &i, buf)) {          if ( ! mdoc_macro(mdoc, c, line, 1, &i, buf)) {
                 mdoc->flags |= MDOC_HALT;                  mdoc->flags |= MDOC_HALT;
                 return(0);                  return(0);
         }          }
Line 358  mdoc_warn(struct mdoc *mdoc, int tok, int pos, enum md
Line 358  mdoc_warn(struct mdoc *mdoc, int tok, int pos, enum md
   
   
 int  int
 mdoc_macro(struct mdoc *mdoc, int tok, int ppos, int *pos, char *buf)  mdoc_macro(struct mdoc *mdoc, int tok,
                   int line, int ppos, int *pos, char *buf)
 {  {
   
         if ( ! (MDOC_PROLOGUE & mdoc_macros[tok].flags) &&          if ( ! (MDOC_PROLOGUE & mdoc_macros[tok].flags) &&
Line 375  mdoc_macro(struct mdoc *mdoc, int tok, int ppos, int *
Line 376  mdoc_macro(struct mdoc *mdoc, int tok, int ppos, int *
                 return(0);                  return(0);
         }          }
   
         return((*mdoc_macros[tok].fp)(mdoc, tok, ppos, pos, buf));          return((*mdoc_macros[tok].fp)(mdoc, tok, line, ppos, pos, buf));
 }  }
   
   

Legend:
Removed from v.1.20  
changed lines
  Added in v.1.21

CVSweb