brian       98/05/04 21:40:40

  Modified:    src/include http_config.h
               src/main http_config.c
  Log:
  Submitted by: Dean Gaudet
  
  get/set_module_config are trivial enough to be better off inline.  Worth
  1.5% performance boost.  Updated for renaming.
  
  Dean
  
  Revision  Changes    Path
  1.82      +5 -0      apache-1.3/src/include/http_config.h
  
  Index: http_config.h
  ===================================================================
  RCS file: /export/home/cvs/apache-1.3/src/include/http_config.h,v
  retrieving revision 1.81
  retrieving revision 1.82
  diff -u -r1.81 -r1.82
  --- http_config.h     1998/05/03 17:31:08     1.81
  +++ http_config.h     1998/05/05 04:40:30     1.82
  @@ -285,6 +285,11 @@
   API_EXPORT(void *) ap_get_module_config(void *conf_vector, module *m);
   API_EXPORT(void) ap_set_module_config(void *conf_vector, module *m, void 
*val);
   
  +#define ap_get_module_config(v,m)    \
  +    (((void **)(v))[(m)->module_index])
  +#define ap_set_module_config(v,m,val)        \
  +    ((((void **)(v))[(m)->module_index]) = (val))
  +
   /* Generic command handling function... */
   
   API_EXPORT_NONSTD(const char *) ap_set_string_slot(cmd_parms *, char *, char 
*);
  
  
  
  1.115     +4 -0      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.114
  retrieving revision 1.115
  diff -u -r1.114 -r1.115
  --- http_config.c     1998/04/13 18:05:10     1.114
  +++ http_config.c     1998/05/05 04:40:39     1.115
  @@ -115,17 +115,21 @@
    * overridden).
    */
   
  +#ifndef ap_get_module_config
   API_EXPORT(void *) ap_get_module_config(void *conf_vector, module *m)
   {
       void **confv = (void **) conf_vector;
       return confv[m->module_index];
   }
  +#endif
   
  +#ifndef ap_set_module_config
   API_EXPORT(void) ap_set_module_config(void *conf_vector, module *m, void 
*val)
   {
       void **confv = (void **) conf_vector;
       confv[m->module_index] = val;
   }
  +#endif
   
   static void *create_empty_config(pool *p)
   {
  
  
  

Reply via email to