Changes On Branch on-hold-trunk
Not logged in

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Changes In Branch on-hold-trunk Excluding Merge-Ins

This is equivalent to a diff from 182c1d99c3 to 7b721861e8

2012-11-19
22:08
[Bug 3588366]: Corrected implementation of bounds restriction for end-indexed compiled [string range... check-in: 2af48a01bb user: dkf tags: trunk
17:30
merge trunk check-in: 9e3b81d1d8 user: dgp tags: core-8-6-0-rc
2012-11-18
22:11
Better deprecation: If TCL_NO_DEPRECATED is defined, disable Tcl_CreateMathFunc, Tcl_GetMathFuncInfo... check-in: f283c4dc45 user: jan.nijtmans tags: better-deprecation
17:24
change stub library to detect - and generate a nice error-message - when a shared library compiled ... check-in: cd530ee72f user: jan.nijtmans tags: novem
17:12
<i>on-hold at Don Porter's request</i> change stub library to detect - and generate a nice error-me... Closed-Leaf check-in: 7b721861e8 user: jan.nijtmans tags: on-hold-trunk
17:04
<i>On hold at Don Porter's request</i> hange stub library to detect - and generate a nice error-mes... Closed-Leaf check-in: 9c960be0cb user: jan.nijtmans tags: on-hold-85
2012-11-16
22:51
merge trunk check-in: 8f081ad005 user: dgp tags: dgp-remove-string-result
16:37
merge trunk check-in: 748e6739a3 user: dgp tags: novem
16:19
3587651 Fix [info functions] and Tcl_ListMathFuncs(). check-in: 182c1d99c3 user: dgp tags: trunk
16:11
3587651 Fix Tcl_ListMathFuncs() by turning it into a call to [info functions] check-in: 970cfc1041 user: dgp tags: core-8-5-branch
11:41
A few unneeded internal CONST/CONST86's check-in: b86be72558 user: jan.nijtmans tags: trunk

Changes to generic/tclStubLib.c.
27
28
29
30
31
32
33



34
35
36
37
38
39
40
41

42
43








44





45

46
47
48


49
50
51
52
53
54
55
MODULE_SCOPE const TclIntStubs *tclIntStubsPtr;
MODULE_SCOPE const TclIntPlatStubs *tclIntPlatStubsPtr;

const TclStubs *tclStubsPtr = NULL;
const TclPlatStubs *tclPlatStubsPtr = NULL;
const TclIntStubs *tclIntStubsPtr = NULL;
const TclIntPlatStubs *tclIntPlatStubsPtr = NULL;




static const TclStubs *
HasStubSupport(
    Tcl_Interp *interp)
{
    Interp *iPtr = (Interp *) interp;

    if (iPtr->stubTable && (iPtr->stubTable->magic == TCL_STUB_MAGIC)) {

	return iPtr->stubTable;
    }














    iPtr->result =

	    (char *)"This interpreter does not support stubs-enabled extensions.";
    iPtr->freeProc = TCL_STATIC;
    return NULL;


}

/*
 * Use our own isdigit to avoid linking to libc on windows
 */

static int isDigit(const int c)







>
>
>







|
>
|

>
>
>
>
>
>
>
>
|
>
>
>
>
>
|
>
|
<
|
>
>







27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64

65
66
67
68
69
70
71
72
73
74
MODULE_SCOPE const TclIntStubs *tclIntStubsPtr;
MODULE_SCOPE const TclIntPlatStubs *tclIntPlatStubsPtr;

const TclStubs *tclStubsPtr = NULL;
const TclPlatStubs *tclPlatStubsPtr = NULL;
const TclIntStubs *tclIntStubsPtr = NULL;
const TclIntPlatStubs *tclIntPlatStubsPtr = NULL;

typedef Tcl_Obj *(NewStringObjProc) (const char *bytes, size_t length);


static const TclStubs *
HasStubSupport(
    Tcl_Interp *interp)
{
    Interp *iPtr = (Interp *) interp;

    if (!iPtr->stubTable) {
	/* No stub table at all? Nothing we can do. */
	return NULL;
    }
    if (iPtr->stubTable->magic != TCL_STUB_MAGIC) {
	/*
	 * We cannot acces interp->result and interp->freeProc
	 * any more: They will be gone in Tcl 9. In stead,
	 * assume that the iPtr->stubTable entry from Tcl_Interp
	 * and the Tcl_NewStringObj() and Tcl_SetObjResult() entries
	 * in the stub table don't change in Tcl 9. Need to add
	 * a test-case in Tcl 9 to assure that.
	 * 
	 * The signature of Tcl_NewStringObj will change: the length
	 * parameter will be of type size_t. But passing the value
	 * (size_t)-1 will work, whatever the signature will be.
	 */
	NewStringObjProc *newStringObj = (NewStringObjProc *)
		iPtr->stubTable->tcl_NewStringObj;
	iPtr->stubTable->tcl_SetObjResult(interp, newStringObj(
		"This extension is compiled for Tcl 8.x", (size_t)-1));

	return NULL;
    }
    return iPtr->stubTable;
}

/*
 * Use our own isdigit to avoid linking to libc on windows
 */

static int isDigit(const int c)