Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 74c51fa526167fd1c14771cc6e332cbab83a41ad
Ticket: 585105ffffffffffffffffffffffffffffffffff
CONST-ified parser
User & Date: jenglish on 2002-07-25 04:19:44
Changes

  1. assignee changed to: "dgp"
  2. icomment:
    Logged In: YES 
    user_id=68433
    
    Reviewed 'complete.patch': this looks very good.
    
    The parser changes should definitely be committed;
    Tcl_Eval() and friends finally have the right signature, the
    patch fixes at least one known bug and probably several
    as-yet-undiscovered ones, and the code is now simpler and
    better-factored.
    
    With the patch, I was finally able to fully-CONSTify an
    extension that used to require -DUSE_NON_CONST.
    
    Just a few minor notes:
    In generic/tclInt.h, TclCmdProcType should be changed to
    match Tcl_CmdProc:
    
    typedef Tcl_CmdProc *TclCmdProcType;
    
    With the current definition (int (*TclCmdProcType)(...CONST
    char **argv)), there may be a type mismatch in extensions
    that #include tclInt.h with -DUSE_NON_CONST .
    
    Also, there's some stray debugging code (commented-out
    fprintfs) that made its way into the patch, and a comment in
    tclParseExpr.c/ParsePrimaryExpr() (~line 1390) that is no
    longer accurate.  Other than that, I didn't see any
    problems.
    
    
  3. login: "jenglish"
  4. mimetype: "text/plain"
  5. username: "jenglish"