aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFumitoshi UKAI <ukai@debian.or.jp>2002-07-18 06:07:25 +0000
committerFumitoshi UKAI <ukai@debian.or.jp>2002-07-18 06:07:25 +0000
commitc4c0f87fce0966c7714cdf872e1a52a86a50ca3a (patch)
tree8855e6352241b7e1c74148f7c5ac9efb94105960
parent[w3m-dev 03272] Re: w3m-img for framebuffer merged (Re: Re: w3m-img for fram... (diff)
downloadw3m-c4c0f87fce0966c7714cdf872e1a52a86a50ca3a.tar.gz
w3m-c4c0f87fce0966c7714cdf872e1a52a86a50ca3a.zip
XMakefile (w3mimg/w3mimg): added
(w3img/fb) fixed * w3mimg/w3mimg.h (w3mimg_open): deleted to avoid compilation warnings * w3mimg/w3mimg.c: added * configure (imgobjs): add w3mimg/w3mimg.o From: Fumitoshi UKAI <ukai@debian.or.jp>
Diffstat (limited to '')
-rw-r--r--ChangeLog10
-rw-r--r--XMakefile11
-rwxr-xr-xconfigure4
-rw-r--r--w3mimg/w3mimg.c17
-rw-r--r--w3mimg/w3mimg.h19
5 files changed, 39 insertions, 22 deletions
diff --git a/ChangeLog b/ChangeLog
index 87ea891..3ede0e5 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2002-07-18 Fumitoshi UKAI <ukai@debian.or.jp>
+
+ * XMakefile (w3mimg/w3mimg): added
+ (w3img/fb) fixed
+ * w3mimg/w3mimg.h (w3mimg_open): deleted to avoid compilation warnings
+ * w3mimg/w3mimg.c: added
+ * configure (imgobjs): add w3mimg/w3mimg.o
+
2002-07-18 Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
* [w3m-dev 03272] Re: w3m-img for framebuffer merged (Re: Re: w3m-img for framebuffer)
@@ -3593,4 +3601,4 @@
* release-0-2-1
* import w3m-0.2.1
-$Id: ChangeLog,v 1.405 2002/07/18 05:59:06 ukai Exp $
+$Id: ChangeLog,v 1.406 2002/07/18 06:07:25 ukai Exp $
diff --git a/XMakefile b/XMakefile
index 782715c..8a47798 100644
--- a/XMakefile
+++ b/XMakefile
@@ -1,4 +1,4 @@
-# $Id: XMakefile,v 1.26 2002/07/18 05:59:06 ukai Exp $
+# $Id: XMakefile,v 1.27 2002/07/18 06:07:25 ukai Exp $
SRCS=main.c file.c buffer.c display.c etc.c search.c linein.c table.c local.c \
form.c map.c frame.c rc.c menu.c mailcap.c image.c\
func.c cookie.c history.c backend.c $(KEYBIND_SRC)
@@ -106,17 +106,20 @@ w3mimgdisplay.o: w3mimgdisplay.c
w3mimgsize.o: w3mimgsize.c
$(CC) $(CFLAGS) $(IMGCFLAGS) -c w3mimgsize.c
+w3mimg/w3mimg.o: w3mimg/w3mimg.c
+ cd w3mimg && $(CC) $(CFLAGS) $(IMGCFLAGS) -I.. -c w3mimg.c
+
w3mimg/x11/x11_w3mimg.o: w3mimg/x11/x11_w3mimg.c
cd w3mimg/x11 && $(CC) $(CFLAGS) $(IMGCFLAGS) -I../.. -c x11_w3mimg.c
w3mimg/fb/fb_w3mimg.o: w3mimg/fb/fb_w3mimg.c
- cd w3mimg/fb && $(CC) $(CFLAGS) $(IMGCFLAGS) -I../.. -c w3mimg/fb/fb_w3mimg.c
+ cd w3mimg/fb && $(CC) $(CFLAGS) $(IMGCFLAGS) -I../.. -c fb_w3mimg.c
w3mimg/fb/fb.o: w3mimg/fb/fb.c
- cd w3mimg/fb && $(CC) $(CFLAGS) $(IMGCFLAGS) -I../.. -c w3mimg/fb/fb.c
+ cd w3mimg/fb && $(CC) $(CFLAGS) $(IMGCFLAGS) -I../.. -c fb.c
w3mimg/fb/fb_img.o: w3mimg/fb/fb_img.c w3mimg/fb/fb_gdkpixbuf.c w3mimg/fb/fb_imlib2.c
- cd w3mimg/fb && $(CC) $(CFLAGS) $(IMGCFLAGS) -I../.. -c w3mimg/fb/fb_img.c
+ cd w3mimg/fb && $(CC) $(CFLAGS) $(IMGCFLAGS) -I../.. -c fb_img.c
gc/gc.a:
cd gc; $(MAKE) base_lib gc.a CC='$(CC)' CFLAGS='$(GCCFLAGS) $(GC_CFLAGS)' SPECIALCFLAGS='-I./\$(srcdir)/include $(GC_CFLAGS)'
diff --git a/configure b/configure
index b0257f7..52ce6de 100755
--- a/configure
+++ b/configure
@@ -1,5 +1,5 @@
#!/bin/sh
-# $Id: configure,v 1.71 2002/07/18 05:55:22 ukai Exp $
+# $Id: configure,v 1.72 2002/07/18 06:07:25 ukai Exp $
# Configuration.
#
@@ -2046,7 +2046,7 @@ imgx11cflags=''
imgfbcflags=''
imgx11ldflags=''
imgfbldflags=''
-imbobjs=''
+imgobjs='w3mimg/w3mimg.o'
if [ "$use_image" = y ]; then
if [ "$use_w3mimg_x11" = y ]; then
diff --git a/w3mimg/w3mimg.c b/w3mimg/w3mimg.c
new file mode 100644
index 0000000..a898187
--- /dev/null
+++ b/w3mimg/w3mimg.c
@@ -0,0 +1,17 @@
+/* $Id: w3mimg.c,v 1.1 2002/07/18 06:07:39 ukai Exp $ */
+
+#include "w3mimg/w3mimg.h"
+
+w3mimg_op *w3mimg_open() {
+ w3mimg_op *w_op = NULL;
+#ifdef USE_W3MIMG_X11
+ if (w_op == NULL)
+ w_op = w3mimg_x11open();
+#endif
+#ifdef USE_W3MIMG_FB
+ if (w_op == NULL)
+ w_op = w3mimg_fbopen();
+#endif
+ return w_op;
+}
+
diff --git a/w3mimg/w3mimg.h b/w3mimg/w3mimg.h
index 086b1d5..eb89eda 100644
--- a/w3mimg/w3mimg.h
+++ b/w3mimg/w3mimg.h
@@ -1,4 +1,4 @@
-/* $Id: w3mimg.h,v 1.1 2002/07/17 20:58:48 ukai Exp $ */
+/* $Id: w3mimg.h,v 1.2 2002/07/18 06:07:25 ukai Exp $ */
#include "config.h"
#ifdef USE_W3MIMG_FB
@@ -32,21 +32,10 @@ typedef struct _w3mimg_op {
} w3mimg_op;
#ifdef USE_W3MIMG_X11
-w3mimg_op *w3mimg_x11open();
+extern w3mimg_op *w3mimg_x11open();
#endif
#ifdef USE_W3MIMG_FB
-w3mimg_op *w3mimg_fbopen();
+extern w3mimg_op *w3mimg_fbopen();
#endif
-static w3mimg_op *w3mimg_open() {
- w3mimg_op *w_op = NULL;
-#ifdef USE_W3MIMG_X11
- if (w_op == NULL)
- w_op = w3mimg_x11open();
-#endif
-#ifdef USE_W3MIMG_FB
- if (w_op == NULL)
- w_op = w3mimg_fbopen();
-#endif
- return w_op;
-}
+extern w3mimg_op *w3mimg_open();