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

Diff for /mandoc/man.c between version 1.54 and 1.55

version 1.54, 2010/03/24 20:10:53 version 1.55, 2010/03/27 10:04:56
Line 51  const char *const __man_merrnames[WERRMAX] = {   
Line 51  const char *const __man_merrnames[WERRMAX] = {   
         "literal context already open", /* WOLITERAL */          "literal context already open", /* WOLITERAL */
         "no literal context open", /* WNLITERAL */          "no literal context open", /* WNLITERAL */
         "invalid nesting of roff declarations", /* WROFFNEST */          "invalid nesting of roff declarations", /* WROFFNEST */
           "scope in roff instructions broken", /* WROFFSCOPE */
           "document title should be uppercase", /* WTITLECASE */
 };  };
   
 const   char *const __man_macronames[MAN_MAX] = {  const   char *const __man_macronames[MAN_MAX] = {
Line 155  int
Line 157  int
 man_parseln(struct man *m, int ln, char *buf)  man_parseln(struct man *m, int ln, char *buf)
 {  {
   
         return('.' == *buf ?          return('.' == *buf || '\'' == *buf ?
                         man_pmacro(m, ln, buf) :                          man_pmacro(m, ln, buf) :
                         man_ptext(m, ln, buf));                          man_ptext(m, ln, buf));
 }  }
Line 447  descope:
Line 449  descope:
   
         if (MAN_ELINE & m->flags) {          if (MAN_ELINE & m->flags) {
                 m->flags &= ~MAN_ELINE;                  m->flags &= ~MAN_ELINE;
                 if ( ! man_unscope(m, m->last->parent))                  if ( ! man_unscope(m, m->last->parent, WERRMAX))
                         return(0);                          return(0);
         }          }
   
Line 455  descope:
Line 457  descope:
                 return(1);                  return(1);
         m->flags &= ~MAN_BLINE;          m->flags &= ~MAN_BLINE;
   
         if ( ! man_unscope(m, m->last->parent))          if ( ! man_unscope(m, m->last->parent, WERRMAX))
                 return(0);                  return(0);
         return(man_body_alloc(m, line, 0, m->last->tok));          return(man_body_alloc(m, line, 0, m->last->tok));
 }  }
Line 623  out:
Line 625  out:
         assert(MAN_BLINE & m->flags);          assert(MAN_BLINE & m->flags);
         m->flags &= ~MAN_BLINE;          m->flags &= ~MAN_BLINE;
   
         if ( ! man_unscope(m, m->last->parent))          if ( ! man_unscope(m, m->last->parent, WERRMAX))
                 return(0);                  return(0);
         return(man_body_alloc(m, ln, 0, m->last->tok));          return(man_body_alloc(m, ln, 0, m->last->tok));
   

Legend:
Removed from v.1.54  
changed lines
  Added in v.1.55

CVSweb