Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: c81a290178447e5739231b575940e3f8dacfa8bf
Ticket: 3034251fffffffffffffffffffffffffffffffff
backport ttkGenStubs.tcl features to genStubs.tcl
User & Date: nijtmans on 2010-07-25 11:06:21
Changes

  1. assignee changed to: "nijtmans"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    A few changes in ttkGenStubs.tcl are valid for Tcl as well.
    
    # CHANGES: 
    #+ Remove xxx_TCL_DECLARED #ifdeffery
    #+ Remove dead code related to USE_*_STUB_PROCS (emitStubs, makeStub)
    #+ Use void (*reserved$i)(void) = 0 instead of void *reserved$i = NULL
    #  for unused stub entries, in case pointer-to-function and 
    #  pointer-to-object are different sizes.
    
    Since the firx for [Bug #803489], The mentioned #ifdeffery does not
    serve any purpose in Tcl any more. It has brought more problems
    than benefit, so ttkGenStubs.tcl is right in removing it altogether.
    
    In addition, there are two more improvments:
    - In stead of the ifdefferey, put an #ifdef __cplusplus guard, aground the
      definition of the stub pointer, so it can be used in C++ files as well.
    - Make the "generic" argument in de *.decl files optional
    
    Here is the patch. Of course, all *Decls.h and *InitStubs.c files need
    to be re-generated.
    
  4. foundin changed to: "None"
  5. is_private changed to: "0"
  6. priority changed to: "5 Medium"
  7. resolution changed to: "None"
  8. status changed to: "Open"
  9. submitter changed to: "nijtmans"
  10. subsystem changed to: "53. Configure and Build Tools"
  11. title changed to: "backport ttkGenStubs.tcl features to genStubs.tcl"
  12. type changed to: "Patch"