From 44cbd3d4b477f855d46259f7fbc743c0b96c7678 Mon Sep 17 00:00:00 2001 From: Jay Berkenbilt Date: Mon, 12 Oct 2009 01:15:55 +0000 Subject: do DLL_EXPORT only in header files and only at the class or top-level function level git-svn-id: svn+q:///qpdf/trunk@796 71b93d88-0707-0410-a8cf-f5a4172ac649 --- libqpdf/PCRE.cc | 15 --------------- 1 file changed, 15 deletions(-) (limited to 'libqpdf/PCRE.cc') diff --git a/libqpdf/PCRE.cc b/libqpdf/PCRE.cc index 859c5c49..d381db3b 100644 --- a/libqpdf/PCRE.cc +++ b/libqpdf/PCRE.cc @@ -5,31 +5,26 @@ #include #include -DLL_EXPORT PCRE::NoBackref::NoBackref() : std::logic_error("PCRE error: no match") { } -DLL_EXPORT PCRE::Match::Match(int nbackrefs, char const* subject) { this->init(-1, nbackrefs, subject); } -DLL_EXPORT PCRE::Match::~Match() { this->destroy(); } -DLL_EXPORT PCRE::Match::Match(Match const& rhs) { this->copy(rhs); } -DLL_EXPORT PCRE::Match& PCRE::Match::operator=(Match const& rhs) { @@ -72,13 +67,11 @@ PCRE::Match::destroy() delete [] this->ovector; } -DLL_EXPORT PCRE::Match::operator bool() { return (this->nmatches >= 0); } -DLL_EXPORT std::string PCRE::Match::getMatch(int n, int flags) { @@ -107,7 +100,6 @@ PCRE::Match::getMatch(int n, int flags) return std::string(this->subject).substr(offset, length); } -DLL_EXPORT void PCRE::Match::getOffsetLength(int n, int& offset, int& length) { @@ -121,7 +113,6 @@ PCRE::Match::getOffsetLength(int n, int& offset, int& length) length = this->ovector[n * 2 + 1] - offset; } -DLL_EXPORT int PCRE::Match::getOffset(int n) { @@ -131,7 +122,6 @@ PCRE::Match::getOffset(int n) return offset; } -DLL_EXPORT int PCRE::Match::getLength(int n) { @@ -141,14 +131,12 @@ PCRE::Match::getLength(int n) return length; } -DLL_EXPORT int PCRE::Match::nMatches() const { return this->nmatches; } -DLL_EXPORT PCRE::PCRE(char const* pattern, int options) { char const *errptr; @@ -168,13 +156,11 @@ PCRE::PCRE(char const* pattern, int options) } } -DLL_EXPORT PCRE::~PCRE() { pcre_free(this->code); } -DLL_EXPORT PCRE::Match PCRE::match(char const* subject, int options, int startoffset, int size) { @@ -222,7 +208,6 @@ PCRE::match(char const* subject, int options, int startoffset, int size) return result; } -DLL_EXPORT void PCRE::test(int n) { -- cgit v1.2.3-54-g00ecf