[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.314 and 1.315

version 1.314, 2015/04/02 21:36:50 version 1.315, 2015/04/02 22:48:17
Line 44  struct termpair {
Line 44  struct termpair {
 #define DECL_ARGS struct termp *p, \  #define DECL_ARGS struct termp *p, \
                   struct termpair *pair, \                    struct termpair *pair, \
                   const struct mdoc_meta *meta, \                    const struct mdoc_meta *meta, \
                   struct mdoc_node *n                    struct roff_node *n
   
 struct  termact {  struct  termact {
         int     (*pre)(DECL_ARGS);          int     (*pre)(DECL_ARGS);
Line 54  struct termact {
Line 54  struct termact {
 static  int       a2width(const struct termp *, const char *);  static  int       a2width(const struct termp *, const char *);
   
 static  void      print_bvspace(struct termp *,  static  void      print_bvspace(struct termp *,
                         const struct mdoc_node *,                          const struct roff_node *,
                         const struct mdoc_node *);                          const struct roff_node *);
 static  void      print_mdoc_node(DECL_ARGS);  static  void      print_mdoc_node(DECL_ARGS);
 static  void      print_mdoc_nodelist(DECL_ARGS);  static  void      print_mdoc_nodelist(DECL_ARGS);
 static  void      print_mdoc_head(struct termp *, const void *);  static  void      print_mdoc_head(struct termp *, const void *);
 static  void      print_mdoc_foot(struct termp *, const void *);  static  void      print_mdoc_foot(struct termp *, const void *);
 static  void      synopsis_pre(struct termp *,  static  void      synopsis_pre(struct termp *,
                         const struct mdoc_node *);                          const struct roff_node *);
   
 static  void      termp____post(DECL_ARGS);  static  void      termp____post(DECL_ARGS);
 static  void      termp__t_post(DECL_ARGS);  static  void      termp__t_post(DECL_ARGS);
Line 254  void
Line 254  void
 terminal_mdoc(void *arg, const struct mdoc *mdoc)  terminal_mdoc(void *arg, const struct mdoc *mdoc)
 {  {
         const struct mdoc_meta  *meta;          const struct mdoc_meta  *meta;
         struct mdoc_node        *n;          struct roff_node        *n;
         struct termp            *p;          struct termp            *p;
   
         p = (struct termp *)arg;          p = (struct termp *)arg;
Line 549  a2width(const struct termp *p, const char *v)
Line 549  a2width(const struct termp *p, const char *v)
  */   */
 static void  static void
 print_bvspace(struct termp *p,  print_bvspace(struct termp *p,
         const struct mdoc_node *bl,          const struct roff_node *bl,
         const struct mdoc_node *n)          const struct roff_node *n)
 {  {
         const struct mdoc_node  *nn;          const struct roff_node  *nn;
   
         assert(n);          assert(n);
   
Line 610  static int
Line 610  static int
 termp_it_pre(DECL_ARGS)  termp_it_pre(DECL_ARGS)
 {  {
         char                    buf[24];          char                    buf[24];
         const struct mdoc_node *bl, *nn;          const struct roff_node *bl, *nn;
         size_t                  ncols, dcol;          size_t                  ncols, dcol;
         int                     i, offset, width;          int                     i, offset, width;
         enum mdoc_list          type;          enum mdoc_list          type;
Line 1267  termp_xr_pre(DECL_ARGS)
Line 1267  termp_xr_pre(DECL_ARGS)
  * macro combos).   * macro combos).
  */   */
 static void  static void
 synopsis_pre(struct termp *p, const struct mdoc_node *n)  synopsis_pre(struct termp *p, const struct roff_node *n)
 {  {
         /*          /*
          * Obviously, if we're not in a SYNOPSIS or no prior macros           * Obviously, if we're not in a SYNOPSIS or no prior macros
Line 1515  termp_fn_pre(DECL_ARGS)
Line 1515  termp_fn_pre(DECL_ARGS)
 static int  static int
 termp_fa_pre(DECL_ARGS)  termp_fa_pre(DECL_ARGS)
 {  {
         const struct mdoc_node  *nn;          const struct roff_node  *nn;
   
         if (n->parent->tok != MDOC_Fo) {          if (n->parent->tok != MDOC_Fo) {
                 term_fontpush(p, TERMFONT_UNDER);                  term_fontpush(p, TERMFONT_UNDER);
Line 1541  static int
Line 1541  static int
 termp_bd_pre(DECL_ARGS)  termp_bd_pre(DECL_ARGS)
 {  {
         size_t                   tabwidth, lm, len, rm, rmax;          size_t                   tabwidth, lm, len, rm, rmax;
         struct mdoc_node        *nn;          struct roff_node        *nn;
         int                      offset;          int                      offset;
   
         if (n->type == ROFFT_BLOCK) {          if (n->type == ROFFT_BLOCK) {
Line 2170  termp_li_pre(DECL_ARGS)
Line 2170  termp_li_pre(DECL_ARGS)
 static int  static int
 termp_lk_pre(DECL_ARGS)  termp_lk_pre(DECL_ARGS)
 {  {
         const struct mdoc_node *link, *descr;          const struct roff_node *link, *descr;
   
         if (NULL == (link = n->child))          if (NULL == (link = n->child))
                 return(0);                  return(0);

Legend:
Removed from v.1.314  
changed lines
  Added in v.1.315

CVSweb