[w3m-dev-en 00748] PATCH: Reinitialize w3m while running

* funcname.tab (INIT_MAILCAP): deleted
	(REINIT): added
* main.c (config_filename): added
	(reinit): added
* proto.h (reinit): added
* rc.c (rc_initialized): deleted
* w3mhelperpanel.c (editMailcap): use REINIT MAILCAP
From: Tushar Samant <scribble@pobox.com>
This commit is contained in:
Fumitoshi UKAI
2002-06-01 17:09:04 +00:00
parent fc4b6e4a93
commit 900682ebd5
7 changed files with 88 additions and 14 deletions

7
rc.c
View File

@@ -1,4 +1,4 @@
/* $Id: rc.c,v 1.44 2002/06/01 16:50:16 ukai Exp $ */
/* $Id: rc.c,v 1.45 2002/06/01 17:09:05 ukai Exp $ */
/*
* Initialization file etc.
*/
@@ -33,7 +33,6 @@ struct rc_search_table {
static struct rc_search_table *RC_search_table;
static int RC_table_size;
static int rc_initialized = 0;
static char *config_file = NULL;
#define P_INT 0
@@ -1259,10 +1258,6 @@ init_rc(char *config_filename)
&& ((tmpdir = getenv("TMPDIR")) == NULL || *tmpdir == '\0'))
tmpdir = "/tmp";
if (rc_initialized)
return;
rc_initialized = 1;
if (stat(rc_dir, &st) < 0) {
if (errno == ENOENT) { /* no directory */
if (do_mkdir(rc_dir, 0700) < 0) {