[Perl] Don't specify Perl prototype "()" for a constructor with a
different name to the class, as such constructors can still take parameters. git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11397 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
58088c7aab
commit
c1399658ff
2 changed files with 6 additions and 1 deletions
|
|
@ -1,6 +1,11 @@
|
||||||
Version 1.3.40 (in progress)
|
Version 1.3.40 (in progress)
|
||||||
============================
|
============================
|
||||||
|
|
||||||
|
2009-07-15: olly
|
||||||
|
[Perl] Don't specify Perl prototype "()" for a constructor with a
|
||||||
|
different name to the class, as such constructors can still take
|
||||||
|
parameters.
|
||||||
|
|
||||||
2009-07-05: olly
|
2009-07-05: olly
|
||||||
[PHP] Update the list of PHP keywords - "cfunction" is no longer a
|
[PHP] Update the list of PHP keywords - "cfunction" is no longer a
|
||||||
keyword in PHP5 and PHP 5.3 added "goto", "namespace", "__DIR__",
|
keyword in PHP5 and PHP 5.3 added "goto", "namespace", "__DIR__",
|
||||||
|
|
|
||||||
|
|
@ -1511,7 +1511,7 @@ public:
|
||||||
Printf(pcode, "sub new {\n");
|
Printf(pcode, "sub new {\n");
|
||||||
} else {
|
} else {
|
||||||
/* Constructor doesn't match classname so we'll just use the normal name */
|
/* Constructor doesn't match classname so we'll just use the normal name */
|
||||||
Printv(pcode, "sub ", Swig_name_construct(symname), " () {\n", NIL);
|
Printv(pcode, "sub ", Swig_name_construct(symname), " {\n", NIL);
|
||||||
}
|
}
|
||||||
|
|
||||||
Printv(pcode,
|
Printv(pcode,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue