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

Contents of /code/trunk/pcrecpp_internal.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 200 - (hide annotations) (download)
Wed Aug 1 09:10:40 2007 UTC (7 years, 3 months ago) by ph10
File MIME type: text/plain
File size: 2820 byte(s)
Correct errors in previous patch; tidy for test release.

1 ph10 200 /*************************************************
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 ph10 199 #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 ph10 200 setting in pcre.h. We use:
45 ph10 199
46     PCRECPP_EXP_DECL for declarations
47     PCRECPP_EXP_DEFN for definitions of exported functions
48    
49 ph10 200 */
50 ph10 199
51     #ifndef PCRECPP_EXP_DECL
52     # ifdef _WIN32
53     # ifndef PCRECPP_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 ph10 200 # define PCRECPP_EXP_DECL extern
62 ph10 199 # define PCRECPP_EXP_DEFN
63     # endif
64     #endif
65    
66 ph10 200 #endif /* PCRECPP_INTERNAL_H */
67 ph10 199
68     /* End of pcrecpp_internal.h */

webmaster@exim.org
ViewVC Help
Powered by ViewVC 1.1.12