diff options
| author | Paul Eggert | 2011-05-05 22:55:01 -0700 |
|---|---|---|
| committer | Paul Eggert | 2011-05-05 22:55:01 -0700 |
| commit | 122b0c864338fa0c428b0ff2afbed2454dd2d1c7 (patch) | |
| tree | 38320a01750cc459910177fd1bc0e1a4bd5b3a9b | |
| parent | 4c4b566b11106e0dd4767340e6e7e0fc89cfd589 (diff) | |
| download | emacs-122b0c864338fa0c428b0ff2afbed2454dd2d1c7.tar.gz emacs-122b0c864338fa0c428b0ff2afbed2454dd2d1c7.zip | |
Temporarily disable wider-than-pointer EMACS_INT.
| -rw-r--r-- | nt/ChangeLog | 6 | ||||
| -rw-r--r-- | nt/config.nt | 8 | ||||
| -rw-r--r-- | src/ChangeLog | 2 | ||||
| -rw-r--r-- | src/lisp.h | 6 |
4 files changed, 19 insertions, 3 deletions
diff --git a/nt/ChangeLog b/nt/ChangeLog index f1f34bb88b5..83d13ce77c6 100644 --- a/nt/ChangeLog +++ b/nt/ChangeLog | |||
| @@ -1,6 +1,8 @@ | |||
| 1 | 2011-05-05 Paul Eggert <eggert@cs.ucla.edu> | 1 | 2011-05-06 Paul Eggert <eggert@cs.ucla.edu> |
| 2 | 2 | ||
| 3 | * config.nt: Configure 64-bit integers for older compilers. | 3 | * config.nt: Prepare to configure 64-bit integers for older compilers. |
| 4 | However, temporarily disable this change unless the temporary | ||
| 5 | symbol WIDE_EMACS_INT is defined. | ||
| 4 | (EMACS_INT, BITS_PER_EMACS_INT, pI): Define these if __int64 and | 6 | (EMACS_INT, BITS_PER_EMACS_INT, pI): Define these if __int64 and |
| 5 | "%I64d" work but long long and "%lld" do not. | 7 | "%I64d" work but long long and "%lld" do not. |
| 6 | 8 | ||
diff --git a/nt/config.nt b/nt/config.nt index b595e298996..55a8bccae19 100644 --- a/nt/config.nt +++ b/nt/config.nt | |||
| @@ -480,11 +480,19 @@ extern char *getenv (); | |||
| 480 | 480 | ||
| 481 | #elif _MSC_VER >= 1200 | 481 | #elif _MSC_VER >= 1200 |
| 482 | 482 | ||
| 483 | /* Temporarily disable wider-than-pointer integers until they're tested more. | ||
| 484 | Build with CFLAGS='-DWIDE_EMACS_INT' to try them out. */ | ||
| 485 | /* #undef WIDE_EMACS_INT */ | ||
| 486 | |||
| 487 | # ifdef WIDE_EMACS_INT | ||
| 488 | |||
| 483 | /* Use pre-C99-style 64-bit integers. */ | 489 | /* Use pre-C99-style 64-bit integers. */ |
| 484 | # define EMACS_INT __int64 | 490 | # define EMACS_INT __int64 |
| 485 | # define BITS_PER_EMACS_INT 64 | 491 | # define BITS_PER_EMACS_INT 64 |
| 486 | # define pI "I64" | 492 | # define pI "I64" |
| 487 | 493 | ||
| 494 | # endif | ||
| 495 | |||
| 488 | #endif | 496 | #endif |
| 489 | 497 | ||
| 490 | #ifndef POINTER_TYPE | 498 | #ifndef POINTER_TYPE |
diff --git a/src/ChangeLog b/src/ChangeLog index 755b02631f6..80baa5d131a 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -55,6 +55,8 @@ | |||
| 55 | (EMACS_INT, EMACS_UINT, BITS_PER_EMACS_INT, pI): Define to 64-bit | 55 | (EMACS_INT, EMACS_UINT, BITS_PER_EMACS_INT, pI): Define to 64-bit |
| 56 | on 32-bit hosts that have 64-bit int, so that they can access | 56 | on 32-bit hosts that have 64-bit int, so that they can access |
| 57 | large files. | 57 | large files. |
| 58 | However, temporarily disable this change unless the temporary | ||
| 59 | symbol WIDE_EMACS_INT is defined. | ||
| 58 | 60 | ||
| 59 | * lread.c, process.c: Do not include <inttypes.h>; lisp.h does it now. | 61 | * lread.c, process.c: Do not include <inttypes.h>; lisp.h does it now. |
| 60 | 62 | ||
diff --git a/src/lisp.h b/src/lisp.h index bb3a8cc393c..66f5c962be8 100644 --- a/src/lisp.h +++ b/src/lisp.h | |||
| @@ -34,9 +34,13 @@ extern void check_cons_list (void); | |||
| 34 | #define CHECK_CONS_LIST() ((void) 0) | 34 | #define CHECK_CONS_LIST() ((void) 0) |
| 35 | #endif | 35 | #endif |
| 36 | 36 | ||
| 37 | /* Temporarily disable wider-than-pointer integers until they're tested more. | ||
| 38 | Build with CFLAGS='-DWIDE_EMACS_INT' to try them out. */ | ||
| 39 | /* #undef WIDE_EMACS_INT */ | ||
| 40 | |||
| 37 | /* These are default choices for the types to use. */ | 41 | /* These are default choices for the types to use. */ |
| 38 | #ifndef EMACS_INT | 42 | #ifndef EMACS_INT |
| 39 | # if BITS_PER_LONG < BITS_PER_LONG_LONG | 43 | # if BITS_PER_LONG < BITS_PER_LONG_LONG && defined WIDE_EMACS_INT |
| 40 | # define EMACS_INT long long | 44 | # define EMACS_INT long long |
| 41 | # define BITS_PER_EMACS_INT BITS_PER_LONG_LONG | 45 | # define BITS_PER_EMACS_INT BITS_PER_LONG_LONG |
| 42 | # define pI "ll" | 46 | # define pI "ll" |