Diff
Not logged in

Differences From Artifact [78498953bc]:

To Artifact [17beaa9155]:


466
467
468
469
470
471
472
473


474
475


476

477
478
479
480
481
482
483
    /*
     * Test for whether the initialization failed. If so, transfer the error
     * from the target interpreter to the originating one.
     */

    if (code != TCL_OK) {
	Interp *iPtr = (Interp *) target;
	if (iPtr->result != NULL && iPtr->result[0] != '\0') {


	    /* We have an Tcl 8.x extension with incompatible stub table. */
	    Tcl_Obj *obj = Tcl_NewStringObj(iPtr->result, -1);


	    Tcl_SetObjResult(target, obj);

	}
	Tcl_TransferResult(target, code, interp);
	goto done;
    }

    /*
     * Record the fact that the package has been loaded in the target







|
>
>
|
<
>
>
|
>







466
467
468
469
470
471
472
473
474
475
476

477
478
479
480
481
482
483
484
485
486
487
    /*
     * Test for whether the initialization failed. If so, transfer the error
     * from the target interpreter to the originating one.
     */

    if (code != TCL_OK) {
	Interp *iPtr = (Interp *) target;
	if (iPtr->legacyResult != NULL) {
	    /*
	     * A call to Tcl_InitStubs() determined the caller extension and
	     * this interp are incompatible in their stubs mechanisms, and

	     * recorded the error in the oldest legacy place we have to do so.
	     */
	    Tcl_SetObjResult(target, Tcl_NewStringObj(iPtr->legacyResult, -1));
	    iPtr->legacyResult = NULL;
	}
	Tcl_TransferResult(target, code, interp);
	goto done;
    }

    /*
     * Record the fact that the package has been loaded in the target