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

Diff for /mandoc/Attic/mdocterm.c between version 1.4 and 1.6

version 1.4, 2009/02/23 09:33:34 version 1.6, 2009/02/23 15:19:47
Line 24 
Line 24 
 #include <stdlib.h>  #include <stdlib.h>
 #include <string.h>  #include <string.h>
   
   #ifdef __linux__
   #include <time.h>
   #endif
   
 #include "mmain.h"  #include "mmain.h"
 #include "term.h"  #include "term.h"
   
Line 61  main(int argc, char *argv[])
Line 65  main(int argc, char *argv[])
         const struct mdoc *mdoc;          const struct mdoc *mdoc;
         struct termp     termp;          struct termp     termp;
   
         extern int       optreset;  
         extern int       optind;  
   
         p = mmain_alloc();          p = mmain_alloc();
   
         if ( ! mmain_getopt(p, argc, argv, NULL, NULL, NULL, NULL))          if ( ! mmain_getopt(p, argc, argv, NULL, NULL, NULL, NULL))
Line 166  flushln(struct termp *p)
Line 167  flushln(struct termp *p)
                         for (j = 0; j < p->offset; j++)                          for (j = 0; j < p->offset; j++)
                                 putchar(' ');                                  putchar(' ');
                         vis = 0;                          vis = 0;
                 } else if (vis + vsz >= maxvis) {                  } else if (vis + vsz >= maxvis)
                         /* FIXME */                          /* FIXME */
                         errx(1, "word breaks right margin");                          errx(1, "word breaks right margin");
                 }  
   
                 /*                  /*
                  * Write out the word and a trailing space.  Omit the                   * Write out the word and a trailing space.  Omit the

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

CVSweb