aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPaul Eggert2011-04-29 01:51:24 -0700
committerPaul Eggert2011-04-29 01:51:24 -0700
commit7fd47d5ce2020a22f8db9776e8d1f47891b966dc (patch)
tree41d5985a227a6c093b81725c2f38b1e40acdb64e /src
parentd1a2ac5c058c374b2c8178d94ce401febe07e9d8 (diff)
downloademacs-7fd47d5ce2020a22f8db9776e8d1f47891b966dc.tar.gz
emacs-7fd47d5ce2020a22f8db9776e8d1f47891b966dc.zip
* lisp.h: Prefer 64-bit EMACS_INT if available.
(EMACS_INT, EMACS_UINT, BITS_PER_EMACS_INT, pI): Define to 64-bit on 32-bit hosts that have 64-bit int, so that they can access large files.
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog5
-rw-r--r--src/lisp.h11
2 files changed, 15 insertions, 1 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index a1e048b1390..a9fc541b481 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,5 +1,10 @@
12011-04-29 Paul Eggert <eggert@cs.ucla.edu> 12011-04-29 Paul Eggert <eggert@cs.ucla.edu>
2 2
3 * lisp.h: Prefer 64-bit EMACS_INT if available.
4 (EMACS_INT, EMACS_UINT, BITS_PER_EMACS_INT, pI): Define to 64-bit
5 on 32-bit hosts that have 64-bit int, so that they can access
6 large files.
7
3 * lread.c, process.c: Do not include <inttypes.h>; lisp.h does it now. 8 * lread.c, process.c: Do not include <inttypes.h>; lisp.h does it now.
4 9
5 Prefer intptr_t/uintptr_t for integers the same widths as pointers. 10 Prefer intptr_t/uintptr_t for integers the same widths as pointers.
diff --git a/src/lisp.h b/src/lisp.h
index a8cf38f6669..3b9778ddc64 100644
--- a/src/lisp.h
+++ b/src/lisp.h
@@ -44,7 +44,16 @@ extern void check_cons_list (void);
44#ifndef EMACS_UINT 44#ifndef EMACS_UINT
45#define EMACS_UINT unsigned long 45#define EMACS_UINT unsigned long
46#endif 46#endif
47#else /* not _LP64 */ 47#elif /* !_LP64 && */ BITS_PER_LONG < BITS_PER_LONG_LONG
48#ifndef EMACS_INT
49#define EMACS_INT long long
50#define BITS_PER_EMACS_INT BITS_PER_LONG_LONG
51#define pI "ll"
52#endif
53#ifndef EMACS_UINT
54#define EMACS_UINT unsigned long long
55#endif
56#else /* ! (_LP64 || BITS_PER_LONG < BITS_PER_LONG_LONG) */
48#ifndef EMACS_INT 57#ifndef EMACS_INT
49#define EMACS_INT int 58#define EMACS_INT int
50#define BITS_PER_EMACS_INT BITS_PER_INT 59#define BITS_PER_EMACS_INT BITS_PER_INT