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

Diff for /mandoc/Attic/action.c between version 1.44 and 1.46

version 1.44, 2009/03/20 15:14:01 version 1.46, 2009/03/20 19:56:25
Line 57  static int   post_ar(POST_ARGS);
Line 57  static int   post_ar(POST_ARGS);
 static  int       post_bl(POST_ARGS);  static  int       post_bl(POST_ARGS);
 static  int       post_bl_width(POST_ARGS);  static  int       post_bl_width(POST_ARGS);
 static  int       post_bl_tagwidth(POST_ARGS);  static  int       post_bl_tagwidth(POST_ARGS);
 static  int       post_display(POST_ARGS);  
 static  int       post_dd(POST_ARGS);  static  int       post_dd(POST_ARGS);
   static  int       post_display(POST_ARGS);
 static  int       post_dt(POST_ARGS);  static  int       post_dt(POST_ARGS);
 static  int       post_nm(POST_ARGS);  static  int       post_nm(POST_ARGS);
 static  int       post_os(POST_ARGS);  static  int       post_os(POST_ARGS);
Line 66  static int   post_prol(POST_ARGS);
Line 66  static int   post_prol(POST_ARGS);
 static  int       post_sh(POST_ARGS);  static  int       post_sh(POST_ARGS);
 static  int       post_std(POST_ARGS);  static  int       post_std(POST_ARGS);
   
 static  int       pre_display(PRE_ARGS);  static  int       pre_bd(PRE_ARGS);
   static  int       pre_dl(PRE_ARGS);
   
 #define merr(m, t) perr((m), (m)->last->line, (m)->last->pos, (t))  #define merr(m, t) perr((m), (m)->last->line, (m)->last->pos, (t))
 #define mwarn(m, t) pwarn((m), (m)->last->line, (m)->last->pos, (t))  #define mwarn(m, t) pwarn((m), (m)->last->line, (m)->last->pos, (t))
Line 80  const struct actions mdoc_actions[MDOC_MAX] = {
Line 81  const struct actions mdoc_actions[MDOC_MAX] = {
         { NULL, NULL }, /* Ss */          { NULL, NULL }, /* Ss */
         { NULL, NULL }, /* Pp */          { NULL, NULL }, /* Pp */
         { NULL, NULL }, /* D1 */          { NULL, NULL }, /* D1 */
         { pre_display, post_display }, /* Dl */          { pre_dl, post_display }, /* Dl */
         { pre_display, post_display }, /* Bd */          { pre_bd, post_display }, /* Bd */
         { NULL, NULL }, /* Ed */          { NULL, NULL }, /* Ed */
         { NULL, post_bl }, /* Bl */          { NULL, post_bl }, /* Bl */
         { NULL, NULL }, /* El */          { NULL, NULL }, /* El */
Line 686  post_prol(POST_ARGS)
Line 687  post_prol(POST_ARGS)
   
   
 static int  static int
 pre_display(PRE_ARGS)  pre_dl(PRE_ARGS)
 {  {
   
           if (MDOC_BODY != n->type)
                   return(1);
           m->flags |= MDOC_LITERAL;
           return(1);
   }
   
   
   static int
   pre_bd(PRE_ARGS)
   {
         int              i;          int              i;
   
         if (MDOC_BODY != n->type)          if (MDOC_BODY != n->type)
Line 699  pre_display(PRE_ARGS)
Line 711  pre_display(PRE_ARGS)
          */           */
   
         n = n->parent;          n = n->parent;
   
         for (i = 0; i < (int)n->args->argc; i++)          for (i = 0; i < (int)n->args->argc; i++)
                 if (MDOC_Literal == n->args->argv[i].arg)                  if (MDOC_Literal == n->args->argv[i].arg)
                         break;                          break;

Legend:
Removed from v.1.44  
changed lines
  Added in v.1.46

CVSweb