Return-Path: Delivered-To: apmail-new-httpd-archive@apache.org Received: (qmail 85657 invoked by uid 500); 27 May 2000 22:15:14 -0000 Mailing-List: contact new-httpd-help@apache.org; run by ezmlm Precedence: bulk X-No-Archive: yes Reply-To: new-httpd@apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list new-httpd@apache.org Received: (qmail 85644 invoked from network); 27 May 2000 22:15:13 -0000 Date: Sat, 27 May 2000 15:14:58 -0700 (PDT) From: Greg Stein To: new-httpd@apache.org Subject: moving globals (was: RE: cvs commit: ...) In-Reply-To: <000701bfc825$d3a42b80$345985d0@corecomm.net> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Spam-Rating: locus.apache.org 1.6.2 0/1000/N On Sat, 27 May 2000, William A. Rowe, Jr. wrote: >... > > > This patch also moves the following data from http_main > > to http_config: > > > > > > const char *ap_server_argv0; > > > const char *ap_server_root; > > > ap_array_header_t *ap_server_pre_read_config; > > > ap_array_header_t *ap_server_post_read_config; > > > ap_array_header_t *ap_server_config_defines; > > > > Why? > > Unless someone has STRONG feelings, I am looking to isolate the code > module http_main.c to allow it to link into a seperate binary. These > args are the only thing in my way. In this, the Win32 implementation > becomes Apache.exe (of http_main.c alone) dynamically linked to all > the remaining core server code. This is premised on http_main.c being able to link into a separate binary. I think that you might run into problems over time because that is not apparent in the source organization. People may end up introducing new things to http_main.c that break this. I don't have a particular solution to that, but it is a concern. In any case, the move of the variables seems okay. Globals are bunk in the first place, so whereever they go, they're still bogus :-) Cheers, -g -- Greg Stein, http://www.lyra.org/