diff options
| author | Paul Eggert | 2011-09-25 14:04:04 -0700 |
|---|---|---|
| committer | Paul Eggert | 2011-09-25 14:04:04 -0700 |
| commit | 1a2f43d0db92546dab765bc947f70bc7d2e4fee0 (patch) | |
| tree | 016e3dabc9ce790e4ea3281fc272374dab8f0347 /src | |
| parent | b62b53e8e9cdcc6d8392ffa0c9d17cb2b0e534e2 (diff) | |
| download | emacs-1a2f43d0db92546dab765bc947f70bc7d2e4fee0.tar.gz emacs-1a2f43d0db92546dab765bc947f70bc7d2e4fee0.zip | |
* lisp.h (XSETSUBR): Revert, as the old version is needed if debugging is enabled.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 2 | ||||
| -rw-r--r-- | src/lisp.h | 3 |
2 files changed, 2 insertions, 3 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index cc6c01a4360..1769f91aaf2 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -456,8 +456,6 @@ | |||
| 456 | (struct Lisp_Marker): | 456 | (struct Lisp_Marker): |
| 457 | Use ptrdiff_t, not EMACS_INT, where ptrdiff_t is wide enough. | 457 | Use ptrdiff_t, not EMACS_INT, where ptrdiff_t is wide enough. |
| 458 | (clip_to_bounds): Now an inline function, moved here from editfns.c. | 458 | (clip_to_bounds): Now an inline function, moved here from editfns.c. |
| 459 | (XSETSUBR): Use size of 0 since the actual size doesn't matter, | ||
| 460 | and using 0 avoids overflow. | ||
| 461 | (GLYPH_CODE_P): Check for overflow in system types, subsuming the | 459 | (GLYPH_CODE_P): Check for overflow in system types, subsuming the |
| 462 | need for GLYPH_CODE_CHAR_VALID_P and doing proper checking ourselves. | 460 | need for GLYPH_CODE_CHAR_VALID_P and doing proper checking ourselves. |
| 463 | All callers changed. | 461 | All callers changed. |
diff --git a/src/lisp.h b/src/lisp.h index ed8eb2720b5..2c54c9b41ed 100644 --- a/src/lisp.h +++ b/src/lisp.h | |||
| @@ -664,7 +664,8 @@ clip_to_bounds (ptrdiff_t lower, EMACS_INT num, ptrdiff_t upper) | |||
| 664 | #define XSETWINDOW(a, b) (XSETPSEUDOVECTOR (a, b, PVEC_WINDOW)) | 664 | #define XSETWINDOW(a, b) (XSETPSEUDOVECTOR (a, b, PVEC_WINDOW)) |
| 665 | #define XSETTERMINAL(a, b) (XSETPSEUDOVECTOR (a, b, PVEC_TERMINAL)) | 665 | #define XSETTERMINAL(a, b) (XSETPSEUDOVECTOR (a, b, PVEC_TERMINAL)) |
| 666 | /* XSETSUBR is special since Lisp_Subr lacks struct vectorlike_header. */ | 666 | /* XSETSUBR is special since Lisp_Subr lacks struct vectorlike_header. */ |
| 667 | #define XSETSUBR(a, b) XSETTYPED_PSEUDOVECTOR (a, b, 0, PVEC_SUBR) | 667 | #define XSETSUBR(a, b) \ |
| 668 | XSETTYPED_PSEUDOVECTOR (a, b, XSUBR (a)->size, PVEC_SUBR) | ||
| 668 | #define XSETCOMPILED(a, b) (XSETPSEUDOVECTOR (a, b, PVEC_COMPILED)) | 669 | #define XSETCOMPILED(a, b) (XSETPSEUDOVECTOR (a, b, PVEC_COMPILED)) |
| 669 | #define XSETBUFFER(a, b) (XSETPSEUDOVECTOR (a, b, PVEC_BUFFER)) | 670 | #define XSETBUFFER(a, b) (XSETPSEUDOVECTOR (a, b, PVEC_BUFFER)) |
| 670 | #define XSETCHAR_TABLE(a, b) (XSETPSEUDOVECTOR (a, b, PVEC_CHAR_TABLE)) | 671 | #define XSETCHAR_TABLE(a, b) (XSETPSEUDOVECTOR (a, b, PVEC_CHAR_TABLE)) |