From a8831d96bdd3caf44bccbc0356daa8c1195c5c6b Mon Sep 17 00:00:00 2001 From: Fumitoshi UKAI Date: Mon, 4 Feb 2002 15:18:41 +0000 Subject: [w3m-dev 02984] inline image improvements and cleanups * config.h.dist (HAVE_SYMLINK) added * config.h.dist (HAVE_LSTAT): added * configure: symlink() check * configure: lstat() check * fm.h (maxLoadImage): added * form.c (form_write_from_file): s/HAVE_READLINK/HAVE_LSTAT/ * image.c: include * image.c (MAX_LOAD_IMAGE): default 8 * image.c (max_load_image): deleted * image.c (n_load_image): added * image.c (showImageProgress): added * image.c (loadImage): check load image count s/HAVE_READLINK/HAVE_LSTAT/ (HAVE_SYMLINK) showImageProgress * local.c: include s/HAVE_READLINK/HAVE_LSTAT/ * rc.c (CMT_MAX_LOAD_IMAGE): added * rc.c (max_load_image): added * doc/README.img: update * doc-jp/README.img: update * file.c (process_img): pre_int fix From: Hironori Sakamoto --- form.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'form.c') diff --git a/form.c b/form.c index 9d50f7a..623e928 100644 --- a/form.c +++ b/form.c @@ -1,4 +1,4 @@ -/* $Id: form.c,v 1.11 2001/12/27 18:22:59 ukai Exp $ */ +/* $Id: form.c,v 1.12 2002/02/04 15:18:42 ukai Exp $ */ /* * HTML forms */ @@ -635,10 +635,10 @@ form_write_from_file(FILE * f, char *boundary, char *name, char *filename, fprintf(f, "Content-Type: %s\r\n\r\n", type ? type : "application/octet-stream"); -#ifdef HAVE_READLINK /* readline == lstat ? (ukai) */ +#ifdef HAVE_LSTAT if (lstat(file, &st) < 0) goto write_end; -#endif /* HAVE_READLINK */ +#endif /* HAVE_LSTAT */ if (S_ISDIR(st.st_mode)) goto write_end; fd = fopen(file, "r"); -- cgit v1.2.3