aboutsummaryrefslogtreecommitdiffstats
path: root/file.c
diff options
context:
space:
mode:
authorTatsuya Kinoshita <tats@debian.org>2020-11-11 10:30:35 +0000
committerTatsuya Kinoshita <tats@debian.org>2020-11-11 10:30:35 +0000
commit249f2fa3ff780be2d40f99517a20ddf661416689 (patch)
tree41f2220f8163df898a447b404a3c8578ab8c2bcb /file.c
parentMerge pull request #154 from bptato/master (diff)
downloadw3m-249f2fa3ff780be2d40f99517a20ddf661416689.tar.gz
w3m-249f2fa3ff780be2d40f99517a20ddf661416689.zip
Fix compilation errors when USE_GOPHER and not USE_M17N
Diffstat (limited to '')
-rw-r--r--file.c18
1 files changed, 14 insertions, 4 deletions
diff --git a/file.c b/file.c
index 268e3f8..30a0308 100644
--- a/file.c
+++ b/file.c
@@ -7407,8 +7407,13 @@ loadHTMLString(Str page)
/*
* loadGopherDir: get gopher directory
*/
+#ifdef USE_M17N
Str
loadGopherDir(URLFile *uf, ParsedURL *pu, wc_ces * charset)
+#else
+Str
+loadGopherDir0(URLFile *uf, ParsedURL *pu)
+#endif
{
Str volatile tmp;
Str lbuf, name, file, host, port, type;
@@ -7522,22 +7527,27 @@ loadGopherDir(URLFile *uf, ParsedURL *pu, wc_ces * charset)
return tmp;
}
+#ifdef USE_M17N
Str
loadGopherSearch(URLFile *uf, ParsedURL *pu, wc_ces * charset)
+#else
+Str
+loadGopherSearch0(URLFile *uf, ParsedURL *pu)
+#endif
{
Str tmp;
char *volatile p, *volatile q;
MySignalHandler(*volatile prevtrap) (SIGNAL_ARG) = NULL;
- tmp = parsedURL2Str(pu);
- p = html_quote(tmp->ptr);
#ifdef USE_M17N
wc_ces doc_charset = DocumentCharset;
+#endif
+
+ tmp = parsedURL2Str(pu);
+ p = html_quote(tmp->ptr);
tmp =
convertLine(NULL, Strnew_charp(file_unquote(tmp->ptr)), RAW_MODE,
charset, doc_charset);
-#endif
q = html_quote(tmp->ptr);
-
tmp = Strnew_m_charp("<html>\n<head>\n<base href=\"", p, "\">\n<title>", q,
"</title>\n</head>\n<body>\n<h1>Search ", q,
"</h1>\n<form role=\"search\">\n<div>\n"