Changes On Branch on-hold-85
Not logged in

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

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

This is equivalent to a diff from 970cfc1041 to 9c960be0cb

2012-11-22
08:47
Fix bug reported by Brian Griffin: <p>[http://code.activestate.com/lists/tcl-core/12524/] check-in: 6509c9b571 user: jan.nijtmans tags: core-8-5-branch
2012-11-20
11:26
Change Tcl_VarTraceInfo into a macro, just as Tcl_EvalObj/Tcl_GlobalEvalObj check-in: 7e3503676e user: jan.nijtmans tags: better-deprecation-85
2012-11-18
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
16:54
<i>On-hold at Don Porter's request.</i> change stub library to detect - and generate a nice error-m... Closed-Leaf check-in: 062ca741cb user: jan.nijtmans tags: on-hold-84
2012-11-16
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
15:35
3587651 fix [info functions] (Re-implementation in Tcl) check-in: ea330a961c user: dgp tags: core-8-5-branch

Changes to generic/tclStubLib.c.
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
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
75
76
77







+
+
+







-
-
+
+
+

+
+
+
+
+
+
+
+
-
-
-
+
+
+
+
+
+
+
+
+
-
-
+
+
+







 */

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

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


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

    if (iPtr->stubTable && (iPtr->stubTable->magic == TCL_STUB_MAGIC)) {
	return iPtr->stubTable;
    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.

    interp->result =
	    "This interpreter does not support stubs-enabled extensions.";
	 * 
	 * 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));
    interp->freeProc = TCL_STATIC;
    return NULL;
	return NULL;
    }
    return iPtr->stubTable;
}

/*
 * Use our own isdigit to avoid linking to libc on windows
 */

static int isDigit(const int c)