diff options
author | Fumitoshi UKAI <ukai@debian.or.jp> | 2002-10-28 17:09:15 +0000 |
---|---|---|
committer | Fumitoshi UKAI <ukai@debian.or.jp> | 2002-10-28 17:09:15 +0000 |
commit | e52ed1d5a5b1265a3f644e153965d88749a094cc (patch) | |
tree | 68fa8eecd03b7e782ad83d1fdf33dcb975b1512a | |
parent | [w3m-dev 03351] w3m core dump (diff) | |
download | w3m-e52ed1d5a5b1265a3f644e153965d88749a094cc.tar.gz w3m-e52ed1d5a5b1265a3f644e153965d88749a094cc.zip |
[w3m-dev 03352] w3mimgsize is not necessary.
* XMakefile (IMGSIZE): removed
* config.h.dist (IMGSIZE): removed
* configure (imgtarget): remove IMGSIZE
(config.h): remove IMGSIZE
* rc.c (CMT_IMGSIZE): removed
* doc/README.img: remove imgsize
* w3mimgsize.c: removed
From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
Diffstat (limited to '')
-rw-r--r-- | ChangeLog | 13 | ||||
-rw-r--r-- | XMakefile | 10 | ||||
-rw-r--r-- | config.h.dist | 1 | ||||
-rwxr-xr-x | configure | 5 | ||||
-rw-r--r-- | doc/README.img | 2 | ||||
-rw-r--r-- | rc.c | 4 | ||||
-rw-r--r-- | w3mimgsize.c | 29 |
7 files changed, 16 insertions, 48 deletions
@@ -1,3 +1,14 @@ +2002-10-29 Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp> + + * [w3m-dev 03352] w3mimgsize is not necessary. + * XMakefile (IMGSIZE): removed + * config.h.dist (IMGSIZE): removed + * configure (imgtarget): remove IMGSIZE + (config.h): remove IMGSIZE + * rc.c (CMT_IMGSIZE): removed + * doc/README.img: remove imgsize + * w3mimgsize.c: removed + 2002-10-28 Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp> * [w3m-dev 03351] w3m core dump @@ -4009,4 +4020,4 @@ a * [w3m-dev 03276] compile error on EWS4800 * release-0-2-1 * import w3m-0.2.1 -$Id: ChangeLog,v 1.454 2002/10/28 04:53:07 ukai Exp $ +$Id: ChangeLog,v 1.455 2002/10/28 17:09:15 ukai Exp $ @@ -1,4 +1,4 @@ -# $Id: XMakefile,v 1.28 2002/10/27 17:16:40 ukai Exp $ +# $Id: XMakefile,v 1.29 2002/10/28 17:09:18 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) @@ -19,7 +19,6 @@ BOOKMARKER=w3mbookmark$(EXT) HELPER=w3mhelperpanel$(EXT) INFLATE=inflate$(EXT) IMGDISPLAY=w3mimgdisplay$(EXT) -IMGSIZE=w3mimgsize$(EXT) MAN1=doc/w3m.1 MAN1_JA=doc-jp/w3m.1 TARGETS=$(TARGET) $(EXT_TARGETS) @@ -96,16 +95,9 @@ $(IMGDISPLAY): w3mimgdisplay.o $(IMGOBJS) $(CC) $(CFLAGS) $(IMGCFLAGS) $(LDFLAGS) -o $(IMGDISPLAY) \ w3mimgdisplay.o $(IMGOBJS) $(IMGLDFLAGS) -$(IMGSIZE): w3mimgsize.o $(IMGOBJS) - $(CC) $(CFLAGS) $(IMGCFLAGS) $(LDFLAGS) -o $(IMGSIZE) \ - w3mimgsize.o $(IMGOBJS) $(IMGLDFLAGS) - w3mimgdisplay.o: w3mimgdisplay.c $(CC) $(CFLAGS) $(IMGCFLAGS) -c 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 diff --git a/config.h.dist b/config.h.dist index 0c016c7..ea4947f 100644 --- a/config.h.dist +++ b/config.h.dist @@ -155,7 +155,6 @@ MODEL=Linux.i686-monster-ja #define HELP_FILE "w3mhelp.html" #define HELP_CGI "w3mhelp" #define W3MCONFIG "w3mconfig" -#define IMGSIZE "w3mimgsize" #define IMGDISPLAY "w3mimgdisplay" #define XFACE2XPM "xface2xpm" @@ -1,5 +1,5 @@ #!/bin/sh -# $Id: configure,v 1.80 2002/10/27 17:16:42 ukai Exp $ +# $Id: configure,v 1.81 2002/10/28 17:09:20 ukai Exp $ # Configuration. # @@ -797,7 +797,7 @@ fi ask_param "Inline image support" use_image n if [ "$use_image" = y ]; then def_use_image="#define USE_IMAGE" - imgtarget='$(IMGDISPLAY) $(IMGSIZE)' + imgtarget='$(IMGDISPLAY)' ask_param "X11 inline image support (you need Imlib1 or GdkPixbuf library)" use_w3mimg_x11 y d_w3mimg_fb=n case $sysname in @@ -2377,7 +2377,6 @@ $def_use_xface #define HELP_FILE "w3mhelp.html" #define HELP_CGI "w3mhelp" #define W3MCONFIG "w3mconfig" -#define IMGSIZE "w3mimgsize" #define IMGDISPLAY "w3mimgdisplay" #define XFACE2XPM "xface2xpm" diff --git a/doc/README.img b/doc/README.img index 1df86f2..45eb338 100644 --- a/doc/README.img +++ b/doc/README.img @@ -76,8 +76,6 @@ Option panel imgdisplay External command to display image". The default value is "w3mimgdisplay". See "Setting w3mimgdisplay". - imgsize - External command to get size of image. The default value is "w3mimgsize". Required programs @@ -1,4 +1,4 @@ -/* $Id: rc.c,v 1.53 2002/10/27 16:59:33 ukai Exp $ */ +/* $Id: rc.c,v 1.54 2002/10/28 17:09:29 ukai Exp $ */ /* * Initialization file etc. */ @@ -74,7 +74,6 @@ static char *config_file = NULL; #define CMT_EXT_IMAGE_VIEWER "画像を外部ビューワで表示" #define CMT_IMAGE_SCALE "画像のスケール(%)" #define CMT_IMGDISPLAY "画像を表示するためのコマンド" -#define CMT_IMGSIZE "画像の大きさを得るためのコマンド" #endif #define CMT_MULTICOL "ファイル名のマルチカラム表示" #define CMT_ALT_ENTITY "エンティティを ASCII の代替表現で表す" @@ -217,7 +216,6 @@ static char *config_file = NULL; #define CMT_EXT_IMAGE_VIEWER "Use external image viewer" #define CMT_IMAGE_SCALE "Scale of image (%)" #define CMT_IMGDISPLAY "External command to display image" -#define CMT_IMGSIZE "External command to get size of image" #endif #define CMT_MULTICOL "Display file names in multi-column format" #define CMT_ALT_ENTITY "Use ASCII equivalents to display entities" diff --git a/w3mimgsize.c b/w3mimgsize.c deleted file mode 100644 index 6d43e6d..0000000 --- a/w3mimgsize.c +++ /dev/null @@ -1,29 +0,0 @@ -/* $Id: w3mimgsize.c,v 1.3 2002/07/22 16:17:32 ukai Exp $ */ -#include <stdio.h> -#include <stdlib.h> -#include <string.h> -#include "config.h" -#include "w3mimg/w3mimg.h" - -int -main(int argc, char **argv) -{ - w3mimg_op *w_op = NULL; - W3MImage img; - int w, h; - - fclose(stderr); - if (argc < 2) - exit(1); - w_op = w3mimg_open(); - if (w_op == NULL) - exit(1); - - if (!w_op->init(w_op)) - exit(1); - - if (!w_op->get_image_size(w_op, &img, argv[1], &w, &h)) - exit(1); - printf("%d %d\n", w, h); - exit(0); -} |