mirror of
https://github.com/apache/httpd.git
synced 2025-08-06 11:06:17 +00:00
Introduce ap_(get|set)_core_module_config() functions/macros and use them
everywhere. We know that the core module has module_index 0. Therefore we can save some pointer operations in ap_get_module_config(cv, &core_module) and ap_set_module_config(cv, &core_module, val). As these are called rather often, this may actually have some (small) measurable effect. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1132781 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@ -52,7 +52,9 @@
|
||||
#define MALFORMED_MESSAGE "malformed header from script. Bad header="
|
||||
#define MALFORMED_HEADER_LENGTH_TO_SHOW 30
|
||||
|
||||
APLOG_USE_MODULE(core);
|
||||
/* we know core's module_index is 0 */
|
||||
#undef APLOG_MODULE_INDEX
|
||||
#define APLOG_MODULE_INDEX AP_CORE_MODULE_INDEX
|
||||
|
||||
static char *http2env(request_rec *r, const char *w)
|
||||
{
|
||||
|
Reference in New Issue
Block a user