X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=tools%2Fcreate_templates.pl;h=4154332266dce956776cc1186be67e8642145503;hb=d4b7746ef2c6ba8a1955f8d9b37fd5213a809def;hp=b11a633e9b64dd11b674c8a2487fa94f3865cc70;hpb=b06d9c4ad43875f3f6dae178b32b6c1c91e6eb2f;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/tools/create_templates.pl b/tools/create_templates.pl index b11a633e9..415433226 100755 --- a/tools/create_templates.pl +++ b/tools/create_templates.pl @@ -1,16 +1,23 @@ #!/usr/bin/perl -# +------------------------------------+ -# | Inspire Internet Relay Chat Daemon | -# +------------------------------------+ # -# InspIRCd: (C) 2002-2009 InspIRCd Development Team -# See: http://www.inspircd.org/wiki/index.php/Credits +# InspIRCd -- Internet Relay Chat Daemon # -# This program is free but copyrighted software; see -# the file COPYING for details. +# Copyright (C) 2007 Craig Edwards # -# --------------------------------------------------- +# This file is part of InspIRCd. InspIRCd is free software: you can +# redistribute it and/or modify it under the terms of the GNU General Public +# License as published by the Free Software Foundation, version 2. +# +# This program is distributed in the hope that it will be useful, but WITHOUT +# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS +# FOR A PARTICULAR PURPOSE. See the GNU General Public License for more +# details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see . +# + use strict; use warnings; @@ -38,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"; @@ -65,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";