httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rob Hartill <hart...@ooo.lanl.gov>
Subject Re: static
Date Mon, 10 Apr 1995 15:44:04 GMT
> 
> > /* These are stored statically so that they can be reformatted quickly */ 
> > static time_t date,lm;
> 
> Yes, that's what it means in this context. What it means is that I
> didn't want to make them globals, but decided it wasn't so bad to do
> that. The reformatting speed is when you use #config timefmt to change
> the string version of those variables, with these globals it doesn't
> have to call time(NULL) again or stat().
> 
> This is mostly because I didn't do what I should have in that I didn't
> make a structure out of the per-request variables for parsed HTML. Had
> I done that, these two vars would have been just two more entries in
> that struct.

Cheers Rob. 

Where did you learn to comment like that ? 
and is there a cure for it ?  ;-)


robh

Mime
View raw message