bottleneck testcase based on rubbos
[bottlenecks.git] / rubbos / app / tomcat-connectors-1.2.32-src / native / common / jk_version.h
1 /*
2  *  Licensed to the Apache Software Foundation (ASF) under one or more
3  *  contributor license agreements.  See the NOTICE file distributed with
4  *  this work for additional information regarding copyright ownership.
5  *  The ASF licenses this file to You under the Apache License, Version 2.0
6  *  (the "License"); you may not use this file except in compliance with
7  *  the License.  You may obtain a copy of the License at
8  *
9  *      http://www.apache.org/licenses/LICENSE-2.0
10  *
11  *  Unless required by applicable law or agreed to in writing, software
12  *  distributed under the License is distributed on an "AS IS" BASIS,
13  *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  *  See the License for the specific language governing permissions and
15  *  limitations under the License.
16  */
17
18 /***************************************************************************
19  * Description: JK version header file                                     *
20  * Version:     $Revision: 1141394 $                                           *
21  ***************************************************************************/
22
23 #ifndef __JK_VERSION_H
24 #define __JK_VERSION_H
25
26 /************** START OF AREA TO MODIFY BEFORE RELEASING *************/
27 #define JK_VERMAJOR     1
28 #define JK_VERMINOR     2
29 #define JK_VERFIX       32
30
31 /* set JK_VERISRELEASE to 1 when release (do not forget to commit!) */
32 #define JK_VERISRELEASE 1
33 /* Beta number */
34 #define JK_VERBETA      0
35 #define JK_BETASTRING   "0"
36 /* Release candidate */
37 #define JK_VERRC        0
38 #define JK_RCSTRING     "0"
39 /* Source Control Revision as a suffix, e.g. "-r12345" */
40 #define JK_REVISION " ()"
41
42 /************** END OF AREA TO MODIFY BEFORE RELEASING *************/
43
44 #if !defined(PACKAGE)
45 #if defined(JK_ISAPI)
46 #define PACKAGE "isapi_redirector"
47 #define JK_DLL_SUFFIX "dll"
48 #elif defined(JK_NSAPI)
49 #define PACKAGE "nsapi_redirector"
50 #define JK_DLL_SUFFIX "dll"
51 #else
52 #define PACKAGE "mod_jk"
53 #define JK_DLL_SUFFIX "so"
54 #endif
55 #endif
56
57 /* Build JK_EXPOSED_VERSION and JK_VERSION */
58 #define JK_EXPOSED_VERSION_INT PACKAGE "/" JK_VERSTRING
59
60 #if (JK_VERBETA != 0)
61 #define JK_EXPOSED_VERSION JK_EXPOSED_VERSION_INT "-beta-" JK_BETASTRING
62 #else
63 #undef JK_VERBETA
64 #define JK_VERBETA 255
65 #if (JK_VERRC != 0)
66 #define JK_EXPOSED_VERSION JK_EXPOSED_VERSION_INT "-rc-" JK_RCSTRING
67 #elif (JK_VERISRELEASE == 1)
68 #define JK_EXPOSED_VERSION JK_EXPOSED_VERSION_INT
69 #else
70 #define JK_EXPOSED_VERSION JK_EXPOSED_VERSION_INT "-dev" JK_REVISION
71 #endif
72 #endif
73 #define JK_FULL_EXPOSED_VERSION JK_EXPOSED_VERSION JK_REVISION
74
75 #define JK_MAKEVERSION(major, minor, fix, beta) \
76             (((major) << 24) + ((minor) << 16) + ((fix) << 8) + (beta))
77
78 #define JK_VERSION JK_MAKEVERSION(JK_VERMAJOR, JK_VERMINOR, JK_VERFIX, JK_VERBETA)
79
80 /** Properly quote a value as a string in the C preprocessor */
81 #define JK_STRINGIFY(n) JK_STRINGIFY_HELPER(n)
82 /** Helper macro for JK_STRINGIFY */
83 #define JK_STRINGIFY_HELPER(n) #n
84 #define JK_VERSTRING \
85             JK_STRINGIFY(JK_VERMAJOR) "." \
86             JK_STRINGIFY(JK_VERMINOR) "." \
87             JK_STRINGIFY(JK_VERFIX)
88
89 /* macro for Win32 .rc files using numeric csv representation */
90 #define JK_VERSIONCSV JK_VERMAJOR ##, \
91                     ##JK_VERMINOR ##, \
92                     ##JK_VERFIX
93
94
95 #endif /* __JK_VERSION_H */
96