Modify following features to work as flags, so that they can be truely set and unset:
java:const
java:downcast
compactdefaultargs
ignore
valuewrapper
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7562 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
33486da5a5
commit
beebb0a8e1
13 changed files with 40 additions and 42 deletions
|
|
@ -438,7 +438,7 @@ static void add_symbols(Node *n) {
|
|||
}
|
||||
if (strncmp(Char(symname),"$ignore",7) == 0) {
|
||||
char *c = Char(symname)+7;
|
||||
Setattr(n,"feature:ignore","1");
|
||||
SetFlag(n,"feature:ignore");
|
||||
if (strlen(c)) {
|
||||
SWIG_WARN_NODE_BEGIN(n);
|
||||
Swig_warning(0,Getfile(n), Getline(n), "%s\n",c+1);
|
||||
|
|
@ -1166,7 +1166,7 @@ static void default_arguments(Node *n) {
|
|||
(one wrapped method per function irrespective of number of default arguments) */
|
||||
if (compact_default_args
|
||||
|| is_cfunction(function)
|
||||
|| Getattr(function,"feature:compactdefaultargs")
|
||||
|| GetFlag(function,"feature:compactdefaultargs")
|
||||
|| Getattr(function,"feature:kwargs")) {
|
||||
ParmList *p = Getattr(function,"parms");
|
||||
if (p)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue