Skip to content

Commit

Permalink
int -> Tcl_Size for 2 internal functions
Browse files Browse the repository at this point in the history
  • Loading branch information
jan.nijtmans committed Oct 5, 2023
1 parent 1ac5bc1 commit a2630a8
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 13 deletions.
2 changes: 1 addition & 1 deletion generic/tclBasic.c
Original file line number Diff line number Diff line change
Expand Up @@ -6712,7 +6712,7 @@ int
TclObjInvoke(
Tcl_Interp *interp, /* Interpreter in which command is to be
* invoked. */
int objc, /* Count of arguments. */
Tcl_Size objc, /* Count of arguments. */
Tcl_Obj *const objv[], /* Argument objects; objv[0] points to the
* name of the command to invoke. */
int flags) /* Combination of flags controlling the call:
Expand Down
4 changes: 2 additions & 2 deletions generic/tclInt.decls
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ declare 62 {
int TclObjCommandComplete(Tcl_Obj *cmdPtr)
}
declare 64 {
int TclObjInvoke(Tcl_Interp *interp, int objc, Tcl_Obj *const objv[],
int TclObjInvoke(Tcl_Interp *interp, Tcl_Size objc, Tcl_Obj *const objv[],
int flags)
}
declare 69 {
Expand Down Expand Up @@ -623,7 +623,7 @@ declare 237 {
# include NRE.h too.
declare 238 {
int TclNRInterpProc(void *clientData, Tcl_Interp *interp,
int objc, Tcl_Obj *const objv[])
Tcl_Size objc, Tcl_Obj *const objv[])
}
declare 239 {
int TclNRInterpProcCore(Tcl_Interp *interp, Tcl_Obj *procNameObj,
Expand Down
8 changes: 4 additions & 4 deletions generic/tclIntDecls.h
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ EXTERN Tcl_Obj * TclNewProcBodyObj(Proc *procPtr);
EXTERN int TclObjCommandComplete(Tcl_Obj *cmdPtr);
/* Slot 63 is reserved */
/* 64 */
EXTERN int TclObjInvoke(Tcl_Interp *interp, int objc,
EXTERN int TclObjInvoke(Tcl_Interp *interp, Tcl_Size objc,
Tcl_Obj *const objv[], int flags);
/* Slot 65 is reserved */
/* Slot 66 is reserved */
Expand Down Expand Up @@ -510,7 +510,7 @@ EXTERN void TclInitVarHashTable(TclVarHashTable *tablePtr,
EXTERN int TclResetCancellation(Tcl_Interp *interp, int force);
/* 238 */
EXTERN int TclNRInterpProc(void *clientData, Tcl_Interp *interp,
int objc, Tcl_Obj *const objv[]);
Tcl_Size objc, Tcl_Obj *const objv[]);
/* 239 */
EXTERN int TclNRInterpProcCore(Tcl_Interp *interp,
Tcl_Obj *procNameObj, Tcl_Size skip,
Expand Down Expand Up @@ -652,7 +652,7 @@ typedef struct TclIntStubs {
Tcl_Obj * (*tclNewProcBodyObj) (Proc *procPtr); /* 61 */
int (*tclObjCommandComplete) (Tcl_Obj *cmdPtr); /* 62 */
void (*reserved63)(void);
int (*tclObjInvoke) (Tcl_Interp *interp, int objc, Tcl_Obj *const objv[], int flags); /* 64 */
int (*tclObjInvoke) (Tcl_Interp *interp, Tcl_Size objc, Tcl_Obj *const objv[], int flags); /* 64 */
void (*reserved65)(void);
void (*reserved66)(void);
void (*reserved67)(void);
Expand Down Expand Up @@ -826,7 +826,7 @@ typedef struct TclIntStubs {
void (*tclInitVarHashTable) (TclVarHashTable *tablePtr, Namespace *nsPtr); /* 235 */
void (*reserved236)(void);
int (*tclResetCancellation) (Tcl_Interp *interp, int force); /* 237 */
int (*tclNRInterpProc) (void *clientData, Tcl_Interp *interp, int objc, Tcl_Obj *const objv[]); /* 238 */
int (*tclNRInterpProc) (void *clientData, Tcl_Interp *interp, Tcl_Size objc, Tcl_Obj *const objv[]); /* 238 */
int (*tclNRInterpProcCore) (Tcl_Interp *interp, Tcl_Obj *procNameObj, Tcl_Size skip, ProcErrorProc *errorProc); /* 239 */
int (*tclNRRunCallbacks) (Tcl_Interp *interp, int result, struct NRE_callback *rootPtr); /* 240 */
int (*tclNREvalObjEx) (Tcl_Interp *interp, Tcl_Obj *objPtr, int flags, const CmdFrame *invoker, int word); /* 241 */
Expand Down
13 changes: 7 additions & 6 deletions generic/tclProc.c
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ static int SetLambdaFromAny(Tcl_Interp *interp, Tcl_Obj *objPtr);
static Tcl_NRPostProc ApplyNR2;
static Tcl_NRPostProc InterpProcNR2;
static Tcl_NRPostProc Uplevel_Callback;
static Tcl_ObjCmdProc NRInterpProc;

/*
* The ProcBodyObjType type
Expand Down Expand Up @@ -208,7 +209,7 @@ Tcl_ProcObjCmd(
}

cmd = TclNRCreateCommandInNs(interp, simpleName, (Tcl_Namespace *) nsPtr,
TclObjInterpProc, TclNRInterpProc, procPtr, TclProcDeleteProc);
TclObjInterpProc, NRInterpProc, procPtr, TclProcDeleteProc);

/*
* Now initialize the new procedure's cmdPtr field. This will be used
Expand Down Expand Up @@ -1610,7 +1611,7 @@ TclObjInterpProc(
* Not used much in the core; external interface for iTcl
*/

return Tcl_NRCallObjProc(interp, TclNRInterpProc, clientData, objc, objv);
return Tcl_NRCallObjProc(interp, NRInterpProc, clientData, objc, objv);
}

int
Expand All @@ -1619,7 +1620,7 @@ TclNRInterpProc(
* interpreted. */
Tcl_Interp *interp,/* Interpreter in which procedure was
* invoked. */
int objc, /* Count of number of arguments to this
Tcl_Size objc, /* Count of number of arguments to this
* procedure. */
Tcl_Obj *const objv[]) /* Argument value objects. */
{
Expand All @@ -1633,12 +1634,12 @@ TclNRInterpProc(
}

static int
NRInterpProc2(
NRInterpProc(
void *clientData, /* Record describing procedure to be
* interpreted. */
Tcl_Interp *interp, /* Interpreter in which procedure was
* invoked. */
Tcl_Size objc, /* Count of number of arguments to this
int objc, /* Count of number of arguments to this
* procedure. */
Tcl_Obj *const objv[]) /* Argument value objects. */
{
Expand All @@ -1665,7 +1666,7 @@ ObjInterpProc2(
* Not used much in the core; external interface for iTcl
*/

return Tcl_NRCallObjProc2(interp, NRInterpProc2, clientData, objc, objv);
return Tcl_NRCallObjProc2(interp, TclNRInterpProc, clientData, objc, objv);
}


Expand Down

0 comments on commit a2630a8

Please sign in to comment.