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

Diff for /mandoc/man_macro.c between version 1.47 and 1.53

version 1.47, 2010/06/19 20:46:28 version 1.53, 2010/12/06 15:31:19
Line 1 
Line 1 
 /*      $Id$ */  /*      $Id$ */
 /*  /*
  * Copyright (c) 2008, 2009 Kristaps Dzonsons <kristaps@bsd.lv>   * Copyright (c) 2008, 2009, 2010 Kristaps Dzonsons <kristaps@bsd.lv>
  *   *
  * Permission to use, copy, modify, and distribute this software for any   * Permission to use, copy, modify, and distribute this software for any
  * purpose with or without fee is hereby granted, provided that the above   * purpose with or without fee is hereby granted, provided that the above
Line 79  const struct man_macro __man_macros[MAN_MAX] = {
Line 79  const struct man_macro __man_macros[MAN_MAX] = {
         { in_line_eoln, 0 }, /* DT */          { in_line_eoln, 0 }, /* DT */
         { in_line_eoln, 0 }, /* UC */          { in_line_eoln, 0 }, /* UC */
         { in_line_eoln, 0 }, /* PD */          { in_line_eoln, 0 }, /* PD */
         { in_line_eoln, MAN_NSCOPED }, /* Sp */  
         { in_line_eoln, 0 }, /* Vb */  
         { in_line_eoln, 0 }, /* Ve */  
         { in_line_eoln, 0 }, /* AT */          { in_line_eoln, 0 }, /* AT */
           { in_line_eoln, 0 }, /* in */
           { in_line_eoln, 0 }, /* ft */
 };  };
   
 const   struct man_macro * const man_macros = __man_macros;  const   struct man_macro * const man_macros = __man_macros;
Line 122  man_unscope(struct man *m, const struct man_node *n, 
Line 121  man_unscope(struct man *m, const struct man_node *n, 
                         return(0);                          return(0);
                 if ( ! man_valid_post(m))                  if ( ! man_valid_post(m))
                         return(0);                          return(0);
                 if ( ! man_action_post(m))  
                         return(0);  
                 m->last = m->last->parent;                  m->last = m->last->parent;
                 assert(m->last);                  assert(m->last);
         }          }
Line 132  man_unscope(struct man *m, const struct man_node *n, 
Line 129  man_unscope(struct man *m, const struct man_node *n, 
                 return(0);                  return(0);
         if ( ! man_valid_post(m))          if ( ! man_valid_post(m))
                 return(0);                  return(0);
         if ( ! man_action_post(m))  
                 return(0);  
   
         m->next = MAN_ROOT == m->last->type ?          m->next = MAN_ROOT == m->last->type ?
                 MAN_NEXT_CHILD : MAN_NEXT_SIBLING;                  MAN_NEXT_CHILD : MAN_NEXT_SIBLING;
Line 290  blk_close(MACRO_PROT_ARGS)
Line 285  blk_close(MACRO_PROT_ARGS)
 }  }
   
   
   /* ARGSUSED */
 int  int
 blk_exp(MACRO_PROT_ARGS)  blk_exp(MACRO_PROT_ARGS)
 {  {
Line 341  blk_exp(MACRO_PROT_ARGS)
Line 337  blk_exp(MACRO_PROT_ARGS)
  * scopes, such as `SH' closing out an `SS', are defined in the rew   * scopes, such as `SH' closing out an `SS', are defined in the rew
  * routines.   * routines.
  */   */
   /* ARGSUSED */
 int  int
 blk_imp(MACRO_PROT_ARGS)  blk_imp(MACRO_PROT_ARGS)
 {  {
Line 398  blk_imp(MACRO_PROT_ARGS)
Line 395  blk_imp(MACRO_PROT_ARGS)
 }  }
   
   
   /* ARGSUSED */
 int  int
 in_line_eoln(MACRO_PROT_ARGS)  in_line_eoln(MACRO_PROT_ARGS)
 {  {
Line 454  in_line_eoln(MACRO_PROT_ARGS)
Line 452  in_line_eoln(MACRO_PROT_ARGS)
                         break;                          break;
                 if ( ! man_valid_post(m))                  if ( ! man_valid_post(m))
                         return(0);                          return(0);
                 if ( ! man_action_post(m))  
                         return(0);  
         }          }
   
         assert(m->last);          assert(m->last);
Line 465  in_line_eoln(MACRO_PROT_ARGS)
Line 461  in_line_eoln(MACRO_PROT_ARGS)
          */           */
   
         if (m->last->type != MAN_ROOT && ! man_valid_post(m))          if (m->last->type != MAN_ROOT && ! man_valid_post(m))
                 return(0);  
         if (m->last->type != MAN_ROOT && ! man_action_post(m))  
                 return(0);                  return(0);
   
         m->next = MAN_ROOT == m->last->type ?          m->next = MAN_ROOT == m->last->type ?

Legend:
Removed from v.1.47  
changed lines
  Added in v.1.53

CVSweb