/[pcre]/code/trunk/pcrecpp_internal.h
ViewVC logotype

Contents of /code/trunk/pcrecpp_internal.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 267 - (show annotations) (download)
Wed Nov 14 11:48:49 2007 UTC (6 years, 11 months ago) by ph10
File MIME type: text/plain
File size: 2817 byte(s)
Fixed reference to PCRECPP_STATIC that should have been PCRE_STATIC.

1 /*************************************************
2 * Perl-Compatible Regular Expressions *
3 *************************************************/
4
5 /*
6 -----------------------------------------------------------------------------
7 Redistribution and use in source and binary forms, with or without
8 modification, are permitted provided that the following conditions are met:
9
10 * Redistributions of source code must retain the above copyright notice,
11 this list of conditions and the following disclaimer.
12
13 * Redistributions in binary form must reproduce the above copyright
14 notice, this list of conditions and the following disclaimer in the
15 documentation and/or other materials provided with the distribution.
16
17 * Neither the name of the University of Cambridge nor the names of its
18 contributors may be used to endorse or promote products derived from
19 this software without specific prior written permission.
20
21 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
22 AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
23 IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
24 ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
25 LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
26 CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
27 SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
28 INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
29 CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
30 ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
31 POSSIBILITY OF SUCH DAMAGE.
32 -----------------------------------------------------------------------------
33 */
34
35
36 #ifndef PCRECPP_INTERNAL_H
37 #define PCRECPP_INTERNAL_H
38
39 /* When compiling a DLL for Windows, the exported symbols have to be declared
40 using some MS magic. I found some useful information on this web page:
41 http://msdn2.microsoft.com/en-us/library/y4h7bcy6(VS.80).aspx. According to the
42 information there, using __declspec(dllexport) without "extern" we have a
43 definition; with "extern" we have a declaration. The settings here override the
44 setting in pcre.h. We use:
45
46 PCRECPP_EXP_DECL for declarations
47 PCRECPP_EXP_DEFN for definitions of exported functions
48
49 */
50
51 #ifndef PCRECPP_EXP_DECL
52 # ifdef _WIN32
53 # ifndef PCRE_STATIC
54 # define PCRECPP_EXP_DECL extern __declspec(dllexport)
55 # define PCRECPP_EXP_DEFN __declspec(dllexport)
56 # else
57 # define PCRECPP_EXP_DECL extern
58 # define PCRECPP_EXP_DEFN
59 # endif
60 # else
61 # define PCRECPP_EXP_DECL extern
62 # define PCRECPP_EXP_DEFN
63 # endif
64 #endif
65
66 #endif /* PCRECPP_INTERNAL_H */
67
68 /* End of pcrecpp_internal.h */

webmaster@exim.org
ViewVC Help
Powered by ViewVC 1.1.12