[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.31 and 1.33

version 1.31, 2010/03/22 05:59:32 version 1.33, 2010/03/23 21:50:43
Line 33  static int   in_line_eoln(MACRO_PROT_ARGS);
Line 33  static int   in_line_eoln(MACRO_PROT_ARGS);
 static  int              blk_imp(MACRO_PROT_ARGS);  static  int              blk_imp(MACRO_PROT_ARGS);
 static  int              blk_close(MACRO_PROT_ARGS);  static  int              blk_close(MACRO_PROT_ARGS);
   
 static  int              rew_scope(enum man_type, struct man *, int);  static  int              rew_scope(enum man_type,
 static  int              rew_dohalt(int, enum man_type,                                  struct man *, enum mant);
   static  int              rew_dohalt(enum mant, enum man_type,
                                 const struct man_node *);                                  const struct man_node *);
 static  int              rew_block(int, enum man_type,  static  int              rew_block(enum mant, enum man_type,
                                 const struct man_node *);                                  const struct man_node *);
   
 const   struct man_macro __man_macros[MAN_MAX] = {  const   struct man_macro __man_macros[MAN_MAX] = {
Line 72  const struct man_macro __man_macros[MAN_MAX] = {
Line 73  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 */
 };  };
   
 const   struct man_macro * const man_macros = __man_macros;  const   struct man_macro * const man_macros = __man_macros;
Line 101  man_unscope(struct man *m, const struct man_node *n)
Line 105  man_unscope(struct man *m, const struct man_node *n)
   
   
 static int  static int
 rew_block(int ntok, enum man_type type, const struct man_node *n)  rew_block(enum mant ntok, enum man_type type, const struct man_node *n)
 {  {
   
         if (MAN_BLOCK == type && ntok == n->parent->tok &&          if (MAN_BLOCK == type && ntok == n->parent->tok &&
Line 117  rew_block(int ntok, enum man_type type, const struct m
Line 121  rew_block(int ntok, enum man_type type, const struct m
  * sections and subsections).   * sections and subsections).
  */   */
 static int  static int
 rew_dohalt(int tok, enum man_type type, const struct man_node *n)  rew_dohalt(enum mant tok, enum man_type type, const struct man_node *n)
 {  {
         int              c;          int              c;
   
Line 172  rew_dohalt(int tok, enum man_type type, const struct m
Line 176  rew_dohalt(int tok, enum man_type type, const struct m
  * scopes.  When a scope is closed, it must be validated and actioned.   * scopes.  When a scope is closed, it must be validated and actioned.
  */   */
 static int  static int
 rew_scope(enum man_type type, struct man *m, int tok)  rew_scope(enum man_type type, struct man *m, enum mant tok)
 {  {
         struct man_node *n;          struct man_node *n;
         int              c;          int              c;
Line 202  rew_scope(enum man_type type, struct man *m, int tok)
Line 206  rew_scope(enum man_type type, struct man *m, int tok)
 int  int
 blk_close(MACRO_PROT_ARGS)  blk_close(MACRO_PROT_ARGS)
 {  {
         int                      ntok;          enum mant                ntok;
         const struct man_node   *nn;          const struct man_node   *nn;
   
         switch (tok) {          switch (tok) {
Line 315  in_line_eoln(MACRO_PROT_ARGS)
Line 319  in_line_eoln(MACRO_PROT_ARGS)
                         return(0);                          return(0);
                 if (0 == w)                  if (0 == w)
                         break;                          break;
   
                   /* XXX ignore Vb arguments for now */
                   if (MAN_Vb == tok)
                           continue;
   
                 if ( ! man_word_alloc(m, line, la, p))                  if ( ! man_word_alloc(m, line, la, p))
                         return(0);                          return(0);

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

CVSweb