From fc4b6e4a93dc91fea7b64e9230d8aea9bcfe99ee Mon Sep 17 00:00:00 2001 From: Fumitoshi UKAI Date: Sat, 1 Jun 2002 16:50:16 +0000 Subject: [w3m-dev 03200] Re: New configuration option ``keymap_file'' and new command ``DEFINE_KEY'' * fm.h: add , unistd.h> * fm.h (keymap_file): added * func.c (keymap_initialized): added (current_keymap_file): added (setKeymap): added (initKeymap): rewrite to use setKeymap() * funcname.tab (DEFINE_KEY): added * main.c (MAIN): initKeymap(TRUE) (defKey): added * proto.h (defKey): added (setKeymap): added (initKeymap): add force param * rc.c (CMT_KEYMAP_FILE): added (params3): add keymap_file (sync_with_option): add initKeymap(FALSE) * doc/README.func (DEFINE_KEY): added * doc-jp/README.func: (DEFINE_KEY): added * scripts/w3mhelp.cgi.in: add defKey * NEWS: func: DEFINE_KEY rc: keymap_file From: Kiyokazu SUTO --- fm.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'fm.h') diff --git a/fm.h b/fm.h index 274e8b0..c569e23 100644 --- a/fm.h +++ b/fm.h @@ -1,4 +1,4 @@ -/* $Id: fm.h,v 1.59 2002/04/24 18:29:35 ukai Exp $ */ +/* $Id: fm.h,v 1.60 2002/06/01 16:50:16 ukai Exp $ */ /* * w3m: WWW wo Miru utility * @@ -20,6 +20,8 @@ #include #include #include +#include +#include #include "config.h" #include "history.h" @@ -978,6 +980,8 @@ global double image_scale init(100); #endif global int use_lessopen init(FALSE); +global char *keymap_file init(KEYMAP_FILE); + #ifdef JP_CHARSET #define is_kanji(s) (IS_KANJI1((s)[0])&&IS_KANJI2((s)[1])) #define get_mctype(s) (is_kanji(s)?PC_KANJI:GET_PCTYPE(*(s))) -- cgit v1.2.3