1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/tools/pcre/pcrecpp_internal.h Tue Jul 28 17:51:34 2009 -0400
1.3 @@ -0,0 +1,71 @@
1.4 +/*************************************************
1.5 +* Perl-Compatible Regular Expressions *
1.6 +*************************************************/
1.7 +
1.8 +/*
1.9 +Copyright (c) 2005, Google Inc.
1.10 +All rights reserved.
1.11 +
1.12 +-----------------------------------------------------------------------------
1.13 +Redistribution and use in source and binary forms, with or without
1.14 +modification, are permitted provided that the following conditions are met:
1.15 +
1.16 + * Redistributions of source code must retain the above copyright notice,
1.17 + this list of conditions and the following disclaimer.
1.18 +
1.19 + * Redistributions in binary form must reproduce the above copyright
1.20 + notice, this list of conditions and the following disclaimer in the
1.21 + documentation and/or other materials provided with the distribution.
1.22 +
1.23 + * Neither the name of the University of Cambridge nor the names of its
1.24 + contributors may be used to endorse or promote products derived from
1.25 + this software without specific prior written permission.
1.26 +
1.27 +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
1.28 +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
1.29 +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
1.30 +ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
1.31 +LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
1.32 +CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
1.33 +SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
1.34 +INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
1.35 +CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
1.36 +ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
1.37 +POSSIBILITY OF SUCH DAMAGE.
1.38 +-----------------------------------------------------------------------------
1.39 +*/
1.40 +
1.41 +
1.42 +#ifndef PCRECPP_INTERNAL_H
1.43 +#define PCRECPP_INTERNAL_H
1.44 +
1.45 +/* When compiling a DLL for Windows, the exported symbols have to be declared
1.46 +using some MS magic. I found some useful information on this web page:
1.47 +http://msdn2.microsoft.com/en-us/library/y4h7bcy6(VS.80).aspx. According to the
1.48 +information there, using __declspec(dllexport) without "extern" we have a
1.49 +definition; with "extern" we have a declaration. The settings here override the
1.50 +setting in pcre.h. We use:
1.51 +
1.52 + PCRECPP_EXP_DECL for declarations
1.53 + PCRECPP_EXP_DEFN for definitions of exported functions
1.54 +
1.55 +*/
1.56 +
1.57 +#ifndef PCRECPP_EXP_DECL
1.58 +# ifdef _WIN32
1.59 +# ifndef PCRE_STATIC
1.60 +# define PCRECPP_EXP_DECL extern __declspec(dllexport)
1.61 +# define PCRECPP_EXP_DEFN __declspec(dllexport)
1.62 +# else
1.63 +# define PCRECPP_EXP_DECL extern
1.64 +# define PCRECPP_EXP_DEFN
1.65 +# endif
1.66 +# else
1.67 +# define PCRECPP_EXP_DECL extern
1.68 +# define PCRECPP_EXP_DEFN
1.69 +# endif
1.70 +#endif
1.71 +
1.72 +#endif /* PCRECPP_INTERNAL_H */
1.73 +
1.74 +/* End of pcrecpp_internal.h */