[BACK]Return to main.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / mandoc

Diff for /src/usr.bin/mandoc/main.c between version 1.6 and 1.7

version 1.6, 2009/06/18 23:51:12 version 1.7, 2009/06/21 20:10:31
Line 88 
Line 88 
 static  int               manwarn(void *, int, int, const char *);  static  int               manwarn(void *, int, int, const char *);
 static  int               mdocwarn(void *, int, int,  static  int               mdocwarn(void *, int, int,
                                 enum mdoc_warn, const char *);                                  enum mdoc_warn, const char *);
 static  int               fstdin(struct buf *, struct buf *,  
                                 struct curparse *);  
 static  int               ffile(struct buf *, struct buf *,  static  int               ffile(struct buf *, struct buf *,
                                 const char *, struct curparse *);                                  const char *, struct curparse *);
 static  int               fdesc(struct buf *, struct buf *,  static  int               fdesc(struct buf *, struct buf *,
Line 151 
Line 149 
   
         rc = 1;          rc = 1;
   
         if (NULL == *argv)          if (NULL == *argv) {
                 if ( ! fstdin(&blk, &ln, &curp))                  curp.file = "<stdin>";
                   curp.fd = STDIN_FILENO;
                   if ( ! fdesc(&blk, &ln, &curp))
                         rc = 0;                          rc = 0;
           }
   
         while (rc && *argv) {          while (rc && *argv) {
                 if ( ! ffile(&blk, &ln, *argv, &curp))                  if ( ! ffile(&blk, &ln, *argv, &curp))
Line 257 
Line 258 
                 warnx("memory exhausted");                  warnx("memory exhausted");
   
         return(mdoc);          return(mdoc);
 }  
   
   
 static int  
 fstdin(struct buf *blk, struct buf *ln, struct curparse *curp)  
 {  
   
         curp->file = "<stdin>";  
         curp->fd = STDIN_FILENO;  
         return(fdesc(blk, ln, curp));  
 }  }
   
   

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