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

Diff for /mandoc/mdoc_term.c between version 1.167 and 1.168

version 1.167, 2010/07/02 12:54:33 version 1.168, 2010/07/02 15:03:14
Line 57  static size_t   a2width(const struct termp *, const ch
Line 57  static size_t   a2width(const struct termp *, const ch
 static  size_t    a2height(const struct termp *, const char *);  static  size_t    a2height(const struct termp *, const char *);
 static  size_t    a2offs(const struct termp *, const char *);  static  size_t    a2offs(const struct termp *, const char *);
   
 static  int       arg_hasattr(int, const struct mdoc_node *);  
 static  int       arg_getattr(int, const struct mdoc_node *);  static  int       arg_getattr(int, const struct mdoc_node *);
 static  void      print_bvspace(struct termp *,  static  void      print_bvspace(struct termp *,
                         const struct mdoc_node *,                          const struct mdoc_node *,
Line 528  a2offs(const struct termp *p, const char *v)
Line 527  a2offs(const struct termp *p, const char *v)
   
   
 /*  /*
  * Return 1 if an argument has a particular argument value or 0 if it  
  * does not.  See arg_getattr().  
  */  
 static int  
 arg_hasattr(int arg, const struct mdoc_node *n)  
 {  
   
         return(-1 != arg_getattr(arg, n));  
 }  
   
   
 /*  
  * Get the index of an argument in a node's argument list or -1 if it   * Get the index of an argument in a node's argument list or -1 if it
  * does not exist.   * does not exist.
  */   */
Line 1141  termp_an_post(DECL_ARGS)
Line 1128  termp_an_post(DECL_ARGS)
                 return;                  return;
         }          }
   
         if (arg_hasattr(MDOC_Split, n)) {          if (AUTH_split == n->data.An.auth) {
                 p->flags &= ~TERMP_NOSPLIT;                  p->flags &= ~TERMP_NOSPLIT;
                 p->flags |= TERMP_SPLIT;                  p->flags |= TERMP_SPLIT;
         } else {          } else if (AUTH_nosplit == n->data.An.auth) {
                 p->flags &= ~TERMP_SPLIT;                  p->flags &= ~TERMP_SPLIT;
                 p->flags |= TERMP_NOSPLIT;                  p->flags |= TERMP_NOSPLIT;
         }          }

Legend:
Removed from v.1.167  
changed lines
  Added in v.1.168

CVSweb