aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFumitoshi UKAI <ukai@debian.or.jp>2003-09-22 21:27:42 +0000
committerFumitoshi UKAI <ukai@debian.or.jp>2003-09-22 21:27:42 +0000
commitb0754b366a9b0351029c768c0699e6168b546b7f (patch)
treea63c9bc56e5ee4c429effec67a8818c03f1d45e0
parentmerge m17n patch (diff)
downloadw3m-b0754b366a9b0351029c768c0699e6168b546b7f.tar.gz
w3m-b0754b366a9b0351029c768c0699e6168b546b7f.zip
fix build problem
Diffstat (limited to '')
-rw-r--r--Makefile.in2
-rw-r--r--entity.c4
-rw-r--r--menu.c25
-rw-r--r--rc.c9
4 files changed, 21 insertions, 19 deletions
diff --git a/Makefile.in b/Makefile.in
index ba04e0d..2deb50c 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -166,7 +166,7 @@ wctarget:
RANLIB='$(RANLIB)'
dummy.o: entity.c
- $(CC) $(CFLAGS) -DDUMMY -o $@ $?
+ $(CC) $(CFLAGS) -DDUMMY -c -o $@ $?
$(IMGDISPLAY): w3mimgdisplay.o $(IMGOBJS)
$(CC) $(CFLAGS) -o $(IMGDISPLAY) w3mimgdisplay.o $(IMGOBJS) $(LDFLAGS) $(LIBS) $(IMGLDFLAGS)
diff --git a/entity.c b/entity.c
index d6db6c9..c4a43c2 100644
--- a/entity.c
+++ b/entity.c
@@ -1,4 +1,4 @@
-/* $Id: entity.c,v 1.5 2003/09/22 21:02:18 ukai Exp $ */
+/* $Id: entity.c,v 1.6 2003/09/22 21:27:42 ukai Exp $ */
#ifdef DUMMY
#include "Str.h"
#define NBSP " "
@@ -62,5 +62,5 @@ conv_entity(unsigned int c)
}
#endif
#endif
- return p ? p : "?";
+ return "?";
}
diff --git a/menu.c b/menu.c
index d4e64e3..7c5d849 100644
--- a/menu.c
+++ b/menu.c
@@ -1,4 +1,4 @@
-/* $Id: menu.c,v 1.34 2003/09/22 21:02:20 ukai Exp $ */
+/* $Id: menu.c,v 1.35 2003/09/22 21:27:42 ukai Exp $ */
/*
* w3m menu.c
*/
@@ -1678,6 +1678,9 @@ interpret_menu(FILE * mf)
char *p, *s;
int in_menu = 0, nmenu = 0, nitem = 0, type;
MenuItem *item = NULL;
+#ifdef USE_M17N
+ wc_ces charset = SystemCharset;
+#endif
while (!feof(mf)) {
line = Strfgets(mf);
@@ -1718,6 +1721,14 @@ interpret_menu(FILE * mf)
nitem = 0;
item[nitem].type = MENU_END;
}
+#ifdef USE_M17N
+ else if (!strcmp(s, "charset") || !strcmp(s, "encoding")) {
+ s = getQWord(&p);
+ if (*s == '\0') /* error */
+ continue;
+ charset = wc_guess_charset(s, charset);
+ }
+#endif
}
}
@@ -1726,9 +1737,6 @@ initMenu(void)
{
FILE *mf;
MenuList *list;
-#ifdef USE_M17N
- wc_ces charset = SystemCharset;
-#endif
w3mMenuList = New_N(MenuList, 3);
w3mMenuList[0].id = "Main";
@@ -1744,6 +1752,7 @@ initMenu(void)
#ifdef USE_M17N
if (!MainMenuEncode) {
+ MenuItem *item;
for (item = MainMenuItem; item->type != MENU_END; item++)
item->label =
wc_conv(item->label, MainMenuCharset, InnerCharset)->ptr;
@@ -1938,14 +1947,6 @@ accesskey_menu(Buffer *buf)
ap[n] = a;
n++;
}
-#ifdef USE_M17N
- else if (!strcmp(s, "charset") || !strcmp(s, "encoding")) {
- s = getQWord(&p);
- if (*s == '\0') /* error */
- continue;
- charset = wc_guess_charset(s, charset);
- }
-#endif
}
label[nitem] = NULL;
diff --git a/rc.c b/rc.c
index 5c7504f..f4972b3 100644
--- a/rc.c
+++ b/rc.c
@@ -1,9 +1,10 @@
-/* $Id: rc.c,v 1.87 2003/09/22 21:02:20 ukai Exp $ */
+/* $Id: rc.c,v 1.88 2003/09/22 21:27:42 ukai Exp $ */
/*
* Initialization file etc.
*/
#include "fm.h"
#include "myctype.h"
+#include "proto.h"
#include <stdio.h>
#include <errno.h>
#include "parsetag.h"
@@ -1507,7 +1508,7 @@ to_str(struct param_ptr *p)
Buffer *
load_option_panel(void)
{
- Str str;
+ Str src;
struct param_ptr *p;
struct sel_c *s;
#ifdef USE_M17N
@@ -1519,8 +1520,8 @@ load_option_panel(void)
if (optionpanel_str == NULL)
optionpanel_str = Sprintf(optionpanel_src1, w3m_version,
- html_quote(Local_cookie->ptr), CMT_HELPER);
-#ifdef LANG == JA
+ html_quote(localCookie()->ptr), CMT_HELPER);
+#if LANG == JA
if (!OptionEncode) {
optionpanel_str =
wc_Str_conv(optionpanel_str, OptionCharset, InnerCharset);