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

Diff for /mandoc/man.c between version 1.133 and 1.134

version 1.133, 2014/07/07 21:36:20 version 1.134, 2014/07/30 20:06:36
Line 478  man_ptext(struct man *man, int line, char *buf, int of
Line 478  man_ptext(struct man *man, int line, char *buf, int of
 static int  static int
 man_pmacro(struct man *man, int ln, char *buf, int offs)  man_pmacro(struct man *man, int ln, char *buf, int offs)
 {  {
         int              i, ppos;  
         enum mant        tok;  
         char             mac[5];          char             mac[5];
         struct man_node *n;          struct man_node *n;
           enum mant        tok;
           int              i, ppos;
           int              bline;
   
         if ('"' == buf[offs]) {          if ('"' == buf[offs]) {
                 mandoc_msg(MANDOCERR_COMMENT_BAD, man->parse,                  mandoc_msg(MANDOCERR_COMMENT_BAD, man->parse,
Line 581  man_pmacro(struct man *man, int ln, char *buf, int off
Line 582  man_pmacro(struct man *man, int ln, char *buf, int off
                 man->flags &= ~MAN_BLINE;                  man->flags &= ~MAN_BLINE;
         }          }
   
         /*          /* Remember whether we are in next-line scope for a block head. */
          * Save the fact that we're in the next-line for a block.  In  
          * this way, embedded roff instructions can "remember" state  
          * when they exit.  
          */  
   
         if (MAN_BLINE & man->flags)          bline = man->flags & MAN_BLINE;
                 man->flags |= MAN_BPLINE;  
   
         /* Call to handler... */          /* Call to handler... */
   
Line 610  man_pmacro(struct man *man, int ln, char *buf, int off
Line 606  man_pmacro(struct man *man, int ln, char *buf, int off
          * above-parsed macro, so return.           * above-parsed macro, so return.
          */           */
   
         if ( ! (MAN_BPLINE & man->flags)) {          if ( ! bline) {
                 man->flags &= ~MAN_ILINE;                  man->flags &= ~MAN_ILINE;
                 return(1);                  return(1);
         }          }
         man->flags &= ~MAN_BPLINE;  
   
         /*          /*
          * If we're in a block scope, then allow this macro to slip by           * If we're in a block scope, then allow this macro to slip by

Legend:
Removed from v.1.133  
changed lines
  Added in v.1.134

CVSweb