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

Diff for /docbook2mdoc/main.c between version 1.6 and 1.8

version 1.6, 2019/04/12 19:14:50 version 1.8, 2019/04/28 17:10:06
Line 22 
Line 22 
   
 #include "node.h"  #include "node.h"
 #include "parse.h"  #include "parse.h"
   #include "reorg.h"
 #include "format.h"  #include "format.h"
   
 /*  /*
Line 94  main(int argc, char *argv[])
Line 95  main(int argc, char *argv[])
   
         /* Parse. */          /* Parse. */
   
         if ((parser = parse_alloc(warn)) == NULL) {          parser = parse_alloc(warn);
                 perror(NULL);  
                 return 6;  
         }  
         tree = parse_file(parser, fd, fname);          tree = parse_file(parser, fd, fname);
           ptree_reorg(tree);
         rc = tree->flags & TREE_ERROR ? 3 : tree->flags & TREE_WARN ? 2 : 0;          rc = tree->flags & TREE_ERROR ? 3 : tree->flags & TREE_WARN ? 2 : 0;
   
         /* Format. */          /* Format. */

Legend:
Removed from v.1.6  
changed lines
  Added in v.1.8

CVSweb