00001 /************************************************* 00002 * Perl-Compatible Regular Expressions * 00003 *************************************************/ 00004 00005 /* 00006 Copyright (c) 2005, Google Inc. 00007 All rights reserved. 00008 00009 ----------------------------------------------------------------------------- 00010 Redistribution and use in source and binary forms, with or without 00011 modification, are permitted provided that the following conditions are met: 00012 00013 * Redistributions of source code must retain the above copyright notice, 00014 this list of conditions and the following disclaimer. 00015 00016 * Redistributions in binary form must reproduce the above copyright 00017 notice, this list of conditions and the following disclaimer in the 00018 documentation and/or other materials provided with the distribution. 00019 00020 * Neither the name of the University of Cambridge nor the names of its 00021 contributors may be used to endorse or promote products derived from 00022 this software without specific prior written permission. 00023 00024 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 00025 AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 00026 IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 00027 ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE 00028 LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 00029 CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 00030 SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 00031 INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 00032 CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 00033 ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 00034 POSSIBILITY OF SUCH DAMAGE. 00035 ----------------------------------------------------------------------------- 00036 */ 00037 00038 00039 #ifndef PCRECPP_INTERNAL_H 00040 #define PCRECPP_INTERNAL_H 00041 00042 /* When compiling a DLL for Windows, the exported symbols have to be declared 00043 using some MS magic. I found some useful information on this web page: 00044 http://msdn2.microsoft.com/en-us/library/y4h7bcy6(VS.80).aspx. According to the 00045 information there, using __declspec(dllexport) without "extern" we have a 00046 definition; with "extern" we have a declaration. The settings here override the 00047 setting in pcre.h. We use: 00048 00049 PCRECPP_EXP_DECL for declarations 00050 PCRECPP_EXP_DEFN for definitions of exported functions 00051 00052 */ 00053 00054 #ifndef PCRECPP_EXP_DECL 00055 # ifdef _WIN32 00056 # ifndef PCRE_STATIC 00057 # define PCRECPP_EXP_DECL extern __declspec(dllexport) 00058 # define PCRECPP_EXP_DEFN __declspec(dllexport) 00059 # else 00060 # define PCRECPP_EXP_DECL extern 00061 # define PCRECPP_EXP_DEFN 00062 # endif 00063 # else 00064 # define PCRECPP_EXP_DECL extern 00065 # define PCRECPP_EXP_DEFN 00066 # endif 00067 #endif 00068 00069 #endif /* PCRECPP_INTERNAL_H */ 00070 00071 /* End of pcrecpp_internal.h */