diff options
| author | Paul Eggert | 2012-07-25 15:47:42 -0700 |
|---|---|---|
| committer | Paul Eggert | 2012-07-25 15:47:42 -0700 |
| commit | 71f88e00a23bc38dc6a15bd65bc1e64981546313 (patch) | |
| tree | c8442f88e3f3c702a9d5bb214aa51fe6a6e19d45 /src/s | |
| parent | 71f32295cef7d059e22d9e3685d11c4c53d5c328 (diff) | |
| download | emacs-71f88e00a23bc38dc6a15bd65bc1e64981546313.tar.gz emacs-71f88e00a23bc38dc6a15bd65bc1e64981546313.zip | |
Use typedef for EMACS_INT, EMACS_UINT.
* lisp.h, s/ms-w32.h (EMACS_INT, EMACS_UINT): Use typedefs rather
than macros. This simplifies debugging in the usual case, since
it lets GDB show addresses as 'EMACS_INT *' rather than 'long int *'
and it allows expressions involving EMACS_INT casts.
* .gdbinit (xreload): Simplify by using EMACS_INT cast.
Diffstat (limited to 'src/s')
| -rw-r--r-- | src/s/ms-w32.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/s/ms-w32.h b/src/s/ms-w32.h index 7128d8a069d..bcc4c4235ee 100644 --- a/src/s/ms-w32.h +++ b/src/s/ms-w32.h | |||
| @@ -388,7 +388,8 @@ extern int getloadavg (double *, int); | |||
| 388 | # ifdef WIDE_EMACS_INT | 388 | # ifdef WIDE_EMACS_INT |
| 389 | 389 | ||
| 390 | /* Use pre-C99-style 64-bit integers. */ | 390 | /* Use pre-C99-style 64-bit integers. */ |
| 391 | # define EMACS_INT __int64 | 391 | typedef __int64 EMACS_INT; |
| 392 | typedef unsigned __int64 EMACS_UINT; | ||
| 392 | # define EMACS_INT_MAX _I64_MAX | 393 | # define EMACS_INT_MAX _I64_MAX |
| 393 | # define pI "I64" | 394 | # define pI "I64" |
| 394 | 395 | ||