diff options
author | Fumitoshi UKAI <ukai@debian.or.jp> | 2001-11-27 18:29:24 +0000 |
---|---|---|
committer | Fumitoshi UKAI <ukai@debian.or.jp> | 2001-11-27 18:29:24 +0000 |
commit | 600a6bbd4bc23e295e602f05d400663a3241be41 (patch) | |
tree | e4a3b782a51b61ec0ccf6bb532e8e45fc17ce873 /rc.c | |
parent | [w3m-dev 02578] (diff) | |
download | w3m-600a6bbd4bc23e295e602f05d400663a3241be41.tar.gz w3m-600a6bbd4bc23e295e602f05d400663a3241be41.zip |
[w3m-dev 02574] sysconfdir
From: Fumitoshi UKAI <ukai@debian.or.jp>
Diffstat (limited to 'rc.c')
-rw-r--r-- | rc.c | 13 |
1 files changed, 11 insertions, 2 deletions
@@ -1,4 +1,4 @@ -/* $Id: rc.c,v 1.14 2001/11/24 02:01:26 ukai Exp $ */ +/* $Id: rc.c,v 1.15 2001/11/27 18:29:24 ukai Exp $ */ /* * Initialization file etc. */ @@ -1196,7 +1196,7 @@ init_rc(char *config_file) } /* open config file */ - if ((f = fopen(libFile(W3MCONFIG), "rt")) != NULL) { + if ((f = fopen(etcFile(W3MCONFIG), "rt")) != NULL) { interpret_rc(f); fclose(f); } @@ -1371,6 +1371,15 @@ libFile(char *base) } char * +etcFile(char *base) +{ + Str file = Strnew_charp(w3m_etc_dir()); + Strcat_char(file, '/'); + Strcat_charp(file, base); + return expandName(file->ptr); +} + +char * helpFile(char *base) { Str file = Strnew_charp(w3m_help_dir()); |