From 4e8c85a7fa218fc538aaf3a4e08ffa9fd6017a3d Mon Sep 17 00:00:00 2001 From: Fumitoshi UKAI Date: Wed, 24 Apr 2002 18:29:35 +0000 Subject: [w3m-dev-en 00730] Re: Patch for a more flexible dictionary lookup * NEWS: rc: use_dictcommand, dictcommand * main.c (execdict): use url_quote_conv() instead of cURLcode() * proto.h (cURLcode): deleted * doc-jp/README.dict: updated From: Fumitoshi UKAI [w3m-dev-en 00729] Re: Patch for a more flexible dictionary lookup * config.h.dist (DICT): define * configure (use_dict): default y * fm.h (DICTCMD): deleted (UseDictCommand): added (DictCommand): added * main.c (execdict): rewrite to use DictCommand, loadGeneralFile() * rc.c (CMT_USE_DICTCOMMAND): added (CMT_DICTCOMMAND): added (params1): use_dictcommand, dictcommand added * doc/README.dict: updated From: Tushar Samant --- fm.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'fm.h') diff --git a/fm.h b/fm.h index d3f7e78..274e8b0 100644 --- a/fm.h +++ b/fm.h @@ -1,4 +1,4 @@ -/* $Id: fm.h,v 1.58 2002/03/29 16:39:37 ukai Exp $ */ +/* $Id: fm.h,v 1.59 2002/04/24 18:29:35 ukai Exp $ */ /* * w3m: WWW wo Miru utility * @@ -99,7 +99,6 @@ void bzero(void *, int); #define PIPEBUFFERNAME "*stream*" #define CPIPEBUFFERNAME "*stream(closed)*" #ifdef USE_DICT -#define DICTCMD "w3mdict" #define DICTBUFFERNAME "*dictionary*" #endif /* USE_DICT */ @@ -860,6 +859,10 @@ global char *pauth init(NULL); global Str proxy_auth_cookie init(NULL); global int UseExternalDirBuffer init(TRUE); global char *DirBufferCommand init("file:///$LIB/dirlist" CGI_EXTENSION); +#ifdef USE_DICT +global int UseDictCommand init(FALSE); +global char *DictCommand init("file:///$LIB/w3mdict" CGI_EXTENSION); +#endif /* USE_DICT */ global int ignore_null_img_alt init(TRUE); global int FoldTextarea init(FALSE); #define DEFAULT_URL_EMPTY 0 -- cgit v1.2.3