Commit e810022b authored by Dave Partyka's avatar Dave Partyka
Browse files

ENH: attempt to fix support for vtkTypeUInt64.

parent 5fa3d1cd
......@@ -527,7 +527,7 @@ void get_args(FILE *fp, int i)
start_arg);
fprintf(fp," temp%i = static_cast<unsigned char>(tempi);\n",i);
break;
case 0x14: case 0x1A: case 0x1B: case 0x1C:
case 0x14: case 0x1A:
fprintf(fp," if (Tcl_GetInt(interp,argv[%i],&tempi) != TCL_OK) error = 1;\n",
start_arg);
fprintf(fp," temp%i = static_cast<unsigned int>(tempi);\n",i);
......@@ -542,6 +542,11 @@ void get_args(FILE *fp, int i)
start_arg);
fprintf(fp," temp%i = static_cast<unsigned long>(tempi);\n",i);
break;
case 0x1B: case 0x1C:
fprintf(fp," if (Tcl_GetInt(interp,argv[%i],&tempi) != TCL_OK) error = 1;\n",
start_arg);
fprintf(fp," temp%i = static_cast<unsigned long long>(tempi);\n",i);
break;
case 0x303:
fprintf(fp," temp%i = argv[%i];\n",i,start_arg);
break;
......@@ -634,6 +639,7 @@ void outputFunction(FILE *fp, FileInfo *data)
if (currentFunction->NumberOfArguments > 1 ||
!currentFunction->ArgCounts[i])
{
fprintf(fp,"//ITS A POINTER ARG\n");
args_ok = 0;
}
}
......@@ -642,19 +648,37 @@ void outputFunction(FILE *fp, FileInfo *data)
(currentFunction->ArgTypes[i] != 0x14)&&
(currentFunction->ArgTypes[i] != 0x15)&&
(currentFunction->ArgTypes[i] != 0x16)&&
(currentFunction->ArgTypes[i] != 0x1A)) args_ok = 0;
(currentFunction->ArgTypes[i] != 0x1A)&&
(currentFunction->ArgTypes[i] != 0x1B))
{
fprintf(fp,"//if > 0x10 and != to 0x13,0x14,0x15,0x16,0x1A\n");
args_ok = 0;
}
}
if ((currentFunction->ReturnType % 0x10) == 0x8)
{
fprintf(fp,"//return type is == 0x8\n");
args_ok = 0;
}
if ((currentFunction->ReturnType % 0x10) == 0x8) args_ok = 0;
if (((currentFunction->ReturnType % 0x1000)/0x100 != 0x3)&&
((currentFunction->ReturnType % 0x1000)/0x100 != 0x1)&&
((currentFunction->ReturnType % 0x1000)/0x100)) args_ok = 0;
((currentFunction->ReturnType % 0x1000)/0x100))
{
fprintf(fp,"//return type is != 0x3 0x1\n");
args_ok = 0;
}
if (currentFunction->NumberOfArguments &&
(currentFunction->ArgTypes[0] == 0x5000)
&&(currentFunction->NumberOfArguments != 1)) args_ok = 0;
&&(currentFunction->NumberOfArguments != 1))
{
fprintf(fp,"//number OfArguments != 1\n");
args_ok = 0;
}
/* we can't handle void * return types */
if ((currentFunction->ReturnType % 0x1000) == 0x302)
{
fprintf(fp,"//WE CAN'T HANDLE VOID RETURN TYPES\n");
args_ok = 0;
}
......
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