more on protected ctors+directors

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6772 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Marcelo Matus 2004-11-28 10:35:49 +00:00
commit ffa25c871d
2 changed files with 3 additions and 2 deletions

View file

@ -97,6 +97,7 @@ void cparse_normalize_void(Node *n) {
int need_protected(Node* n, int dirprot_mode)
{
/* First, 'n' looks like a function */
if (!dirprot_mode) return 0;
if ((Strcmp(nodeType(n),"cdecl") == 0) &&
SwigType_isfunction(Getattr(n,"decl"))) {
String *storage = Getattr(n,"storage");