luametatex.dif
OBS-URL: https://build.opensuse.org/package/show/Publishing:TeXLive/texlive?expand=0&rev=431
This commit is contained in:
parent
9f50d679fd
commit
e236cc18fe
17
luametatex.dif
Normal file
17
luametatex.dif
Normal file
@ -0,0 +1,17 @@
|
||||
---
|
||||
source/libraries/decnumber/decNumber.h | 2 ++
|
||||
1 file changed, 2 insertions(+)
|
||||
|
||||
--- source/libraries/decnumber/decNumber.h
|
||||
+++ source/libraries/decnumber/decNumber.h 2023-03-28 09:48:50.820268040 +0000
|
||||
@@ -40,8 +40,10 @@
|
||||
/* constant. This must not be changed without recompiling the */
|
||||
/* decNumber library modules. */
|
||||
|
||||
+ #ifndef DECDPUN
|
||||
#define DECDPUN 3 /* DECimal Digits Per UNit [must be >0 */
|
||||
/* and <10; 3 or powers of 2 are best]. */
|
||||
+ #endif
|
||||
|
||||
/* DECNUMDIGITS is the default number of digits that can be held in */
|
||||
/* the structure. If undefined, 1 is assumed and it is assumed */
|
@ -1,11 +1,11 @@
|
||||
---
|
||||
libs/icu/icu-src/source/i18n/decNumber.h | 20 +++++++++++++-------
|
||||
texk/web2c/mplibdir/decNumber.h | 20 +++++++++++++-------
|
||||
2 files changed, 26 insertions(+), 14 deletions(-)
|
||||
libs/icu/icu-src/source/i18n/decNumber.h | 2 ++
|
||||
texk/web2c/mplibdir/decNumber.h | 2 ++
|
||||
2 files changed, 4 insertions(+)
|
||||
|
||||
--- libs/icu/icu-src/source/i18n/decNumber.h
|
||||
+++ libs/icu/icu-src/source/i18n/decNumber.h 2023-03-28 07:17:36.817182422 +0000
|
||||
@@ -53,29 +53,35 @@
|
||||
+++ libs/icu/icu-src/source/i18n/decNumber.h 2023-03-28 09:46:06.783388026 +0000
|
||||
@@ -53,11 +53,13 @@
|
||||
/* constant. This must not be changed without recompiling the */
|
||||
/* decNumber library modules. */
|
||||
|
||||
@ -15,78 +15,20 @@
|
||||
*/
|
||||
#define DECDPUN 1 /* DECimal Digits Per UNit [must be >0 */
|
||||
/* and <10; 3 or powers of 2 are best]. */
|
||||
-
|
||||
- /* DECNUMDIGITS is the default number of digits that can be held in */
|
||||
- /* the structure. If undefined, 1 is assumed and it is assumed */
|
||||
- /* that the structure will be immediately followed by extra space, */
|
||||
- /* as required. DECNUMDIGITS is always >0. */
|
||||
- #if !defined(DECNUMDIGITS)
|
||||
- #define DECNUMDIGITS 1
|
||||
#endif
|
||||
|
||||
/* The size (integer data type) of each unit is determined by the */
|
||||
/* number of digits it will hold. */
|
||||
#if DECDPUN<=2
|
||||
#define decNumberUnit uint8_t
|
||||
+ #define DECNUMDIGITS 3
|
||||
#elif DECDPUN<=4
|
||||
#define decNumberUnit uint16_t
|
||||
+ #define DECNUMDIGITS 2
|
||||
#else
|
||||
#define decNumberUnit uint32_t
|
||||
+ #define DECNUMDIGITS 1
|
||||
#endif
|
||||
+
|
||||
+ /* DECNUMDIGITS is the default number of digits that can be held in */
|
||||
+ /* the structure. If undefined, 1 is assumed and it is assumed */
|
||||
+ /* that the structure will be immediately followed by extra space, */
|
||||
+ /* as required. DECNUMDIGITS is always >0. */
|
||||
+ #if !defined(DECNUMDIGITS)
|
||||
+ #define DECNUMDIGITS 1
|
||||
+ #endif
|
||||
+
|
||||
/* The number of units needed is ceil(DECNUMDIGITS/DECDPUN) */
|
||||
#define DECNUMUNITS ((DECNUMDIGITS+DECDPUN-1)/DECDPUN)
|
||||
|
||||
/* DECNUMDIGITS is the default number of digits that can be held in */
|
||||
/* the structure. If undefined, 1 is assumed and it is assumed */
|
||||
--- texk/web2c/mplibdir/decNumber.h
|
||||
+++ texk/web2c/mplibdir/decNumber.h 2023-03-28 07:19:36.706899490 +0000
|
||||
@@ -40,26 +40,32 @@
|
||||
+++ texk/web2c/mplibdir/decNumber.h 2023-03-28 09:46:33.962871087 +0000
|
||||
@@ -40,8 +40,10 @@
|
||||
/* constant. This must not be changed without recompiling the */
|
||||
/* decNumber library modules. */
|
||||
|
||||
+ #ifndef DECDPUN
|
||||
#define DECDPUN 3 /* DECimal Digits Per UNit [must be >0 */
|
||||
/* and <10; 3 or powers of 2 are best]. */
|
||||
-
|
||||
- /* DECNUMDIGITS is the default number of digits that can be held in */
|
||||
- /* the structure. If undefined, 1 is assumed and it is assumed */
|
||||
- /* that the structure will be immediately followed by extra space, */
|
||||
- /* as required. DECNUMDIGITS is always >0. */
|
||||
- #if !defined(DECNUMDIGITS)
|
||||
- #define DECNUMDIGITS 1
|
||||
#endif
|
||||
|
||||
/* The size (integer data type) of each unit is determined by the */
|
||||
/* number of digits it will hold. */
|
||||
#if DECDPUN<=2
|
||||
#define decNumberUnit uint8_t
|
||||
+ #define DECNUMDIGITS 3
|
||||
#elif DECDPUN<=4
|
||||
#define decNumberUnit uint16_t
|
||||
+ #define DECNUMDIGITS 2
|
||||
#else
|
||||
#define decNumberUnit uint32_t
|
||||
+ #define DECNUMDIGITS 1
|
||||
#endif
|
||||
+
|
||||
+ /* DECNUMDIGITS is the default number of digits that can be held in */
|
||||
+ /* the structure. If undefined, 1 is assumed and it is assumed */
|
||||
+ /* that the structure will be immediately followed by extra space, */
|
||||
+ /* as required. DECNUMDIGITS is always >0. */
|
||||
+ #if !defined(DECNUMDIGITS)
|
||||
+ #define DECNUMDIGITS 1
|
||||
+ #endif
|
||||
+
|
||||
/* The number of units needed is ceil(DECNUMDIGITS/DECDPUN) */
|
||||
#define DECNUMUNITS ((DECNUMDIGITS+DECDPUN-1)/DECDPUN)
|
||||
|
||||
/* DECNUMDIGITS is the default number of digits that can be held in */
|
||||
/* the structure. If undefined, 1 is assumed and it is assumed */
|
||||
|
@ -7,6 +7,8 @@ Tue Mar 28 08:54:27 UTC 2023 - Dr. Werner Fink <werner@suse.de>
|
||||
- Add patch source-decNumber.dif
|
||||
* make libmp and libcu using the same decNumber scheme to
|
||||
get e.g. bibtex8 working on all architectures
|
||||
- Add patch luametatex.dif
|
||||
* Also use the same decNumber scheme here
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Mar 20 08:38:07 UTC 2023 - Dr. Werner Fink <werner@suse.de>
|
||||
|
Loading…
Reference in New Issue
Block a user