Remove unused cparse_template_expand() return type
No real changes, just make a function which always returned 0 void as its return value was never used anyhow.
This commit is contained in:
parent
902f3f0ac5
commit
2c16de295b
1 changed files with 7 additions and 9 deletions
|
|
@ -49,32 +49,31 @@ void Swig_cparse_debug_templates(int x) {
|
||||||
* template parameters
|
* template parameters
|
||||||
* ----------------------------------------------------------------------------- */
|
* ----------------------------------------------------------------------------- */
|
||||||
|
|
||||||
static int cparse_template_expand(Node *n, String *tname, String *rname, String *templateargs, List *patchlist, List *typelist, List *cpatchlist) {
|
static void cparse_template_expand(Node *n, String *tname, String *rname, String *templateargs, List *patchlist, List *typelist, List *cpatchlist) {
|
||||||
static int expanded = 0;
|
static int expanded = 0;
|
||||||
int ret;
|
|
||||||
String *nodeType;
|
String *nodeType;
|
||||||
if (!n)
|
if (!n)
|
||||||
return 0;
|
return;
|
||||||
nodeType = nodeType(n);
|
nodeType = nodeType(n);
|
||||||
if (Getattr(n, "error"))
|
if (Getattr(n, "error"))
|
||||||
return 0;
|
return;
|
||||||
|
|
||||||
if (Equal(nodeType, "template")) {
|
if (Equal(nodeType, "template")) {
|
||||||
/* Change the node type back to normal */
|
/* Change the node type back to normal */
|
||||||
if (!expanded) {
|
if (!expanded) {
|
||||||
expanded = 1;
|
expanded = 1;
|
||||||
set_nodeType(n, Getattr(n, "templatetype"));
|
set_nodeType(n, Getattr(n, "templatetype"));
|
||||||
ret = cparse_template_expand(n, tname, rname, templateargs, patchlist, typelist, cpatchlist);
|
cparse_template_expand(n, tname, rname, templateargs, patchlist, typelist, cpatchlist);
|
||||||
expanded = 0;
|
expanded = 0;
|
||||||
return ret;
|
return;
|
||||||
} else {
|
} else {
|
||||||
/* Called when template appears inside another template */
|
/* Called when template appears inside another template */
|
||||||
/* Member templates */
|
/* Member templates */
|
||||||
|
|
||||||
set_nodeType(n, Getattr(n, "templatetype"));
|
set_nodeType(n, Getattr(n, "templatetype"));
|
||||||
ret = cparse_template_expand(n, tname, rname, templateargs, patchlist, typelist, cpatchlist);
|
cparse_template_expand(n, tname, rname, templateargs, patchlist, typelist, cpatchlist);
|
||||||
set_nodeType(n, "template");
|
set_nodeType(n, "template");
|
||||||
return ret;
|
return;
|
||||||
}
|
}
|
||||||
} else if (Equal(nodeType, "cdecl")) {
|
} else if (Equal(nodeType, "cdecl")) {
|
||||||
/* A simple C declaration */
|
/* A simple C declaration */
|
||||||
|
|
@ -221,7 +220,6 @@ static int cparse_template_expand(Node *n, String *tname, String *rname, String
|
||||||
cn = nextSibling(cn);
|
cn = nextSibling(cn);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static
|
static
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue