diff options
author | ph10 <ph10@2f5784b3-3f2a-0410-8824-cb99058d5e15> | 2007-07-31 14:39:09 +0000 |
---|---|---|
committer | ph10 <ph10@2f5784b3-3f2a-0410-8824-cb99058d5e15> | 2007-07-31 14:39:09 +0000 |
commit | e188596ef3e912f62e3ae85c8da905a54fc41d8b (patch) | |
tree | ebd384645bf62c640a04fe0308bcbac05e8087e0 /pcrecpp.cc | |
parent | 235d0eb42c6281f0d8a1863f866c4d2722f0cdcf (diff) | |
download | pcre-e188596ef3e912f62e3ae85c8da905a54fc41d8b.tar.gz |
Daniel's patch for config.h and Windows DLL declarations (not fully working).
git-svn-id: svn://vcs.exim.org/pcre/code/trunk@199 2f5784b3-3f2a-0410-8824-cb99058d5e15
Diffstat (limited to 'pcrecpp.cc')
-rw-r--r-- | pcrecpp.cc | 13 |
1 files changed, 6 insertions, 7 deletions
@@ -30,7 +30,7 @@ // Author: Sanjay Ghemawat #ifdef HAVE_CONFIG_H -# include <config.h> +#include <config.h> #endif #include <stdlib.h> @@ -41,12 +41,11 @@ #include <errno.h> #include <string> #include <algorithm> -// We need this to compile the proper dll on windows/msys. This is copied -// from pcre_internal.h. It would probably be better just to include that. -#define PCRE_DEFINITION /* Win32 __declspec(export) trigger for .dll */ + +#include "pcrecpp_internal.h" #include <pcre.h> -#include "pcre_stringpiece.h" #include "pcrecpp.h" +#include "pcre_stringpiece.h" namespace pcrecpp { @@ -56,7 +55,7 @@ static const int kMaxArgs = 16; static const int kVecSize = (1 + kMaxArgs) * 3; // results + PCRE workspace // Special object that stands-in for no argument -Arg no_arg((void*)NULL); +PCRECPP_EXP_DECL Arg no_arg((void*)NULL); // If a regular expression has no error, its error_ field points here static const string empty_string; @@ -463,7 +462,7 @@ int RE::TryMatch(const StringPiece& text, return 0; } - pcre_extra extra = { 0 }; + pcre_extra extra = { 0, 0, 0, 0, 0, 0 }; if (options_.match_limit() > 0) { extra.flags |= PCRE_EXTRA_MATCH_LIMIT; extra.match_limit = options_.match_limit(); |