#define CONST86
#endif
+#if !HAVE_TCL_VERSION(8,7)
+typedef int Tcl_Size;
+#endif
+
/* define our text domain for translations */
#undef TEXTDOMAIN
#define TEXTDOMAIN PG_TEXTDOMAIN("pltcl")
HeapTuple tup;
Tcl_Obj *resultObj;
Tcl_Obj **resultObjv;
- int resultObjc;
+ Tcl_Size resultObjc;
/*
* Set up data about result type. XXX it's tempting to consider
int tcl_rc;
int i;
const char *result;
- int result_Objc;
+ Tcl_Size result_Objc;
Tcl_Obj **result_Objv;
int rc PG_USED_FOR_ASSERTS_ONLY;
char *tmp;
const char *cp1;
char *cp2;
- int length;
+ Tcl_Size length;
/************************************************************
* Check call syntax
if (prodesc->fn_retistuple)
{
Tcl_Obj **rowObjv;
- int rowObjc;
+ Tcl_Size rowObjc;
/* result should be a list, so break it down */
if (Tcl_ListObjGetElements(interp, objv[1], &rowObjc, &rowObjv) == TCL_ERROR)
int objc, Tcl_Obj *const objv[])
{
volatile MemoryContext plan_cxt = NULL;
- int nargs;
+ Tcl_Size nargs;
Tcl_Obj **argsObj;
pltcl_query_desc *qdesc;
int i;
const char *arrayname = NULL;
Tcl_Obj *loop_body = NULL;
int count = 0;
- int callObjc;
+ Tcl_Size callObjc;
Tcl_Obj **callObjv = NULL;
Datum *argvalues;
MemoryContext oldcontext = CurrentMemoryContext;