diff options
author | Kevin B Kenny <kennykb@acm.org> | 2010-09-21 19:32:26 (GMT) |
---|---|---|
committer | Kevin B Kenny <kennykb@acm.org> | 2010-09-21 19:32:26 (GMT) |
commit | 53ebe37f0445f1a132bd20729d41894c6470622a (patch) | |
tree | 8432e95e8f3951b0e719713a4234c3ec27728bfb /generic/tclBasic.c | |
parent | d24e3a2febe9142596afe7c394f7bbc27b193eb6 (diff) | |
download | tcl-53ebe37f0445f1a132bd20729d41894c6470622a.zip tcl-53ebe37f0445f1a132bd20729d41894c6470622a.tar.gz tcl-53ebe37f0445f1a132bd20729d41894c6470622a.tar.bz2 |
initial commit of Ozgur Dogan Ugurlu's (SF user:dogeen) assembler for the Tcl bytecode language
Diffstat (limited to 'generic/tclBasic.c')
-rw-r--r-- | generic/tclBasic.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/generic/tclBasic.c b/generic/tclBasic.c index 211771a..1413f66 100644 --- a/generic/tclBasic.c +++ b/generic/tclBasic.c @@ -16,7 +16,7 @@ * See the file "license.terms" for information on usage and redistribution of * this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tclBasic.c,v 1.465 2010/08/31 20:48:17 nijtmans Exp $ + * RCS: @(#) $Id: tclBasic.c,v 1.465.2.1 2010/09/21 19:32:26 kennykb Exp $ */ #include "tclInt.h" @@ -806,6 +806,13 @@ Tcl_CreateInterp(void) Tcl_DisassembleObjCmd, NULL, NULL); Tcl_CreateObjCommand(interp, "::tcl::unsupported::representation", Tcl_RepresentationCmd, NULL, NULL); + + /* Adding the bytecode assembler command */ + cmdPtr = (Command*) + Tcl_NRCreateCommand(interp, "::tcl::unsupported::assemble", + Tcl_AssembleObjCmd, TclNRAssembleObjCmd, + NULL, NULL); + cmdPtr->compileProc = &TclCompileAssembleCmd; Tcl_NRCreateCommand(interp, "::tcl::unsupported::yieldTo", NULL, TclNRYieldToObjCmd, NULL, NULL); |