rse 98/03/13 05:28:21
Modified: src/include hide.h
src/main alloc.c http_core.c http_main.c http_config.c
src/modules/standard mod_so.c
Log:
Shrink list of global symbols by making more stuff static
which currently is global without need.
Revision Changes Path
1.9 +0 -8 apache-1.3/src/include/hide.h
Index: hide.h
===================================================================
RCS file: /export/home/cvs/apache-1.3/src/include/hide.h,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -r1.8 -r1.9
--- hide.h 1998/03/13 12:06:58 1.8
+++ hide.h 1998/03/13 13:28:13 1.9
@@ -109,22 +109,17 @@
#define action_module AP_action_module
#define agent_log_module AP_agent_log_module
#define alias_module AP_alias_module
-#define alloc_mutex AP_alloc_mutex
#define anon_auth_module AP_anon_auth_module
#define asis_module AP_asis_module
#define auth_module AP_auth_module
#define autoindex_module AP_autoindex_module
-#define block_freelist AP_block_freelist
#define cern_meta_module AP_cern_meta_module
#define cgi_module AP_cgi_module
#define config_log_module AP_config_log_module
-#define core_cmds AP_core_cmds
-#define core_handlers AP_core_handlers
#define core_module AP_core_module
#define day_snames AP_day_snames
#define db_auth_module AP_db_auth_module
#define dbm_auth_module AP_dbm_auth_module
-#define default_parms AP_default_parms
#define digest_module AP_digest_module
#define dir_module AP_dir_module
#define dummy_mutex AP_dummy_mutex
@@ -139,7 +134,6 @@
#define mime_module AP_mime_module
#define month_snames AP_month_snames
#define negotiation_module AP_negotiation_module
-#define one_process AP_one_process
#define prelinked_modules AP_prelinked_modules
#define preloaded_modules AP_preloaded_modules
#define proxy_module AP_proxy_module
@@ -148,9 +142,7 @@
#define rfc1413_timeout AP_rfc1413_timeout
#define scoreboard_image AP_scoreboard_image
#define setenvif_module AP_setenvif_module
-#define so_cmds AP_so_cmds
#define so_module AP_so_module
-#define spawn_mutex AP_spawn_mutex
#define speling_module AP_speling_module
#define status_module AP_status_module
#define suexec_enabled AP_suexec_enabled
1.76 +3 -3 apache-1.3/src/main/alloc.c
Index: alloc.c
===================================================================
RCS file: /export/home/cvs/apache-1.3/src/main/alloc.c,v
retrieving revision 1.75
retrieving revision 1.76
diff -u -r1.75 -r1.76
--- alloc.c 1998/03/09 22:42:58 1.75
+++ alloc.c 1998/03/13 13:28:15 1.76
@@ -159,9 +159,9 @@
} h;
};
-union block_hdr *block_freelist = NULL;
-mutex *alloc_mutex = NULL;
-mutex *spawn_mutex = NULL;
+static union block_hdr *block_freelist = NULL;
+static mutex *alloc_mutex = NULL;
+static mutex *spawn_mutex = NULL;
#ifdef POOL_DEBUG
static char *known_stack_point;
static int stack_direction;
1.166 +2 -2 apache-1.3/src/main/http_core.c
Index: http_core.c
===================================================================
RCS file: /export/home/cvs/apache-1.3/src/main/http_core.c,v
retrieving revision 1.165
retrieving revision 1.166
diff -u -r1.165 -r1.166
--- http_core.c 1998/03/02 06:51:07 1.165
+++ http_core.c 1998/03/13 13:28:16 1.166
@@ -1815,7 +1815,7 @@
* The AllowOverride of Fileinfo allows webmasters to turn it off
*/
-command_rec core_cmds[] = {
+static command_rec core_cmds[] = {
/* Old access config file commands */
@@ -2144,7 +2144,7 @@
return OK;
}
-handler_rec core_handlers[] = {
+static handler_rec core_handlers[] = {
{ "*/*", default_handler },
{ NULL }
};
1.301 +1 -1 apache-1.3/src/main/http_main.c
Index: http_main.c
===================================================================
RCS file: /export/home/cvs/apache-1.3/src/main/http_main.c,v
retrieving revision 1.300
retrieving revision 1.301
diff -u -r1.300 -r1.301
--- http_main.c 1998/03/08 04:25:57 1.300
+++ http_main.c 1998/03/13 13:28:17 1.301
@@ -284,7 +284,7 @@
* Continue through and you'll be fine.).
*/
-int one_process = 0;
+static int one_process = 0;
/* set if timeouts are to be handled by the children and not by the parent.
* i.e. child_timeouts = !standalone || one_process.
1.104 +1 -1 apache-1.3/src/main/http_config.c
Index: http_config.c
===================================================================
RCS file: /export/home/cvs/apache-1.3/src/main/http_config.c,v
retrieving revision 1.103
retrieving revision 1.104
diff -u -r1.103 -r1.104
--- http_config.c 1998/03/13 07:49:17 1.103
+++ http_config.c 1998/03/13 13:28:18 1.104
@@ -1000,7 +1000,7 @@
* Reading whole config files...
*/
-cmd_parms default_parms =
+static cmd_parms default_parms =
{NULL, 0, -1, NULL, NULL, NULL, NULL, NULL, NULL};
API_EXPORT(char *) server_root_relative(pool *p, char *file)
1.10 +1 -1 apache-1.3/src/modules/standard/mod_so.c
Index: mod_so.c
===================================================================
RCS file: /export/home/cvs/apache-1.3/src/modules/standard/mod_so.c,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -r1.9 -r1.10
--- mod_so.c 1998/03/12 11:03:06 1.9
+++ mod_so.c 1998/03/13 13:28:21 1.10
@@ -353,7 +353,7 @@
#endif /* NO_DLOPEN */
-command_rec so_cmds[] = {
+static command_rec so_cmds[] = {
{ "LoadModule", load_module, NULL, RSRC_CONF, TAKE2,
"a module name, and the name of a shared object file to load it from"},
{ "LoadFile", load_file, NULL, RSRC_CONF, ITERATE,