You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by Dean Gaudet <dg...@arctic.org> on 1998/03/04 09:11:12 UTC

Re: cvs commit: apache-1.3/src/os/unix os.h


On 4 Mar 1998 coar@hyperreal.org wrote:

>    #if defined(__DATE__) && defined(__TIME__)
>   -const char SERVER_BUILT[] = __DATE__ " " __TIME__;
>   +static const char server_built[] = __DATE__ " " __TIME__;
>    #else
>   -const char SERVER_BUILT[] = "unknown";
>   +static const char server_built[] = "unknown";
>    #endif
>   +static const char server_version[] = SERVER_VERSION;

I don't understand why we can't export variables, why do we need to call a
function to find the variable?  I thought the problem was just that
SERVER_VERSION was a #define and so we needed it to be stored in a const
char [] somewhere. 

Dean


Re: cvs commit: apache-1.3/src/os/unix os.h

Posted by Rodent of Unusual Size <Ke...@Golux.Com>.
Dean Gaudet wrote:
> 
> I don't understand why we can't export variables, why do we need to call a
> function to find the variable?  I thought the problem was just that
> SERVER_VERSION was a #define and so we needed it to be stored in a const
> char [] somewhere.

I can't find the discussion right now (my index is hosed), but I clearly
remember that abstracting them through fetch routines was coming out on
top.  So that's what I did.  Plus, I hate global variables in APIs.

#ken	P-)}

Ken Coar                    <http://Web.Golux.Com/coar/>
Apache Group member         <http://www.apache.org/>
"Apache Server for Dummies" <http://WWW.Dummies.Com/