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

Diff for /mandoc/main.c between version 1.42 and 1.43

version 1.42, 2009/09/16 09:41:24 version 1.43, 2009/09/16 22:17:27
Line 58  enum intt {
Line 58  enum intt {
 enum    outt {  enum    outt {
         OUTT_ASCII = 0,          OUTT_ASCII = 0,
         OUTT_TREE,          OUTT_TREE,
   #if 1
           OUTT_HTML,
   #endif
         OUTT_LINT          OUTT_LINT
 };  };
   
Line 85  struct curparse {
Line 88  struct curparse {
         void             *outdata;          void             *outdata;
 };  };
   
   #if 1
   extern  void             *html_alloc(void);
   extern  void              html_mdoc(void *, const struct mdoc *);
   extern  void              html_man(void *, const struct man *);
   extern  void              html_free(void *);
   #endif
 extern  void             *ascii_alloc(void);  extern  void             *ascii_alloc(void);
 extern  void              tree_mdoc(void *, const struct mdoc *);  extern  void              tree_mdoc(void *, const struct mdoc *);
 extern  void              tree_man(void *, const struct man *);  extern  void              tree_man(void *, const struct man *);
Line 432  fdesc(struct buf *blk, struct buf *ln, struct curparse
Line 441  fdesc(struct buf *blk, struct buf *ln, struct curparse
   
         if ( ! (curp->outman && curp->outmdoc)) {          if ( ! (curp->outman && curp->outmdoc)) {
                 switch (curp->outtype) {                  switch (curp->outtype) {
   #if 1
                   case (OUTT_HTML):
                           curp->outdata = html_alloc();
                           curp->outman = html_man;
                           curp->outmdoc = html_mdoc;
                           curp->outfree = html_free;
                           break;
   #endif
                 case (OUTT_TREE):                  case (OUTT_TREE):
                         curp->outman = tree_man;                          curp->outman = tree_man;
                         curp->outmdoc = tree_mdoc;                          curp->outmdoc = tree_mdoc;
Line 546  toptions(enum outt *tflags, char *arg)
Line 563  toptions(enum outt *tflags, char *arg)
                 *tflags = OUTT_LINT;                  *tflags = OUTT_LINT;
         else if (0 == strcmp(arg, "tree"))          else if (0 == strcmp(arg, "tree"))
                 *tflags = OUTT_TREE;                  *tflags = OUTT_TREE;
   #if 1
           else if (0 == strcmp(arg, "html"))
                   *tflags = OUTT_HTML;
   #endif
         else {          else {
                 warnx("bad argument: -T%s", arg);                  warnx("bad argument: -T%s", arg);
                 return(0);                  return(0);

Legend:
Removed from v.1.42  
changed lines
  Added in v.1.43

CVSweb