Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: fbec7a1e1d773b6355d02923b02c2e5a27ba82d56e8ae408197287c6ea513282
Ticket: 2a5cb49733ffc8314a841c88c7e84040c29651f1
Make TCL_NO_TOMMATH_H sufficient for tclTomMathDecls.h
User & Date: chrstphrchvz on 2023-04-22 12:41:50
Changes

  1. assignee changed to: "nobody"
  2. closer changed to: "nobody"
  3. cmimetype changed to: "text/x-fossil-wiki"
  4. comment changed to:
    As an alternative solution for [ff255adc4cb5], I tried defining <tt>TCL_NO_TOMMATH_H</tt> (from [1baf516ed4f1]), but tclTomMathDecls.h still needs <tt>mp_order</tt>, <tt>mp_endian</tt>, and <tt>MP_DEPRECATED_PRAGMA()</tt>. Copying over those (along with a few related definitions) is enough:
    
    <blockquote><pre>
    --- generic/tclTomMath.h.orig
    +++ generic/tclTomMath.h
    @@ -24,6 +24,14 @@
     #   define MP_VAL        -3  /* invalid input */
     #   define MP_ITER       -4  /* maximum iterations reached */
     #   define MP_BUF        -5  /* buffer overflow, supplied buffer too small */
    <span style="color:green">+    typedef int mp_order;
    +#   define MP_LSB_FIRST -1
    +#   define MP_MSB_FIRST  1
    +    typedef int mp_endian;
    +#   define MP_LITTLE_ENDIAN  -1
    +#   define MP_NATIVE_ENDIAN  0
    +#   define MP_BIG_ENDIAN     1
    +#   define MP_DEPRECATED_PRAGMA(s) /* nothing */</span>
     #   define MP_WUR            /* nothing */
     #   define mp_iszero(a) ((a)->used == 0)
     #   define mp_isneg(a)  ((a)->sign != 0)
    </pre></blockquote>
    
  5. foundin changed to: "core-8-branch"
  6. is_private changed to: "0"
  7. login: "chrstphrchvz"
  8. priority changed to: "5 Medium"
  9. private_contact changed to: "6133eb3026f9b10aa9b7b48da92ae2834fc225b0"
  10. resolution changed to: "None"
  11. severity changed to: "Minor"
  12. status changed to: "Open"
  13. submitter changed to: "chrstphrchvz"
  14. subsystem changed to: "56. LibTomMath"
  15. title changed to:
    Make TCL_NO_TOMMATH_H sufficient for tclTomMathDecls.h
    
  16. type changed to: "Patch"