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

Diff for /mandoc/mdoc_macro.c between version 1.40 and 1.41

version 1.40, 2010/01/01 17:14:29 version 1.41, 2010/01/30 08:42:20
Line 31 
Line 31 
 #define REWIND_NOHALT   (1 << 1)  #define REWIND_NOHALT   (1 << 1)
 #define REWIND_HALT     (1 << 2)  #define REWIND_HALT     (1 << 2)
   
   static  int       ctx_synopsis(MACRO_PROT_ARGS);
 static  int       obsolete(MACRO_PROT_ARGS);  static  int       obsolete(MACRO_PROT_ARGS);
 static  int       blk_part_exp(MACRO_PROT_ARGS);  static  int       blk_part_exp(MACRO_PROT_ARGS);
 static  int       in_line_eoln(MACRO_PROT_ARGS);  static  int       in_line_eoln(MACRO_PROT_ARGS);
Line 98  const struct mdoc_macro __mdoc_macros[MDOC_MAX] = {
Line 99  const struct mdoc_macro __mdoc_macros[MDOC_MAX] = {
         { in_line_eoln, 0 }, /* Rv */          { in_line_eoln, 0 }, /* Rv */
         { in_line_argn, MDOC_CALLABLE | MDOC_PARSED }, /* St */          { in_line_argn, MDOC_CALLABLE | MDOC_PARSED }, /* St */
         { in_line, MDOC_CALLABLE | MDOC_PARSED }, /* Va */          { in_line, MDOC_CALLABLE | MDOC_PARSED }, /* Va */
         { in_line, MDOC_CALLABLE | MDOC_PARSED }, /* Vt */          { ctx_synopsis, MDOC_CALLABLE | MDOC_PARSED }, /* Vt */
         { in_line, MDOC_CALLABLE | MDOC_PARSED }, /* Xr */          { in_line, MDOC_CALLABLE | MDOC_PARSED }, /* Xr */
         { in_line_eoln, 0 }, /* %A */          { in_line_eoln, 0 }, /* %A */
         { in_line_eoln, 0 }, /* %B */          { in_line_eoln, 0 }, /* %B */
Line 398  rew_dohalt(int tok, enum mdoc_type type, const struct 
Line 399  rew_dohalt(int tok, enum mdoc_type type, const struct 
         case (MDOC_Qq):          case (MDOC_Qq):
                 /* FALLTHROUGH */                  /* FALLTHROUGH */
         case (MDOC_Sq):          case (MDOC_Sq):
                   /* FALLTHROUGH */
           case (MDOC_Vt):
                 assert(MDOC_TAIL != type);                  assert(MDOC_TAIL != type);
                 if (type == p->type && tok == p->tok)                  if (type == p->type && tok == p->tok)
                         return(REWIND_REWIND);                          return(REWIND_REWIND);
Line 1317  in_line_eoln(MACRO_PROT_ARGS)
Line 1320  in_line_eoln(MACRO_PROT_ARGS)
         /* Close out (no delimiters). */          /* Close out (no delimiters). */
   
         return(rew_elem(m, tok));          return(rew_elem(m, tok));
   }
   
   
   /* ARGSUSED */
   static int
   ctx_synopsis(MACRO_PROT_ARGS)
   {
   
           /* If we're not in the SYNOPSIS, go straight to in-line. */
           if (SEC_SYNOPSIS != m->lastsec)
                   return(in_line(m, tok, line, ppos, pos, buf));
   
           /* If we're a nested call, same place. */
           if (ppos > 1)
                   return(in_line(m, tok, line, ppos, pos, buf));
   
           /*
            * XXX: this will open a block scope; however, if later we end
            * up formatting the block scope, then child nodes will inherit
            * the formatting.  Be careful.
            */
   
           return(blk_part_imp(m, tok, line, ppos, pos, buf));
 }  }
   
   

Legend:
Removed from v.1.40  
changed lines
  Added in v.1.41

CVSweb