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
- assignee changed to: "nobody"
- closer changed to: "nobody"
- cmimetype changed to: "text/x-fossil-wiki"
- 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>
- foundin changed to: "core-8-branch"
- is_private changed to: "0"
- login: "chrstphrchvz"
- priority changed to: "5 Medium"
- private_contact changed to: "6133eb3026f9b10aa9b7b48da92ae2834fc225b0"
- resolution changed to: "None"
- severity changed to: "Minor"
- status changed to: "Open"
- submitter changed to: "chrstphrchvz"
- subsystem changed to: "56. LibTomMath"
- title changed to:
Make TCL_NO_TOMMATH_H sufficient for tclTomMathDecls.h
- type changed to: "Patch"