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

Diff for /mandoc/main.c between version 1.177 and 1.179

version 1.177, 2014/06/21 22:24:01 version 1.179, 2014/08/16 23:04:25
Line 16 
Line 16 
  * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF   * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
  * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.   * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  */   */
 #ifdef HAVE_CONFIG_H  
 #include "config.h"  #include "config.h"
 #endif  
   
   #include <sys/types.h>
   
 #include <assert.h>  #include <assert.h>
 #include <stdio.h>  #include <stdio.h>
 #include <stdint.h>  #include <stdint.h>
Line 68  struct curparse {
Line 68  struct curparse {
         char              outopts[BUFSIZ]; /* buf of output opts */          char              outopts[BUFSIZ]; /* buf of output opts */
 };  };
   
   #if HAVE_SQLITE3
   int                       apropos(int, char**);
   #endif
   
 static  int               moptions(int *, char *);  static  int               moptions(int *, char *);
 static  void              mmsg(enum mandocerr, enum mandoclevel,  static  void              mmsg(enum mandocerr, enum mandoclevel,
                                 const char *, int, int, const char *);                                  const char *, int, int, const char *);
Line 95  main(int argc, char *argv[])
Line 99  main(int argc, char *argv[])
                 progname = argv[0];                  progname = argv[0];
         else          else
                 ++progname;                  ++progname;
   
   #if HAVE_SQLITE3
           if (0 == strncmp(progname, "apropos", 7) ||
               0 == strncmp(progname, "whatis", 6))
                   return(apropos(argc, argv));
   #endif
   
         memset(&curp, 0, sizeof(struct curparse));          memset(&curp, 0, sizeof(struct curparse));
   

Legend:
Removed from v.1.177  
changed lines
  Added in v.1.179

CVSweb