Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: fdee532212d316a4cee84178650c3d66acbf509cfbfffa2e12ef1f928fdb028e
Ticket: 26870862f0e8884eaec02c5a3bbc4caf2431a310
Wrong sentinel in Tcl_SetErrorCode usage
User & Date: jan.nijtmans on 2023-10-19 18:19:28
Changes

  1. icomment:
    Addition: For C++-compilers, the problem is that some C++-compilers (e.g. clang-8.0.1) define "NULL" as identical to "0", which is allowed in C++-land. See: [https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95700]
    
    The only way which should work with all C++-compilers is using (void *)NULL.
    
    In C, this is no problem. We don't want to force extension-writers to do the same: Many extensions don't care about C++.
    
    C++-case handled [234ff497c44f843c|here]
    
    Still keeping open, it would be nice to have the compiler check for this by default.
    
  2. login: "jan.nijtmans"
  3. mimetype: "text/x-fossil-wiki"
  4. resolution changed to: "Fixed"
  5. severity changed to: "Severe"
  6. status changed to: "Pending"