Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: d6e9e696457a4756f414acb75988844d6d6acd4b98eafe1f329547d95c71af06
Ticket: eeddb0693a950be980a66de3811630a00c7bab54
TIP #491 implementation has odd #ifdef usage
User & Date: dkf on 2018-05-20 14:57:52
Changes

  1. assignee changed to: "nobody"
  2. closer changed to: "nobody"
  3. cmimetype changed to: "text/html"
  4. comment changed to:
    Given that all our source code will pass this stanza early in tcl.h:
    <pre>
    #ifndef TCL_THREADS
    #   define TCL_THREADS 1
    #endif
    </pre>
    Why do we then write this in so many places?
    <pre>
    #if !defined(TCL_THREADS) || TCL_THREADS
    </pre>
    Surely (given that we know TCL_THREADS is defined, and it is assumed to be numeric), it'd be enough to do this:
    <pre>
    #if TCL_THREADS
    </pre>
    That'd make the code more readable if nothing else.
    
  5. is_private changed to: "0"
  6. login: "dkf"
  7. priority changed to: "5 Medium"
  8. resolution changed to: "None"
  9. severity changed to: "Cosmetic"
  10. status changed to: "Open"
  11. submitter changed to: "dkf"
  12. subsystem changed to: "49. Threading"
  13. title changed to: "TIP #491 implementation has odd #ifdef usage"
  14. type changed to: "Bug"