* XMakefile: EXT_TARGETS -> LIB_TARGETS, AUXBIN_TARGETS * config.h.dist: add AUXBIN_DIR LIB_DIR is cgi-bin * configure: add -auxbindir add AUXBIN_DIR LIB_DIR is cgi-bin EXT_TARGETS -> LIB_TARGETS, AUXBIN_TARGETS * file.c (compression_decoder): libfile_p -> auxbin_p (check_command): libfile_p -> auxbin_p use w3m_auxbin_dir() instead of w3m_lib_dir() (acceptableEncoding): libfile_p -> auxbin_p (xface2xpm): use auxbinFile() instead of libFile() (uncompress_stream): libfile_p -> auxbin_p use auxbinFile() instead of libFile() * image.c (getCharSize): use w3m_auxbin_dir() instead of w3m_lib_dir() (openImgdisplay): use w3m_auxbin_dir() instead of w3m_lib_dir() * indep.c (w3m_auxbin_dir): added * indep.h (w3m_auxbin_dir): added * proto.h (auxbinFile): added * rc.c (auxbinFile): added (libFile): #if 0, no longer used (helpFile): used only #ifndef USE_HELP_CGI * NEWS: separate auxbindir and libdir (local-CGI, file:///$LIB/) From: Fumitoshi UKAI <ukai@debian.or.jp>
		
			
				
	
	
		
			65 lines
		
	
	
		
			2.0 KiB
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			65 lines
		
	
	
		
			2.0 KiB
		
	
	
	
		
			C
		
	
	
	
	
	
/* $Id: indep.h,v 1.10 2002/11/09 21:55:24 ukai Exp $ */
 | 
						|
#ifndef INDEP_H
 | 
						|
#define INDEP_H
 | 
						|
#include "gc.h"
 | 
						|
#include "Str.h"
 | 
						|
#include "config.h"
 | 
						|
 | 
						|
#ifndef TRUE
 | 
						|
#define TRUE 1
 | 
						|
#endif				/* TRUE */
 | 
						|
#ifndef FALSE
 | 
						|
#define FALSE 0
 | 
						|
#endif				/* FALSE */
 | 
						|
 | 
						|
#define PAGER_MODE	0
 | 
						|
#define HTML_MODE	1
 | 
						|
#define HEADER_MODE	2
 | 
						|
 | 
						|
extern clen_t strtoclen(const char *s);
 | 
						|
extern char *conv_entity(int ch);
 | 
						|
extern int getescapechar(char **s);
 | 
						|
extern char *getescapecmd(char **s);
 | 
						|
extern char *allocStr(const char *s, int len);
 | 
						|
extern int strCmp(const void *s1, const void *s2);
 | 
						|
extern char *currentdir(void);
 | 
						|
extern char *cleanupName(char *name);
 | 
						|
extern char *expandPath(char *name);
 | 
						|
#ifndef HAVE_STRCHR
 | 
						|
extern char *strchr(const char *s, int c);
 | 
						|
#endif				/* not HAVE_STRCHR */
 | 
						|
#ifndef HAVE_STRCASECMP
 | 
						|
extern int strcasecmp(const char *s1, const char *s2);
 | 
						|
extern int strncasecmp(const char *s1, const char *s2, size_t n);
 | 
						|
#endif				/* not HAVE_STRCASECMP */
 | 
						|
#ifndef HAVE_STRCASESTR
 | 
						|
extern char *strcasestr(const char *s1, const char *s2);
 | 
						|
#endif
 | 
						|
extern int strcasemstr(char *str, char *srch[], char **ret_ptr);
 | 
						|
extern char *remove_space(char *str);
 | 
						|
extern int non_null(char *s);
 | 
						|
extern void cleanup_line(Str s, int mode);
 | 
						|
extern char *html_quote_char(char c);
 | 
						|
extern char *html_quote(char *str);
 | 
						|
extern char *html_unquote(char *str);
 | 
						|
extern char *file_quote(char *str);
 | 
						|
extern char *file_unquote(char *str);
 | 
						|
extern char *url_quote(char *str);
 | 
						|
extern char *url_unquote(char *str);
 | 
						|
extern Str Str_form_quote(Str x);
 | 
						|
extern Str Str_form_unquote(Str x);
 | 
						|
extern char *shell_quote(char *str);
 | 
						|
 | 
						|
extern char *w3m_auxbin_dir();
 | 
						|
extern char *w3m_lib_dir();
 | 
						|
extern char *w3m_etc_dir();
 | 
						|
extern char *w3m_help_dir();
 | 
						|
 | 
						|
#define New(type)	((type*)GC_MALLOC(sizeof(type)))
 | 
						|
#define NewAtom(type)	((type*)GC_MALLOC_ATOMIC(sizeof(type)))
 | 
						|
#define New_N(type,n)	((type*)GC_MALLOC((n)*sizeof(type)))
 | 
						|
#define NewAtom_N(type,n)	((type*)GC_MALLOC_ATOMIC((n)*sizeof(type)))
 | 
						|
#define New_Reuse(type,ptr,n)   ((type*)GC_REALLOC((ptr),(n)*sizeof(type)))
 | 
						|
 | 
						|
#endif				/* INDEP_H */
 |