Overview
| Artifact ID: | 23bdb5176ab8df87d1f839ec2eb3946a8e8ef32b |
|---|---|
| Ticket: | 218763ffffffffffffffffffffffffffffffffff
Missing functions from internal Stub table |
| User & Date: | nobody on 2000-10-26 01:05:05 |
Changes
- assignee changed to: "nobody"
- cmimetype changed to: "text/plain"
- comment changed to:
OriginalBugID: 2038 RFE Version: 8.1 SubmitDate: '1999-05-10' LastModified: '1999-08-06' Severity: MED Status: Released Submitter: pat ChangedBy: hobbs OS: Linux-Red Hat OSVersion: 4.2 Machine: Other FixedDate: '1999-08-06' FixedInVersion: 8.2b2 ClosedDate: '2000-10-25' Name: Jan Nijtmans Comments: A further improvement would be to export TclTestChannelObjCmd TclTestChannelEventObjCmd in stead of TclTestChannelCmd TclTestChannelEventCmd (Objectified versions of the same functions) DesiredBehavior: Currently the test files (tclTest.c, tclObjTest.c ....) cannot be compiled with the -DUSE_TCL_STUBS flag. The cause for this is that 8 internal functions are not exported (or not exported correctly) in the internal stub table. The required functions to make this work are: TclSetLibraryPath TclGetLibraryPath TclRegAbout TclRegExpExecUniChar TclRegExpRangeUniChar TclTestChannelCmd TclTestChannelEventCmd TclpStat In the patch below, the first 7 of those functions are added to tclInt.decls. The last function (TclpStat) is already present, but due to a leftover "#undef" in tclUnixPort.h, this function is not usable as it is now. The patch corrects this too (this is probably a left-over from a workaround in 8.1b2, which is no longer necessary) Finally, because of the added "regexp" functions, the ordering of the header files needs to be modified in tclTest.c. "tclRegexp.h" needs "tcl.h" first, and "tclInt.h" needs macro's from "tclRegexp.h" first. Patch: *** generic/tclInt.decls.origSun May 9 16:15:30 1999 --- generic/tclInt.declsSun May 9 17:05:09 1999 *************** *** 529,534 **** --- 529,561 ---- declare 141 generic { char *TclpGetCwd(Tcl_Interp *interp, Tcl_DString *cwdPtr) } + declare 142 generic { + void TclSetLibraryPath(Tcl_Obj *pathPtr) + } + declare 143 generic { + Tcl_Obj *TclGetLibraryPath(void) + } + declare 144 generic { + int TclRegAbout(Tcl_Interp *interp, Tcl_RegExp re) + } + declare 145 generic { + int TclRegExpExecUniChar(Tcl_Interp *interp, Tcl_RegExp re, + CONST Tcl_UniChar *uniString, int numChars, int nmatches, + int flags) + } + declare 146 generic { + void TclRegExpRangeUniChar(Tcl_RegExp re, int index, int *startPtr, + int *endPtr) + } + declare 147 generic { + int TclTestChannelCmd(ClientData clientData, + Tcl_Interp *interp, int argc, char **argv) + } + declare 148 generic { + int TclTestChannelEventCmd(ClientData clientData, + Tcl_Interp *interp, int argc, char **argv) + } + ############################################################################## # Define the platform specific internal Tcl interface. These functions are *** generic/tclTest.c.origThu Apr 29 03:11:49 1999 --- generic/tclTest.cSun May 9 17:09:51 1999 *************** *** 18,26 **** #define TCL_TEST #include "tclInt.h" #include "tclPort.h" - #include "tclRegexp.h" #include <locale.h> /* --- 18,27 ---- #define TCL_TEST + #include "tcl.h" + #include "tclRegexp.h" #include "tclInt.h" #include "tclPort.h" #include <locale.h> /* *** unix/tclUnixPort.h.origSun May 9 18:35:41 1999 --- unix/tclUnixPort.hSun May 9 18:36:38 1999 *************** *** 467,479 **** #define TclpExitexit - #ifdef TclpStat - #undef TclpStat - #endif - EXTERN intTclpLstat _ANSI_ARGS_((CONST char *path, - struct stat *buf)); - EXTERN intTclpStat _ANSI_ARGS_((CONST char *path, struct stat *buf)); /* --- 467,473 ---- PatchFiles: tclInt.decls tclTest.c tclUnixPort.h These were added in 8.2b2. -- 08/06/1999 hobbs - foundin changed to: "obsolete: 8.1"
- priority changed to: "5 Medium"
- resolution changed to: "None"
- status changed to: "Open"
- submitter changed to: "nobody"
- subsystem changed to: "69. Other"
- title changed to: "Missing functions from internal Stub table"
- type changed to: "RFE"