fix problem introduced by notmatch, extra not
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8367 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
e883ef6a67
commit
985201ddec
2 changed files with 24 additions and 2 deletions
|
|
@ -1,5 +1,14 @@
|
||||||
%module rename_camel
|
%module rename_camel
|
||||||
|
|
||||||
|
%rename("%(utitle)s",match="cdecl") "";
|
||||||
|
|
||||||
|
%inline {
|
||||||
|
struct GeometryFactory
|
||||||
|
{
|
||||||
|
void createPointFromInternalCoord(int);
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
%define SedCmd "%(command:sed -e 's/\([a-z]\)/\U\\1/' -e 's/\(_\)\([a-z]\)/\U\\2/g' <<<)s" %enddef
|
%define SedCmd "%(command:sed -e 's/\([a-z]\)/\U\\1/' -e 's/\(_\)\([a-z]\)/\U\\2/g' <<<)s" %enddef
|
||||||
|
|
||||||
|
|
@ -40,3 +49,5 @@
|
||||||
int foo(int);
|
int foo(int);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -20,7 +20,9 @@ char cvsroot_naming_c[] = "$Header$";
|
||||||
|
|
||||||
static Hash *naming_hash = 0;
|
static Hash *naming_hash = 0;
|
||||||
|
|
||||||
/* #define SWIG_DEBUG */
|
#if 0
|
||||||
|
#define SWIG_DEBUG
|
||||||
|
#endif
|
||||||
|
|
||||||
/* -----------------------------------------------------------------------------
|
/* -----------------------------------------------------------------------------
|
||||||
* Swig_name_register()
|
* Swig_name_register()
|
||||||
|
|
@ -1079,6 +1081,9 @@ static DOH *Swig_get_lattr(Node *n, List *lattr)
|
||||||
int Swig_name_match_nameobj(Hash *rn, Node *n) {
|
int Swig_name_match_nameobj(Hash *rn, Node *n) {
|
||||||
int match = 1;
|
int match = 1;
|
||||||
List *matchlist = HashGetAttr(rn,k_matchlist);
|
List *matchlist = HashGetAttr(rn,k_matchlist);
|
||||||
|
#ifdef SWIG_DEBUG
|
||||||
|
Printf(stderr,"Swig_name_match_nameobj: %s\n",Getattr(n,"name"));
|
||||||
|
#endif
|
||||||
if (matchlist) {
|
if (matchlist) {
|
||||||
int ilen = Len(matchlist);
|
int ilen = Len(matchlist);
|
||||||
int i;
|
int i;
|
||||||
|
|
@ -1091,10 +1096,16 @@ int Swig_name_match_nameobj(Hash *rn, Node *n) {
|
||||||
if (nval) {
|
if (nval) {
|
||||||
String *kwval = Getattr(kw,k_value);
|
String *kwval = Getattr(kw,k_value);
|
||||||
match = Equal(nval, kwval);
|
match = Equal(nval, kwval);
|
||||||
|
#ifdef SWIG_DEBUG
|
||||||
|
Printf(stderr,"val %s %s %d %d \n",nval, kwval,match, notmatch);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
if (!notmatch) match = !match;
|
if (notmatch) match = !match;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#ifdef SWIG_DEBUG
|
||||||
|
Printf(stderr,"Swig_name_match_nameobj: %d\n",match);
|
||||||
|
#endif
|
||||||
return match;
|
return match;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue