diff options
author | dgp <dgp@users.sourceforge.net> | 2016-04-29 19:29:14 (GMT) |
---|---|---|
committer | dgp <dgp@users.sourceforge.net> | 2016-04-29 19:29:14 (GMT) |
commit | d41d08e1111a2353e98c6814043b6441e6e71b64 (patch) | |
tree | afd15372be814df73b18bb4c139fee4cc1de2be2 /generic/tclAssembly.c | |
parent | 100542f06740e0120d51ef844f61d47b10ce39ef (diff) | |
download | tcl-d41d08e1111a2353e98c6814043b6441e6e71b64.zip tcl-d41d08e1111a2353e98c6814043b6441e6e71b64.tar.gz tcl-d41d08e1111a2353e98c6814043b6441e6e71b64.tar.bz2 |
Parameterize TclInitByteCodeObj to callers sense of typePtr.dgp_init_bytecode
Diffstat (limited to 'generic/tclAssembly.c')
-rw-r--r-- | generic/tclAssembly.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/generic/tclAssembly.c b/generic/tclAssembly.c index 7db5d69..4ad31d2 100644 --- a/generic/tclAssembly.c +++ b/generic/tclAssembly.c @@ -891,15 +891,13 @@ CompileAssembleObj( */ TclEmitOpcode(INST_DONE, &compEnv); - TclInitByteCodeObj(objPtr, &compEnv); - objPtr->typePtr = &assembleCodeType; + codePtr = TclInitByteCodeObj(objPtr, &assembleCodeType, &compEnv); TclFreeCompileEnv(&compEnv); /* * Record the local variable context to which the bytecode pertains */ - codePtr = objPtr->internalRep.twoPtrValue.ptr1; if (iPtr->varFramePtr->localCachePtr) { codePtr->localCachePtr = iPtr->varFramePtr->localCachePtr; codePtr->localCachePtr->refCount++; |