diff options
| author | apnadkarni <apnmbx-wits@yahoo.com> | 2023-04-19 09:18:32 (GMT) |
|---|---|---|
| committer | apnadkarni <apnmbx-wits@yahoo.com> | 2023-04-19 09:18:32 (GMT) |
| commit | ae3ae231d062923a954f46ee5d854b7cb1ed3360 (patch) | |
| tree | ee4764a682218ba0762817716723101f26a5155f /unix/tclUnixInit.c | |
| parent | d87bc3c2f0cc186486e5c0fee0dc59a8e952cbaa (diff) | |
| parent | d4dd40b364d4b3e6a4fa9e5b26c65d79e7d3d58d (diff) | |
| download | tcl-ae3ae231d062923a954f46ee5d854b7cb1ed3360.zip tcl-ae3ae231d062923a954f46ee5d854b7cb1ed3360.tar.gz tcl-ae3ae231d062923a954f46ee5d854b7cb1ed3360.tar.bz2 | |
Merge trunk
Diffstat (limited to 'unix/tclUnixInit.c')
| -rw-r--r-- | unix/tclUnixInit.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/unix/tclUnixInit.c b/unix/tclUnixInit.c index 8f3feaf..9d1c192 100644 --- a/unix/tclUnixInit.c +++ b/unix/tclUnixInit.c @@ -455,7 +455,7 @@ TclpInitPlatform(void) void TclpInitLibraryPath( char **valuePtr, - size_t *lengthPtr, + TCL_HASH_TYPE *lengthPtr, Tcl_Encoding *encodingPtr) { #define LIBRARY_SIZE 32 @@ -478,7 +478,7 @@ TclpInitLibraryPath( if ((str != NULL) && (str[0] != '\0')) { Tcl_DString ds; - size_t pathc; + Tcl_Size pathc; const char **pathv; char installLib[LIBRARY_SIZE]; @@ -1002,7 +1002,7 @@ TclpSetVariables( * * Results: * The return value is the index in environ of an entry with the name - * "name", or TCL_INDEX_NONE if there is no such entry. The integer at *lengthPtr is + * "name", or -1 if there is no such entry. The integer at *lengthPtr is * filled in with the length of name (if a matching entry is found) or * the length of the environ array (if no matching entry is found). * @@ -1012,16 +1012,16 @@ TclpSetVariables( *---------------------------------------------------------------------- */ -size_t +Tcl_Size TclpFindVariable( const char *name, /* Name of desired environment variable * (native). */ - size_t *lengthPtr) /* Used to return length of name (for + Tcl_Size *lengthPtr) /* Used to return length of name (for * successful searches) or number of non-NULL * entries in environ (for unsuccessful * searches). */ { - size_t i, result = TCL_INDEX_NONE; + Tcl_Size i, result = -1; const char *env, *p1, *p2; Tcl_DString envString; |
