diff options
author | Fumitoshi UKAI <ukai@debian.or.jp> | 2001-11-21 16:29:46 +0000 |
---|---|---|
committer | Fumitoshi UKAI <ukai@debian.or.jp> | 2001-11-21 16:29:46 +0000 |
commit | 91c91cb5cdc99ce5acf2beda2cc9fd811535e16e (patch) | |
tree | f2cea7c0e6b8c11d126f09bb53191027f3ad7289 /w3mbookmark.c | |
parent | [w3m-dev 02473] clean & install-scripts (diff) | |
download | w3m-91c91cb5cdc99ce5acf2beda2cc9fd811535e16e.tar.gz w3m-91c91cb5cdc99ce5acf2beda2cc9fd811535e16e.zip |
[w3m-dev 02479] #ifdef cleanups
make -> $(MAKE)
Diffstat (limited to '')
-rw-r--r-- | w3mbookmark.c | 27 |
1 files changed, 4 insertions, 23 deletions
diff --git a/w3mbookmark.c b/w3mbookmark.c index d8ab0e3..2d0191c 100644 --- a/w3mbookmark.c +++ b/w3mbookmark.c @@ -1,4 +1,4 @@ -/* $Id: w3mbookmark.c,v 1.3 2001/11/20 17:49:23 ukai Exp $ */ +/* $Id: w3mbookmark.c,v 1.4 2001/11/21 16:29:47 ukai Exp $ */ #ifdef __EMX__ #include <stdlib.h> #endif @@ -14,11 +14,7 @@ #if LANG == JA static char *bkmark_src1 = "<html><head><title>Bookmark Registration</title>\n\ <body><h1>ブックマークの登録</h1>\n\n" -#ifdef __EMX__ -"<form method=get action=\"file://%s/w3mbookmark.exe\">\n\n" -#else -"<form method=get action=\"file://%s/w3mbookmark\">\n\n" -#endif +"<form method=get action=\"file://%s/" W3MBOOKMARK_CMDNAME "\">\n\n" "<input type=hidden name=mode value=register>\n\ <input type=hidden name=bmark value=\"%s\">\n\ <table cellpadding=0>\n"; @@ -35,11 +31,7 @@ static char *default_section = "未分類"; #else /* LANG != JA */ static char *bkmark_src1 = "<html><head><title>Bookmark Registration</title>\n\ <body><h1>Register to my bookmark</h1>\n\n" -#ifdef __EMX__ -"<form method=get action=\"file://%s/w3mbookmark.exe\">\n\n" -#else -"<form method=get action=\"file://%s/w3mbookmark\">\n\n" -#endif +"<form method=get action=\"file://%s/" W3MBOOKMARK_CMDNAME "\">\n\n" "<input type=hidden name=mode value=register>\n\ <input type=hidden name=bmark value=\"%s\">\n\ <table cellpadding=0>\n"; @@ -62,17 +54,6 @@ static char end_section[] = "<!--End of section (do not delete this comment)-->\ char *Local_cookie; -#ifdef __EMX__ -static char * -lib_dir() -{ - char *value = getenv("W3M_LIB_DIR"); - return value ? value : LIB_DIR; -} -#else -#define lib_dir() LIB_DIR -#endif - void print_bookmark_panel(char *bmark, char *url, char *title) { @@ -81,7 +62,7 @@ print_bookmark_panel(char *bmark, char *url, char *title) char *p; printf("Content-Type: text/html\n\n"); - printf(bkmark_src1, lib_dir(), bmark); + printf(bkmark_src1, w3m_lib_dir(), bmark); if ((f = fopen(bmark, "r")) != NULL) { printf("<tr><td>Section:<td><select name=\"section\">\n"); while (tmp = Strfgets(f), tmp->length > 0) { |