/[global]/global/gozilla/gozilla.c
ViewVC logotype

Diff of /global/gozilla/gozilla.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.31 by shigio, Sat Sep 3 13:27:52 2005 UTC revision 1.32 by shigio, Tue Oct 4 07:59:03 2005 UTC
# Line 93  help(void) Line 93  help(void)
93   * |www http://www.xxx.yyy/   * |www http://www.xxx.yyy/
94   */   */
95  static const char *  static const char *
96  alias(alias_name)  alias(const char *alias_name)
         const char *alias_name;  
97  {  {
98          FILE *ip;          FILE *ip;
99          STRBUF *sb = strbuf_open(0);          STRBUF *sb = strbuf_open(0);
# Line 153  end: Line 152  end:
152  }  }
153    
154  int  int
155  main(argc, argv)  main(int argc, char **argv)
         int argc;  
         char *argv[];  
156  {  {
157          char c;          char c;
158          const char *p, *browser = NULL, *definition = NULL;          const char *p, *browser = NULL, *definition = NULL;
# Line 293  main(argc, argv) Line 290  main(argc, argv)
290   *      o)      URL     URL begin with 'file:'   *      o)      URL     URL begin with 'file:'
291   */   */
292  void  void
293  getdefinitionURL(arg, URL)  getdefinitionURL(const char *arg, STRBUF *URL)
         const char *arg;  
         STRBUF *URL;  
294  {  {
295          char cwd[MAXPATHLEN+1];          char cwd[MAXPATHLEN+1];
296          char root[MAXPATHLEN+1];          char root[MAXPATHLEN+1];
# Line 375  getdefinitionURL(arg, URL) Line 370  getdefinitionURL(arg, URL)
370   *      o)      URL     URL begin with 'file:'   *      o)      URL     URL begin with 'file:'
371   */   */
372  void  void
373  getURL(arg, URL)  getURL(const char *arg, STRBUF *URL)
         const char *arg;  
         STRBUF *URL;  
374  {  {
375          char cwd[MAXPATHLEN+1];          char cwd[MAXPATHLEN+1];
376          char root[MAXPATHLEN+1];          char root[MAXPATHLEN+1];
# Line 445  getURL(arg, URL) Line 438  getURL(arg, URL)
438   *      r)              1: protocol, 0: file   *      r)              1: protocol, 0: file
439   */   */
440  int  int
441  isprotocol(url)  isprotocol(const char *url)
         const char *url;  
442  {  {
443          const char *p;          const char *p;
444    
# Line 471  isprotocol(url) Line 463  isprotocol(url)
463   *      r)              1: source file, 0: not source file   *      r)              1: source file, 0: not source file
464   */   */
465  int  int
466  issource(path)  issource(const char *path)
         const char *path;  
467  {  {
468          STRBUF *sb = strbuf_open(0);          STRBUF *sb = strbuf_open(0);
469          char *p;          char *p;
# Line 508  issource(path) Line 499  issource(path)
499   *      r)              0: normal, -1: error   *      r)              0: normal, -1: error
500   */   */
501  int  int
502  convertpath(dbpath, htmldir, path, sb)  convertpath(const char *dbpath, const char *htmldir, const char *path, STRBUF *sb)
         const char *dbpath;  
         const char *htmldir;  
         const char *path;  
         STRBUF *sb;  
503  {  {
504          static const char *suffix[] = {".html", ".htm"};          static const char *suffix[] = {".html", ".htm"};
505          static const char *gz = ".gz";          static const char *gz = ".gz";
# Line 577  convertpath(dbpath, htmldir, path, sb) Line 564  convertpath(dbpath, htmldir, path, sb)
564   *   *
565   */   */
566  void  void
567  sendbrowser(browser, url)  sendbrowser(const char *browser, const char *url)
         const char *browser;  
         const char *url;  
568  {  {
569          int pid;          int pid;
570          char com[1024], *path;          char com[1024], *path;

Legend:
Removed from v.1.31  
changed lines
  Added in v.1.32

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26