segfault fix for global scope operator used in friend declaration
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6550 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
5966a5b275
commit
78afe76002
1 changed files with 4 additions and 4 deletions
|
|
@ -2404,10 +2404,10 @@ c_decl : storage_class type declarator initializer c_decl_tail {
|
|||
|
||||
/* Look for "::" declarations (ignored) */
|
||||
if (Strstr($3.id,"::")) {
|
||||
if (Namespaceprefix) {
|
||||
/* This is a special case. If the scope name of the declaration exactly
|
||||
matches that of the declaration, then we will allow it. Otherwise, delete. */
|
||||
String *p = Swig_scopename_prefix($3.id);
|
||||
/* This is a special case. If the scope name of the declaration exactly
|
||||
matches that of the declaration, then we will allow it. Otherwise, delete. */
|
||||
String *p = Swig_scopename_prefix($3.id);
|
||||
if (p && Namespaceprefix) {
|
||||
if (Strcmp(p,Namespaceprefix) == 0) {
|
||||
Setattr($$,"name",Swig_scopename_last($3.id));
|
||||
set_nextSibling($$,$5);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue