diff options
author | escoffon <escoffon@noemail.net> | 1998-10-05 22:32:08 (GMT) |
---|---|---|
committer | escoffon <escoffon@noemail.net> | 1998-10-05 22:32:08 (GMT) |
commit | 2ec568e23683696f49e347b009e2775b29953741 (patch) | |
tree | f25db388c40788f11cbe13b90d87726976d7607e /unix/tclAppInit.c | |
parent | 045ea74e148a346e618268b574f25906d18042d3 (diff) | |
download | tcl-2ec568e23683696f49e347b009e2775b29953741.zip tcl-2ec568e23683696f49e347b009e2775b29953741.tar.gz tcl-2ec568e23683696f49e347b009e2775b29953741.tar.bz2 |
Added a new Tcl object called "procbody"; this object's internal
representation contains both a Proc struct and its associated ByteCode.
Updated tclProc.c::TclCreateProc to take procbody instances as the body
argument, for future support of compiler extensions.
Added the "procbodytest" package for testing all this stuff.
FossilOrigin-Name: 0aa459d72f6b4b36bc6ce6cbf2e6caa923b60acd
Diffstat (limited to 'unix/tclAppInit.c')
-rw-r--r-- | unix/tclAppInit.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/unix/tclAppInit.c b/unix/tclAppInit.c index e8b2c13..4427f47 100644 --- a/unix/tclAppInit.c +++ b/unix/tclAppInit.c @@ -10,7 +10,7 @@ * See the file "license.terms" for information on usage and redistribution * of this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tclAppInit.c,v 1.2 1998/09/14 18:40:16 stanton Exp $ + * RCS: @(#) $Id: tclAppInit.c,v 1.3 1998/10/05 22:32:12 escoffon Exp $ */ #ifdef TCL_XT_TEST @@ -29,6 +29,8 @@ int *tclDummyMathPtr = (int *) matherr; #ifdef TCL_TEST +EXTERN int Procbodytest_Init _ANSI_ARGS_((Tcl_Interp *interp)); +EXTERN int Procbodytest_SafeInit _ANSI_ARGS_((Tcl_Interp *interp)); EXTERN int TclObjTest_Init _ANSI_ARGS_((Tcl_Interp *interp)); EXTERN int Tcltest_Init _ANSI_ARGS_((Tcl_Interp *interp)); #endif /* TCL_TEST */ @@ -106,6 +108,11 @@ Tcl_AppInit(interp) if (TclObjTest_Init(interp) == TCL_ERROR) { return TCL_ERROR; } + if (Procbodytest_Init(interp) == TCL_ERROR) { + return TCL_ERROR; + } + Tcl_StaticPackage(interp, "procbodytest", Procbodytest_Init, + Procbodytest_SafeInit); #endif /* TCL_TEST */ /* |