diff options
| author | Paul Eggert | 2011-04-29 19:49:39 -0700 |
|---|---|---|
| committer | Paul Eggert | 2011-04-29 19:49:39 -0700 |
| commit | 47be4ab5001b31c7097749ec6d35d0c0a2f27b63 (patch) | |
| tree | 3215b81588df9ef602aa6554f0cbe2ed180c0076 /src | |
| parent | 371cac43187cce3b5cc4c1779ae059b2bafa29a0 (diff) | |
| download | emacs-47be4ab5001b31c7097749ec6d35d0c0a2f27b63.tar.gz emacs-47be4ab5001b31c7097749ec6d35d0c0a2f27b63.zip | |
* lisp.h (EMACS_INT, EMACS_UINT, BITS_PER_EMACS_INT, pI): Simplify.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 2 | ||||
| -rw-r--r-- | src/lisp.h | 38 |
2 files changed, 16 insertions, 24 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 2b71a06ae4a..d75ec22b9f9 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,5 +1,7 @@ | |||
| 1 | 2011-04-30 Paul Eggert <eggert@cs.ucla.edu> | 1 | 2011-04-30 Paul Eggert <eggert@cs.ucla.edu> |
| 2 | 2 | ||
| 3 | * lisp.h (EMACS_INT, EMACS_UINT, BITS_PER_EMACS_INT, pI): Simplify. | ||
| 4 | |||
| 3 | * dbusbind.c: Do not use XPNTR on a value that may be an integer. | 5 | * dbusbind.c: Do not use XPNTR on a value that may be an integer. |
| 4 | Reported by Stefan Monnier in | 6 | Reported by Stefan Monnier in |
| 5 | <http://lists.gnu.org/archive/html/emacs-devel/2011-04/msg00919.html>. | 7 | <http://lists.gnu.org/archive/html/emacs-devel/2011-04/msg00919.html>. |
diff --git a/src/lisp.h b/src/lisp.h index 41848ebae8e..76938a49ac4 100644 --- a/src/lisp.h +++ b/src/lisp.h | |||
| @@ -35,33 +35,23 @@ extern void check_cons_list (void); | |||
| 35 | #endif | 35 | #endif |
| 36 | 36 | ||
| 37 | /* These are default choices for the types to use. */ | 37 | /* These are default choices for the types to use. */ |
| 38 | #ifdef _LP64 | ||
| 39 | #ifndef EMACS_INT | 38 | #ifndef EMACS_INT |
| 40 | #define EMACS_INT long | 39 | # if BITS_PER_LONG < BITS_PER_LONG_LONG |
| 41 | #define BITS_PER_EMACS_INT BITS_PER_LONG | 40 | # define EMACS_INT long long |
| 42 | #define pI "l" | 41 | # define BITS_PER_EMACS_INT BITS_PER_LONG_LONG |
| 43 | #endif | 42 | # define pI "ll" |
| 44 | #ifndef EMACS_UINT | 43 | # elif BITS_PER_INT < BITS_PER_LONG |
| 45 | #define EMACS_UINT unsigned long | 44 | # define EMACS_INT long |
| 46 | #endif | 45 | # define BITS_PER_EMACS_INT BITS_PER_LONG |
| 47 | #elif /* !_LP64 && */ BITS_PER_LONG < BITS_PER_LONG_LONG | 46 | # define pI "l" |
| 48 | #ifndef EMACS_INT | 47 | # else |
| 49 | #define EMACS_INT long long | 48 | # define EMACS_INT int |
| 50 | #define BITS_PER_EMACS_INT BITS_PER_LONG_LONG | 49 | # define BITS_PER_EMACS_INT BITS_PER_INT |
| 51 | #define pI "ll" | 50 | # define pI "" |
| 52 | #endif | 51 | # endif |
| 53 | #ifndef EMACS_UINT | ||
| 54 | #define EMACS_UINT unsigned long long | ||
| 55 | #endif | ||
| 56 | #else /* ! (_LP64 || BITS_PER_LONG < BITS_PER_LONG_LONG) */ | ||
| 57 | #ifndef EMACS_INT | ||
| 58 | #define EMACS_INT int | ||
| 59 | #define BITS_PER_EMACS_INT BITS_PER_INT | ||
| 60 | #define pI "" | ||
| 61 | #endif | 52 | #endif |
| 62 | #ifndef EMACS_UINT | 53 | #ifndef EMACS_UINT |
| 63 | #define EMACS_UINT unsigned int | 54 | # define EMACS_UINT unsigned EMACS_INT |
| 64 | #endif | ||
| 65 | #endif | 55 | #endif |
| 66 | 56 | ||
| 67 | /* Extra internal type checking? */ | 57 | /* Extra internal type checking? */ |