aboutsummaryrefslogtreecommitdiffstats
path: root/fm.h
diff options
context:
space:
mode:
authorFumitoshi UKAI <ukai@debian.or.jp>2002-06-01 16:50:16 +0000
committerFumitoshi UKAI <ukai@debian.or.jp>2002-06-01 16:50:16 +0000
commitfc4b6e4a93dc91fea7b64e9230d8aea9bcfe99ee (patch)
tree3aeb231080b2ce828adb5d294045ce00b06501f3 /fm.h
parent[w3m-dev 03196] C-w (diff)
downloadw3m-fc4b6e4a93dc91fea7b64e9230d8aea9bcfe99ee.tar.gz
w3m-fc4b6e4a93dc91fea7b64e9230d8aea9bcfe99ee.zip
[w3m-dev 03200] Re: New configuration option ``keymap_file'' and new command ``DEFINE_KEY''
* fm.h: add <sts/stat.h>, 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 <suto@ks-and-ks.ne.jp>
Diffstat (limited to 'fm.h')
-rw-r--r--fm.h6
1 files changed, 5 insertions, 1 deletions
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 <string.h>
#include <unistd.h>
#include <sys/types.h>
+#include <sys/stat.h>
+#include <unistd.h>
#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)))