Commit 2d80f2f7 authored by David Gobbi's avatar David Gobbi Committed by Marcus D. Hanwell
Browse files

BUG: make sure that "char *" and "char []" aren't confused

parent ead196b8
......@@ -751,6 +751,12 @@ void outputFunction(FILE *fp, FileInfo *data)
{
args_ok = 0;
}
/* don't allow "char []", only allow "char *" */
if (argType == VTK_PARSE_CHAR_PTR && currentFunction->ArgCounts[i] != 0)
{
args_ok = 0;
}
}
/* check the return type */
......@@ -823,6 +829,12 @@ void outputFunction(FILE *fp, FileInfo *data)
break;
}
/* don't allow "char []", only allow "char *" */
if (returnType == VTK_PARSE_CHAR_PTR && currentFunction->HaveHint)
{
args_ok = 0;
}
/* check for methods that will be overriden especially for Tcl */
if (!strcmp("vtkObject",data->ClassName))
{
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment