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

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

version 1.8, 2019/04/28 17:10:06 version 1.9, 2019/05/01 07:14:17
Line 16 
Line 16 
  * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.   * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  */   */
 #include <getopt.h>  #include <getopt.h>
   #include <libgen.h>
 #include <stdio.h>  #include <stdio.h>
 #include <string.h>  #include <string.h>
 #include <unistd.h>  #include <unistd.h>
Line 41  main(int argc, char *argv[])
Line 42  main(int argc, char *argv[])
         struct parse    *parser;          struct parse    *parser;
         struct ptree    *tree;          struct ptree    *tree;
         const char      *progname;          const char      *progname;
         const char      *fname;          const char      *fname, *bname;
         int              ch, fd, rc, warn;          int              ch, fd, rc, warn;
         enum outt        outtype;          enum outt        outtype;
   
Line 105  main(int argc, char *argv[])
Line 106  main(int argc, char *argv[])
         if (outtype != OUTT_LINT && tree->root != NULL) {          if (outtype != OUTT_LINT && tree->root != NULL) {
                 if (rc > 2)                  if (rc > 2)
                         fputc('\n', stderr);                          fputc('\n', stderr);
                 if (outtype == OUTT_MDOC)                  if (outtype == OUTT_MDOC) {
                           if (fd == -1 && (bname = basename(fname)) != NULL)
                                   printf(".\\\" automatically generated "
                                       "with %s %s\n", progname, bname);
                         ptree_print_mdoc(tree);                          ptree_print_mdoc(tree);
                 else                  } else
                         ptree_print_tree(tree);                          ptree_print_tree(tree);
                 if (rc > 2)                  if (rc > 2)
                         fputs("\nThe output may be incomplete, see the "                          fputs("\nThe output may be incomplete, see the "

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

CVSweb