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

Diff for /mandoc/Attic/mdocml.c between version 1.48 and 1.50

version 1.48, 2009/01/17 14:04:25 version 1.50, 2009/01/20 12:51:28
Line 1 
Line 1 
 /* $Id$ */          /* $Id$ */
 /*  /*
  * Copyright (c) 2008 Kristaps Dzonsons <kristaps@kth.se>   * Copyright (c) 2008 Kristaps Dzonsons <kristaps@kth.se>
  *   *
Line 34 
Line 34 
   
 #define MD_LINE_SZ      (256)           /* Max input line size. */  #define MD_LINE_SZ      (256)           /* Max input line size. */
   
 /*  /* TODO: have a struct for each transformer. */
  * Put this into a mdoctrans.h, which has:  
  *  
  * struct mdoc_trans; (opaque)  
  *  
  * struct mdoc_trans *mdoc_trans_alloc(const char *filter);  
  *  
  * mdoc_trans_free(struct mdoc_trans *);  
  *  
  * int mdoc_trans_getopt(struct mdoc_trans *, char *);  
  *  
  * int mdoc_trans_print(struct mdoc_trans *, const struct mdoc_node *);  
  */  
   
 typedef int             (*mdocprint)(const struct mdoc_node *);  typedef int             (*mdocprint)(const struct mdoc_node *);
   
Line 232  parse_leave(struct md_parse *p, int code)
Line 220  parse_leave(struct md_parse *p, int code)
   
         if ( ! mdoc_endparse(p->mdoc))          if ( ! mdoc_endparse(p->mdoc))
                 code = 0;                  code = 0;
         if (p->print && (n = mdoc_result(p->mdoc)))          if (p->print && (n = mdoc_node(p->mdoc)))
                 (*p->print)(n);                  (*p->print)(n);
   
         mdoc_free(p->mdoc);          mdoc_free(p->mdoc);

Legend:
Removed from v.1.48  
changed lines
  Added in v.1.50

CVSweb