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

Diff for /mandoc/Attic/macro.c between version 1.30 and 1.31

version 1.30, 2009/01/09 14:45:44 version 1.31, 2009/01/12 10:31:53
Line 153  rewind_expblock(struct mdoc *mdoc, int tok)
Line 153  rewind_expblock(struct mdoc *mdoc, int tok)
         struct mdoc_node *n;          struct mdoc_node *n;
         int               t;          int               t;
   
         assert(mdoc->last);          n = mdoc->last ? mdoc->last->parent : NULL;
   
         /* LINTED */          /* LINTED */
         for (n = mdoc->last; n; n = n->parent) {          for ( ; n; n = n->parent) {
                 if (MDOC_BLOCK != n->type)                  if (MDOC_BLOCK != n->type)
                         continue;                          continue;
                 if (tok == (t = n->data.block.tok))                  if (tok == (t = n->data.block.tok))
Line 187  rewind_impblock(struct mdoc *mdoc, int tok)
Line 187  rewind_impblock(struct mdoc *mdoc, int tok)
                         break;                          break;
                 if ( ! (MDOC_EXPLICIT & mdoc_macros[t].flags))                  if ( ! (MDOC_EXPLICIT & mdoc_macros[t].flags))
                         continue;                          continue;
                 if (MDOC_NESTED & mdoc_macros[t].flags)                  if (MDOC_NESTED & mdoc_macros[tok].flags)
                         return(1);                          return(1);
                 return(mdoc_verr(mdoc, n, ERR_SCOPE_BREAK));                  return(mdoc_verr(mdoc, n, ERR_SCOPE_BREAK));
         }          }
Line 293  macro_close_explicit(MACRO_PROT_ARGS)
Line 293  macro_close_explicit(MACRO_PROT_ARGS)
         }          }
   
         if ( ! (MDOC_CALLABLE & mdoc_macros[tok].flags)) {          if ( ! (MDOC_CALLABLE & mdoc_macros[tok].flags)) {
                 if (buf[*pos])                  if (0 == buf[*pos])
                         return(rewind_expblock(mdoc, tt));                          return(rewind_expblock(mdoc, tt));
                 return(mdoc_perr(mdoc, line, ppos, ERR_ARGS_EQ0));                  return(mdoc_perr(mdoc, line, ppos, ERR_ARGS_EQ0));
         }          }

Legend:
Removed from v.1.30  
changed lines
  Added in v.1.31

CVSweb