summaryrefslogtreecommitdiffstats
path: root/generic/tclCompile.h
diff options
context:
space:
mode:
authorericm <ericm>2000-05-23 22:10:48 (GMT)
committerericm <ericm>2000-05-23 22:10:48 (GMT)
commitde3734d2d5031072fc62227f3958364b3479ab7b (patch)
treef33bb09809b6a1d88e4d4ac1ab8e54659e9a1a03 /generic/tclCompile.h
parent74b0da139ec49407e3c2bc15444e8b941e04e1fd (diff)
downloadtcl-de3734d2d5031072fc62227f3958364b3479ab7b.zip
tcl-de3734d2d5031072fc62227f3958364b3479ab7b.tar.gz
tcl-de3734d2d5031072fc62227f3958364b3479ab7b.tar.bz2
* generic/tclInt.h: Added function prototypes for
TclCompileStringCmd and TclCompileReturnCmd. * generic/tclCompile.h: Added definition of INST_STRLEN opcode and updated LAST_INST_OPCODE value. * generic/tclBasic.c: Added information about TclCompileStringCmd and TclCompileReturnCmd to BuiltInCmds table. * generic/tclExecute.c (TclExecuteByteCode): Added support for the INST_STRLEN opcode. * generic/tclCompCmds.c (TclCompileStringCmd): Basic implementation of byte-compiled [string] command. Not all subcommands are implemented; those that are not an out-line compiled. (TclCompileReturnCmd): Byte-compiled implementation of [return] command. Only "simple" returns are byte-compiled; in particular, if the -code, -errorinfo or -errorcode flags are used, the command is not byte-compiled.
Diffstat (limited to 'generic/tclCompile.h')
-rw-r--r--generic/tclCompile.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/generic/tclCompile.h b/generic/tclCompile.h
index aa72c93..a7efb6b 100644
--- a/generic/tclCompile.h
+++ b/generic/tclCompile.h
@@ -7,7 +7,7 @@
* See the file "license.terms" for information on usage and redistribution
* of this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tclCompile.h,v 1.12 2000/05/09 00:00:34 hobbs Exp $
+ * RCS: @(#) $Id: tclCompile.h,v 1.13 2000/05/23 22:10:51 ericm Exp $
*/
#ifndef _TCLCOMPILATION
@@ -497,9 +497,10 @@ typedef struct ByteCode {
/* Opcodes 73 to 74 */
#define INST_STREQ 73
#define INST_STRNEQ 74
+#define INST_STRLEN 75
/* The last opcode */
-#define LAST_INST_OPCODE 74
+#define LAST_INST_OPCODE 75
/*
* Table describing the Tcl bytecode instructions: their name (for