Index: generic/nsfCompile.c =================================================================== diff -u -r43278a84ddd38cd3def1421b2fe1d688b2f0668a -r8e0b30355e24d03a7baba8b701cbab2aa7694157 --- generic/nsfCompile.c (.../nsfCompile.c) (revision 43278a84ddd38cd3def1421b2fe1d688b2f0668a) +++ generic/nsfCompile.c (.../nsfCompile.c) (revision 8e0b30355e24d03a7baba8b701cbab2aa7694157) @@ -33,8 +33,8 @@ #ifdef NSF_BYTECODE #include -static CompileProc - initProcNsCompile, nextCompile, +static CompileProc + initProcNsCompile, nextCompile, selfCompile, selfDispatchCompile; static InstructionDesc instructionTable[] = { @@ -79,7 +79,7 @@ TclEmitOpcode(instructions[INST_INITPROC].bytecode, envPtr); envPtr->maxStackDepth = 0; - + return TCL_OK; } @@ -94,12 +94,12 @@ assert(parsePtr); assert(envPtr); - if (parsePtr->numWords != 1) + if (parsePtr->numWords != 1) return TCL_OUT_LINE_COMPILE; - + TclEmitOpcode(instructions[INST_NEXT].bytecode, envPtr); envPtr->maxStackDepth = 0; - + return TCL_OK; } @@ -114,12 +114,12 @@ assert(parsePtr); assert(envPtr); - if (parsePtr->numWords != 1) + if (parsePtr->numWords != 1) return TCL_OUT_LINE_COMPILE; - + TclEmitOpcode(instructions[INST_SELF].bytecode, envPtr); envPtr->maxStackDepth = 0; - + return TCL_OK; } @@ -142,13 +142,13 @@ parsePtr->numWords, parsePtr->numTokens, parsePtr->tokensAvailable); */ - if (parsePtr->numWords > 255) + if (parsePtr->numWords > 255) return TCL_OUT_LINE_COMPILE; /*TclEmitOpcode(instructions[INST_SELF].bytecode, envPtr);*/ - for (wordIdx=0, tokenPtr = parsePtr->tokenPtr + 0; - wordIdx < parsePtr->numWords; + for (wordIdx=0, tokenPtr = parsePtr->tokenPtr + 0; + wordIdx < parsePtr->numWords; wordIdx++, tokenPtr += (tokenPtr->numComponents + 1)) { /* @@ -180,7 +180,7 @@ */ TclEmitInstInt1(instructions[INST_SELF_DISPATCH].bytecode, wordIdx, envPtr); envPtr->maxStackDepth = 0; - + return TCL_OK; } @@ -191,13 +191,13 @@ int i; for(i=0; iobjClientData))) { instructions[i].cmdPtr->compileProc = instructions[i].compileProc; } - + } /*tclTraceCompile = 2;*/ @@ -210,5 +210,6 @@ * mode: c * c-basic-offset: 2 * fill-column: 78 + * indent-tabs-mode: nil * End: */