From: Adam Date: Thu, 8 May 2014 23:18:02 +0000 (-0400) Subject: Do not export callers X-Git-Tag: v2.0.23~170 X-Git-Url: https://git.netwichtig.de/gitweb/?a=commitdiff_plain;h=86e313cb46c43ade5f3ddd2d4f8f3cb6cc898e67;p=user%2Fhenk%2Fcode%2Finspircd.git Do not export callers Their functions are all inlined and Windows gives unresolved symbol errors --- diff --git a/include/caller.h b/include/caller.h index 05049df8b..40574771e 100644 --- a/include/caller.h +++ b/include/caller.h @@ -117,7 +117,7 @@ template class CoreExport caller +template class caller { public: HandlerType* target; @@ -129,7 +129,7 @@ template class CoreExport caller virtual ~caller() { } }; -template class CoreExport caller0 : public caller< HandlerBase0 > +template class caller0 : public caller< HandlerBase0 > { public: caller0(HandlerBase0* initial) @@ -142,7 +142,7 @@ template class CoreExport caller0 : public caller< Handler } }; -template class CoreExport caller1 : public caller< HandlerBase1 > +template class caller1 : public caller< HandlerBase1 > { public: caller1(HandlerBase1* initial) @@ -155,7 +155,7 @@ template class CoreExport caller1 : publi } }; -template class CoreExport caller2 : public caller< HandlerBase2 > +template class caller2 : public caller< HandlerBase2 > { public: caller2(HandlerBase2* initial) @@ -168,7 +168,7 @@ template class CoreExpor } }; -template class CoreExport caller3 : public caller< HandlerBase3 > +template class caller3 : public caller< HandlerBase3 > { public: caller3(HandlerBase3* initial) @@ -181,7 +181,7 @@ template class CoreExport caller4 : public caller< HandlerBase4 > +template class caller4 : public caller< HandlerBase4 > { public: caller4(HandlerBase4* initial) @@ -194,7 +194,7 @@ template class CoreExport caller5 : public caller< HandlerBase5 > +template class caller5 : public caller< HandlerBase5 > { public: caller5(HandlerBase5* initial) @@ -207,7 +207,7 @@ template class CoreExport caller6 : public caller< HandlerBase6 > +template class caller6 : public caller< HandlerBase6 > { public: caller6(HandlerBase6* initial) @@ -220,7 +220,7 @@ template class CoreExport caller7 : public caller< HandlerBase7 > +template class caller7 : public caller< HandlerBase7 > { public: caller7(HandlerBase7* initial) @@ -233,7 +233,7 @@ template class CoreExport caller8 : public caller< HandlerBase8 > +template class caller8 : public caller< HandlerBase8 > { public: caller8(HandlerBase8* initial) diff --git a/tools/create_templates.pl b/tools/create_templates.pl index dfdaa29d1..415433226 100755 --- a/tools/create_templates.pl +++ b/tools/create_templates.pl @@ -45,7 +45,7 @@ for(my $i = 0; $i <= $maxparams; $i++) # And now the caller family -print "template class CoreExport caller\n"; +print "template class caller\n"; print "{\n"; print " public:\n"; print " HandlerType* target;\n\n"; @@ -72,13 +72,13 @@ for(my $i = 0; $i <= $maxparams; $i++) my @templatetypepairs = map { $_ . " " . lc($_) } @templatetypes; my @lctemplatetypes = map(lc, @templatetypes); - print "template class CoreExport caller" . $i . " : public caller< " . $handlertype . " >\n"; + print "template class caller" . $i . " : public caller< " . $handlertype . " >\n"; print "{\n"; print " public:\n"; print " caller" . $i . "(" . $handlertype . "* initial)\n"; print " : caller< " . $handlertype. " >::caller(initial)\n"; print " { }\n\n"; - print " virtual ReturnType operator() (" . join(', ', @templatetypepairs[1..$#templatetypepairs]) . ")\n"; + print " ReturnType operator() (" . join(', ', @templatetypepairs[1..$#templatetypepairs]) . ")\n"; print " {\n"; print " return this->target->Call(" . join(', ', @lctemplatetypes[1..$#lctemplatetypes]) . ");\n"; print " }\n";