summaryrefslogtreecommitdiffstats
path: root/win
diff options
context:
space:
mode:
authorescoffon <escoffon>1998-10-05 22:32:09 (GMT)
committerescoffon <escoffon>1998-10-05 22:32:09 (GMT)
commit7a0266fc2a385695a20d43579b3c6951495a3b21 (patch)
treef25db388c40788f11cbe13b90d87726976d7607e /win
parent96be4fa0ab6cb9a0ef8b91883cb51e120e857cde (diff)
downloadtcl-7a0266fc2a385695a20d43579b3c6951495a3b21.zip
tcl-7a0266fc2a385695a20d43579b3c6951495a3b21.tar.gz
tcl-7a0266fc2a385695a20d43579b3c6951495a3b21.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.
Diffstat (limited to 'win')
-rw-r--r--win/makefile.vc3
-rw-r--r--win/tclAppInit.c9
2 files changed, 10 insertions, 2 deletions
diff --git a/win/makefile.vc b/win/makefile.vc
index 6fdb1f4..8039860 100644
--- a/win/makefile.vc
+++ b/win/makefile.vc
@@ -4,7 +4,7 @@
# of this file, and for a DISCLAIMER OF ALL WARRANTIES.
#
# Copyright (c) 1995-1996 Sun Microsystems, Inc.
-# RCS: @(#) $Id: makefile.vc,v 1.16 1998/09/14 18:40:19 stanton Exp $
+# RCS: @(#) $Id: makefile.vc,v 1.17 1998/10/05 22:32:12 escoffon Exp $
# Does not depend on the presence of any environment variables in
# order to compile tcl; all needed information is derived from
@@ -103,6 +103,7 @@ TCLSHOBJS = \
TCLTESTOBJS = \
$(TMPDIR)\tclTest.obj \
$(TMPDIR)\tclTestObj.obj \
+ $(TMPDIR)\tclTestProcBodyObj.obj \
$(TMPDIR)\tclWinTest.obj \
$(TMPDIR)\testMain.obj
diff --git a/win/tclAppInit.c b/win/tclAppInit.c
index c679039..3c31bb2 100644
--- a/win/tclAppInit.c
+++ b/win/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:19 stanton Exp $
+ * RCS: @(#) $Id: tclAppInit.c,v 1.3 1998/10/05 22:32:12 escoffon Exp $
*/
#include "tcl.h"
@@ -18,6 +18,8 @@
#include <locale.h>
#ifdef TCL_TEST
+EXTERN int Procbodytest_Init _ANSI_ARGS_((Tcl_Interp *interp));
+EXTERN int Procbodytest_SafeInit _ANSI_ARGS_((Tcl_Interp *interp));
EXTERN int Tcltest_Init _ANSI_ARGS_((Tcl_Interp *interp));
EXTERN int TclObjTest_Init _ANSI_ARGS_((Tcl_Interp *interp));
#endif /* TCL_TEST */
@@ -113,6 +115,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 */
/*