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

Diff for /mandoc/tree.c between version 1.52 and 1.56

version 1.52, 2014/04/20 16:46:05 version 1.56, 2014/10/10 08:44:24
Line 15 
Line 15 
  * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF   * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
  * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.   * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  */   */
 #ifdef HAVE_CONFIG_H  
 #include "config.h"  #include "config.h"
 #endif  
   
   #include <sys/types.h>
   
 #include <assert.h>  #include <assert.h>
 #include <limits.h>  #include <limits.h>
 #include <stdio.h>  #include <stdio.h>
Line 160  print_mdoc(const struct mdoc_node *n, int indent)
Line 160  print_mdoc(const struct mdoc_node *n, int indent)
                 putchar(' ');                  putchar(' ');
                 if (MDOC_LINE & n->flags)                  if (MDOC_LINE & n->flags)
                         putchar('*');                          putchar('*');
                 printf("%d:%d", n->line, n->pos);                  printf("%d:%d", n->line, n->pos + 1);
                 if (n->lastline != n->line)                  if (n->lastline != n->line)
                         printf("-%d", n->lastline);                          printf("-%d", n->lastline);
                 putchar('\n');                  putchar('\n');
Line 250  print_man(const struct man_node *n, int indent)
Line 250  print_man(const struct man_node *n, int indent)
                 printf("%s (%s) ", p, t);                  printf("%s (%s) ", p, t);
                 if (MAN_LINE & n->flags)                  if (MAN_LINE & n->flags)
                         putchar('*');                          putchar('*');
                 printf("%d:%d\n", n->line, n->pos);                  printf("%d:%d\n", n->line, n->pos + 1);
         }          }
   
         if (n->child)          if (n->child)
Line 275  print_box(const struct eqn_box *ep, int indent)
Line 275  print_box(const struct eqn_box *ep, int indent)
         case EQN_ROOT:          case EQN_ROOT:
                 t = "eqn-root";                  t = "eqn-root";
                 break;                  break;
           case EQN_LISTONE:
         case EQN_LIST:          case EQN_LIST:
                 t = "eqn-list";                  t = "eqn-list";
                 break;                  break;
Line 284  print_box(const struct eqn_box *ep, int indent)
Line 285  print_box(const struct eqn_box *ep, int indent)
         case EQN_TEXT:          case EQN_TEXT:
                 t = "eqn-text";                  t = "eqn-text";
                 break;                  break;
           case EQN_PILE:
                   t = "eqn-pile";
                   break;
         case EQN_MATRIX:          case EQN_MATRIX:
                 t = "eqn-matrix";                  t = "eqn-matrix";
                 break;                  break;
         }          }
   
         assert(t);          assert(t);
         printf("%s(%d, %d, %d, %d, %d, \"%s\", \"%s\") %s\n",          printf("%s(size=%d, args=%zu(%zu), pos=%d, font=%d, pile=%d, l=\"%s\", r=\"%s\") %s\n",
             t, EQN_DEFSIZE == ep->size ? 0 : ep->size,              t, EQN_DEFSIZE == ep->size ? 0 : ep->size,
             ep->pos, ep->font, ep->mark, ep->pile,              ep->args, ep->expectargs,
               ep->pos, ep->font, ep->pile,
             ep->left ? ep->left : "",              ep->left ? ep->left : "",
             ep->right ? ep->right : "",              ep->right ? ep->right : "",
             ep->text ? ep->text : "");              ep->text ? ep->text : "");

Legend:
Removed from v.1.52  
changed lines
  Added in v.1.56

CVSweb