/usr/src/redhat/BUILD/httpd-2.2.3/include/ap_config.h

説明を見る。
00001 /* Licensed to the Apache Software Foundation (ASF) under one or more
00002  * contributor license agreements.  See the NOTICE file distributed with
00003  * this work for additional information regarding copyright ownership.
00004  * The ASF licenses this file to You under the Apache License, Version 2.0
00005  * (the "License"); you may not use this file except in compliance with
00006  * the License.  You may obtain a copy of the License at
00007  *
00008  *     http://www.apache.org/licenses/LICENSE-2.0
00009  *
00010  * Unless required by applicable law or agreed to in writing, software
00011  * distributed under the License is distributed on an "AS IS" BASIS,
00012  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
00013  * See the License for the specific language governing permissions and
00014  * limitations under the License.
00015  */
00016 
00022 #ifndef AP_CONFIG_H
00023 #define AP_CONFIG_H
00024 
00025 #include "apr.h"
00026 #include "apr_hooks.h"
00027 #include "apr_optional_hooks.h"
00028 
00029 /* Although this file doesn't declare any hooks, declare the hook group here */
00035 #ifdef DOXYGEN
00036 /* define these just so doxygen documents them */
00037 
00049 # define AP_DECLARE_STATIC
00050 
00056 # define AP_DECLARE_EXPORT
00057 
00058 #endif /* def DOXYGEN */
00059 
00060 #if !defined(WIN32)
00061 
00069 #define AP_DECLARE(type)            type
00070 
00079 #define AP_DECLARE_NONSTD(type)     type
00080 
00091 #define AP_DECLARE_DATA
00092 
00093 #elif defined(AP_DECLARE_STATIC)
00094 #define AP_DECLARE(type)            type __stdcall
00095 #define AP_DECLARE_NONSTD(type)     type
00096 #define AP_DECLARE_DATA
00097 #elif defined(AP_DECLARE_EXPORT)
00098 #define AP_DECLARE(type)            __declspec(dllexport) type __stdcall
00099 #define AP_DECLARE_NONSTD(type)     __declspec(dllexport) type
00100 #define AP_DECLARE_DATA             __declspec(dllexport)
00101 #else
00102 #define AP_DECLARE(type)            __declspec(dllimport) type __stdcall
00103 #define AP_DECLARE_NONSTD(type)     __declspec(dllimport) type
00104 #define AP_DECLARE_DATA             __declspec(dllimport)
00105 #endif
00106 
00107 #if !defined(WIN32) || defined(AP_MODULE_DECLARE_STATIC)
00108 
00117 #if defined(WIN32)
00118 #define AP_MODULE_DECLARE(type)            type __stdcall
00119 #else
00120 #define AP_MODULE_DECLARE(type)            type
00121 #endif
00122 #define AP_MODULE_DECLARE_NONSTD(type)     type
00123 #define AP_MODULE_DECLARE_DATA
00124 #else
00125 
00132 #define AP_MODULE_DECLARE_EXPORT
00133 #define AP_MODULE_DECLARE(type)          __declspec(dllexport) type __stdcall
00134 #define AP_MODULE_DECLARE_NONSTD(type)   __declspec(dllexport) type
00135 #define AP_MODULE_DECLARE_DATA           __declspec(dllexport)
00136 #endif
00137 
00144 #define AP_DECLARE_HOOK(ret,name,args) \
00145         APR_DECLARE_EXTERNAL_HOOK(ap,AP,ret,name,args)
00146 
00148 #define AP_IMPLEMENT_HOOK_BASE(name) \
00149         APR_IMPLEMENT_EXTERNAL_HOOK_BASE(ap,AP,name)
00150 
00164 #define AP_IMPLEMENT_HOOK_VOID(name,args_decl,args_use) \
00165         APR_IMPLEMENT_EXTERNAL_HOOK_VOID(ap,AP,name,args_decl,args_use)
00166 
00187 #define AP_IMPLEMENT_HOOK_RUN_ALL(ret,name,args_decl,args_use,ok,decline) \
00188         APR_IMPLEMENT_EXTERNAL_HOOK_RUN_ALL(ap,AP,ret,name,args_decl, \
00189                                             args_use,ok,decline)
00190 
00207 #define AP_IMPLEMENT_HOOK_RUN_FIRST(ret,name,args_decl,args_use,decline) \
00208         APR_IMPLEMENT_EXTERNAL_HOOK_RUN_FIRST(ap,AP,ret,name,args_decl, \
00209                                               args_use,decline)
00210 
00211 /* Note that the other optional hook implementations are straightforward but
00212  * have not yet been needed
00213  */
00214 
00220 #define AP_IMPLEMENT_OPTIONAL_HOOK_RUN_ALL(ret,name,args_decl,args_use,ok, \
00221                                            decline) \
00222         APR_IMPLEMENT_OPTIONAL_HOOK_RUN_ALL(ap,AP,ret,name,args_decl, \
00223                                             args_use,ok,decline)
00224 
00229 #define AP_OPTIONAL_HOOK(name,fn,pre,succ,order) \
00230         APR_OPTIONAL_HOOK(ap,name,fn,pre,succ,order)
00231 
00232 #include "os.h"
00233 #if !defined(WIN32) && !defined(NETWARE)
00234 #include "ap_config_auto.h"
00235 #include "ap_config_layout.h"
00236 #endif
00237 #if defined(NETWARE)
00238 #define AP_NONBLOCK_WHEN_MULTI_LISTEN 1
00239 #endif
00240 
00241 /* TODO - We need to put OS detection back to make all the following work */
00242 
00243 #if defined(SUNOS4) || defined(IRIX) || defined(NEXT) || defined(AUX3) \
00244     || defined (UW) || defined(LYNXOS) || defined(TPF)
00245 /* These systems don't do well with any lingering close code; I don't know
00246  * why -- manoj */
00247 #define NO_LINGCLOSE
00248 #endif
00249 
00250 /* If APR has OTHER_CHILD logic, use reliable piped logs. */
00251 #if APR_HAS_OTHER_CHILD
00252 #define AP_HAVE_RELIABLE_PIPED_LOGS TRUE
00253 #endif
00254 
00255 /* Presume that the compiler supports C99-style designated
00256  * initializers if using GCC (but not G++), or for any other compiler
00257  * which claims C99 support. */
00258 #if (defined(__GNUC__) && !defined(__cplusplus))                \
00259      || (defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L)
00260 #define AP_HAVE_DESIGNATED_INITIALIZER
00261 #endif
00262 
00263 #endif /* AP_CONFIG_H */

Apacheに対してSun Jul 19 22:05:22 2009に生成されました。  doxygen 1.4.7