Overview
| Artifact ID: | 2f28494afd04b79699bd016a4490726d84685972 |
|---|---|
| Ticket: | 803489ffffffffffffffffffffffffffffffffff
Tcl_FindNamespace problem in the Stubs table |
| User & Date: | davygrvy on 2003-09-14 04:49:22 |
Changes
- icomment:
Logged In: YES user_id=7549 The technical difficulty can be described in an analogy. The door remains identical (same sig), but the locks have been changed (new slot in public). The old key still works in the new locks, but the new key won't work in the old locks (new slot is NULL, old slot hidden from view). If tclStubLib.c could fill in the new slot when NULL, both keys will work in both locks. As the memory for where the Stubs table is located is in static memory owned by the core, a new table of the type the extension understands will need to be made that it copies into and fills from the old into the new and forwarding the new public ones from the the private table when required. Ex: memcpy(newTclStubsPtr, tclStubsPtr, sizeof(TclStubs)); if (newTclStubsPtr->tcl_FindNamespace == NULL) { newTclStubsPtr->tcl_FindNamespace = tclIntStubsPtr- >tcl_FindNamespace; } The difficulty I see is not knowing the size of the table. A tclStubsPtr->size does not exist and is assumed larger than it is. Now if magic got replaced to a sizeof(TclStubs) by tclStubInit.c that would help, but.. Complicated, but probably not impossible to work around. - login: "davygrvy"
- mimetype: "text/plain"
- username: "davygrvy"