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

Diff for /mandoc/manpath.c between version 1.4 and 1.5

version 1.4, 2011/11/26 22:38:11 version 1.5, 2011/12/12 02:00:49
Line 36 
Line 36 
 static  void     manpath_add(struct manpaths *, const char *);  static  void     manpath_add(struct manpaths *, const char *);
   
 void  void
 manpath_parse(struct manpaths *dirs, char *defp, char *auxp)  manpath_parse(struct manpaths *dirs, const char *file,
                   char *defp, char *auxp)
 {  {
   
         manpath_parseline(dirs, auxp);          manpath_parseline(dirs, auxp);
Line 45  manpath_parse(struct manpaths *dirs, char *defp, char 
Line 46  manpath_parse(struct manpaths *dirs, char *defp, char 
                 defp = getenv("MANPATH");                  defp = getenv("MANPATH");
   
         if (NULL == defp)          if (NULL == defp)
                 manpath_parseconf(dirs);                  manpath_parseconf(dirs, file);
         else          else
                 manpath_parseline(dirs, defp);                  manpath_parseline(dirs, defp);
 }  }
Line 91  manpath_add(struct manpaths *dirs, const char *dir)
Line 92  manpath_add(struct manpaths *dirs, const char *dir)
 }  }
   
 void  void
 manpath_parseconf(struct manpaths *dirs)  manpath_parseconf(struct manpaths *dirs, const char *file)
 {  {
 #ifdef  USE_MANPATH  #ifdef  USE_MANPATH
         FILE            *stream;          FILE            *stream;
Line 124  manpath_parseconf(struct manpaths *dirs)
Line 125  manpath_parseconf(struct manpaths *dirs)
         free(buf);          free(buf);
         pclose(stream);          pclose(stream);
 #else  #else
         manpath_manconf(MAN_CONF_FILE, dirs);          manpath_manconf(dirs, file ? file : MAN_CONF_FILE);
 #endif  #endif
 }  }
   
Line 140  manpath_free(struct manpaths *p)
Line 141  manpath_free(struct manpaths *p)
 }  }
   
 void  void
 manpath_manconf(const char *file, struct manpaths *dirs)  manpath_manconf(struct manpaths *dirs, const char *file)
 {  {
         FILE            *stream;          FILE            *stream;
         char            *p, *q;          char            *p, *q;

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

CVSweb