Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 447df3bb1807fcda87d447b16550a187462f18a0
Ticket: 1412695fffffffffffffffffffffffffffffffff
VAR_IS_ARGS not set in precompiled case
User & Date: traum on 2006-01-23 10:40:55
Changes

  1. assignee changed to: "msofer"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    I had errors (wrong # of args) while using compiled
    code (tclcompiler -> tbcload) which uses procs with
    "args" argument.
    
    In generic/tclProc.c line 460 VAR_IS_ARGS is set for
    precompiled code but inside the if-statement for the
    default-value. I moved this code outside and my
    problems went away.
    
    
    --- tclProc.c   2006-01-23 08:42:05.000000000 +0100
    +++ tclProc.c.orig      2006-01-23 08:41:18.000000000 +0100
    @@ -457,12 +457,12 @@
                        ckfree((char *) fieldValues);
                        goto procError;
                    }
    -           }
    -           if ((i == numArgs - 1)
    -               && (localPtr->nameLength == 4)
    -               && (localPtr->name[0] == 'a')
    -               && (strcmp(localPtr->name, "args") == 0)) {
    -               localPtr->flags |= VAR_IS_ARGS;
    +               if ((i == numArgs - 1)
    +                       && (localPtr->nameLength == 4)
    +                       && (localPtr->name[0] == 'a')
    +                       && (strcmp(localPtr->name,
    "args") == 0)) {
    +                   localPtr->flags |= VAR_IS_ARGS;
    +               }
                }
    
                localPtr = localPtr->nextPtr;
    
    
  4. foundin changed to: "obsolete: 8.5a4"
  5. priority changed to: "5 Medium"
  6. resolution changed to: "None"
  7. status changed to: "Open"
  8. submitter changed to: "traum"
  9. subsystem changed to: "47. Bytecode Compiler"
  10. title changed to: "VAR_IS_ARGS not set in precompiled case"
  11. type changed to: "Bug"