diff options
| author | dkf <donal.k.fellows@manchester.ac.uk> | 2024-03-19 17:09:30 (GMT) |
|---|---|---|
| committer | dkf <donal.k.fellows@manchester.ac.uk> | 2024-03-19 17:09:30 (GMT) |
| commit | 3ba2524ad4dcbada77fd5079cb69007cdea2a5e9 (patch) | |
| tree | e6fdb6985952e104004323a8b1172733b8f33abf /generic/tclOptimize.c | |
| parent | d93e68c4e796434fb11ea9c067c73dbb483fd6dd (diff) | |
| download | tcl-3ba2524ad4dcbada77fd5079cb69007cdea2a5e9.zip tcl-3ba2524ad4dcbada77fd5079cb69007cdea2a5e9.tar.gz tcl-3ba2524ad4dcbada77fd5079cb69007cdea2a5e9.tar.bz2 | |
more spacing/formatting tweaks
Diffstat (limited to 'generic/tclOptimize.c')
| -rw-r--r-- | generic/tclOptimize.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/generic/tclOptimize.c b/generic/tclOptimize.c index 7a4a962..247c326 100644 --- a/generic/tclOptimize.c +++ b/generic/tclOptimize.c @@ -214,7 +214,7 @@ ConvertZeroEffectToNOP( size = AddrLength(currentInstPtr); while ((currentInstPtr + size < envPtr->codeNext) - && *(currentInstPtr+size) == INST_NOP) { + && currentInstPtr[size] == INST_NOP) { if (IsTargetAddress(&targets, currentInstPtr + size)) { break; } @@ -223,7 +223,7 @@ ConvertZeroEffectToNOP( if (IsTargetAddress(&targets, currentInstPtr + size)) { continue; } - nextInst = *(currentInstPtr + size); + nextInst = currentInstPtr[size]; switch (*currentInstPtr) { case INST_PUSH1: if (nextInst == INST_POP) { @@ -260,19 +260,19 @@ ConvertZeroEffectToNOP( switch (nextInst) { case INST_JUMP_TRUE1: blank = size; - *(currentInstPtr + size) = INST_JUMP_FALSE1; + currentInstPtr[size] = INST_JUMP_FALSE1; break; case INST_JUMP_FALSE1: blank = size; - *(currentInstPtr + size) = INST_JUMP_TRUE1; + currentInstPtr[size] = INST_JUMP_TRUE1; break; case INST_JUMP_TRUE4: blank = size; - *(currentInstPtr + size) = INST_JUMP_FALSE4; + currentInstPtr[size] = INST_JUMP_FALSE4; break; case INST_JUMP_FALSE4: blank = size; - *(currentInstPtr + size) = INST_JUMP_TRUE4; + currentInstPtr[size] = INST_JUMP_TRUE4; break; } break; @@ -318,7 +318,7 @@ ConvertZeroEffectToNOP( if (blank > 0) { for (i=0 ; i<blank ; i++) { - *(currentInstPtr + i) = INST_NOP; + currentInstPtr[i] = INST_NOP; } size = blank; } @@ -366,7 +366,7 @@ AdvanceJumps( break; } offset += delta; - switch (*(currentInstPtr + offset)) { + switch (currentInstPtr[offset]) { case INST_NOP: delta = InstLength(INST_NOP); continue; @@ -394,7 +394,7 @@ AdvanceJumps( offset = TclGetInt4AtPtr(currentInstPtr + 1); break; } - switch (*(currentInstPtr + offset)) { + switch (currentInstPtr[offset]) { case INST_NOP: offset += InstLength(INST_NOP); continue; |
