diff options
| author | Lars Magne Ingebrigtsen | 2010-09-23 22:57:48 +0200 |
|---|---|---|
| committer | Lars Magne Ingebrigtsen | 2010-09-23 22:57:48 +0200 |
| commit | faf8b5bc19513bc7612103648a98a37629607f2e (patch) | |
| tree | 23f9f3a5511baadedf3ac118323f3bd4a0be5657 /src | |
| parent | 4028306292f1808f11131a9c6b32394cdaed4a34 (diff) | |
| download | emacs-faf8b5bc19513bc7612103648a98a37629607f2e.tar.gz emacs-faf8b5bc19513bc7612103648a98a37629607f2e.zip | |
Cast SPECPDL_INDEX to int, and do further EMACS_INT/int cleanups.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 5 | ||||
| -rw-r--r-- | src/editfns.c | 8 | ||||
| -rw-r--r-- | src/lisp.h | 2 |
3 files changed, 10 insertions, 5 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 233a521f027..98fe7d466b3 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,5 +1,10 @@ | |||
| 1 | 2010-09-23 Lars Magne Ingebrigtsen <larsi@gnus.org> | 1 | 2010-09-23 Lars Magne Ingebrigtsen <larsi@gnus.org> |
| 2 | 2 | ||
| 3 | * lisp.h (SPECPDL_INDEX): Cast to int, since we're not going to | ||
| 4 | unwind_protect more than 2GB worth of functions. | ||
| 5 | |||
| 6 | * editfns.c (Finsert_char): EMACS_INT/int cleanup. | ||
| 7 | |||
| 3 | * lisp.h: Have oblookup take EMACS_INT to allow interning big | 8 | * lisp.h: Have oblookup take EMACS_INT to allow interning big |
| 4 | string and avoid compiler warnings. | 9 | string and avoid compiler warnings. |
| 5 | (USE_SAFE_ALLOCA): Cast to int to avoid compilation warnings in | 10 | (USE_SAFE_ALLOCA): Cast to int to avoid compilation warnings in |
diff --git a/src/editfns.c b/src/editfns.c index f7240e99190..f76beb5e678 100644 --- a/src/editfns.c +++ b/src/editfns.c | |||
| @@ -2270,7 +2270,7 @@ from adjoining text, if those properties are sticky. */) | |||
| 2270 | (Lisp_Object character, Lisp_Object count, Lisp_Object inherit) | 2270 | (Lisp_Object character, Lisp_Object count, Lisp_Object inherit) |
| 2271 | { | 2271 | { |
| 2272 | register unsigned char *string; | 2272 | register unsigned char *string; |
| 2273 | register int strlen; | 2273 | register EMACS_INT strlen; |
| 2274 | register int i; | 2274 | register int i; |
| 2275 | register EMACS_INT n; | 2275 | register EMACS_INT n; |
| 2276 | int len; | 2276 | int len; |
| @@ -2955,7 +2955,7 @@ It returns the number of characters changed. */) | |||
| 2955 | register unsigned char *tt; /* Trans table. */ | 2955 | register unsigned char *tt; /* Trans table. */ |
| 2956 | register int nc; /* New character. */ | 2956 | register int nc; /* New character. */ |
| 2957 | int cnt; /* Number of changes made. */ | 2957 | int cnt; /* Number of changes made. */ |
| 2958 | int size; /* Size of translate table. */ | 2958 | EMACS_INT size; /* Size of translate table. */ |
| 2959 | EMACS_INT pos, pos_byte, end_pos; | 2959 | EMACS_INT pos, pos_byte, end_pos; |
| 2960 | int multibyte = !NILP (current_buffer->enable_multibyte_characters); | 2960 | int multibyte = !NILP (current_buffer->enable_multibyte_characters); |
| 2961 | int string_multibyte; | 2961 | int string_multibyte; |
| @@ -3026,7 +3026,7 @@ It returns the number of characters changed. */) | |||
| 3026 | } | 3026 | } |
| 3027 | else | 3027 | else |
| 3028 | { | 3028 | { |
| 3029 | int c; | 3029 | EMACS_INT c; |
| 3030 | 3030 | ||
| 3031 | nc = oc; | 3031 | nc = oc; |
| 3032 | val = CHAR_TABLE_REF (table, oc); | 3032 | val = CHAR_TABLE_REF (table, oc); |
| @@ -3239,7 +3239,7 @@ save_restriction_restore (Lisp_Object data) | |||
| 3239 | /* The restriction has changed from the saved one, so restore | 3239 | /* The restriction has changed from the saved one, so restore |
| 3240 | the saved restriction. */ | 3240 | the saved restriction. */ |
| 3241 | { | 3241 | { |
| 3242 | int pt = BUF_PT (buf); | 3242 | EMACS_INT pt = BUF_PT (buf); |
| 3243 | 3243 | ||
| 3244 | SET_BUF_BEGV_BOTH (buf, beg->charpos, beg->bytepos); | 3244 | SET_BUF_BEGV_BOTH (buf, beg->charpos, beg->bytepos); |
| 3245 | SET_BUF_ZV_BOTH (buf, end->charpos, end->bytepos); | 3245 | SET_BUF_ZV_BOTH (buf, end->charpos, end->bytepos); |
diff --git a/src/lisp.h b/src/lisp.h index bbc97241ef1..4baa72f4435 100644 --- a/src/lisp.h +++ b/src/lisp.h | |||
| @@ -1881,7 +1881,7 @@ extern int specpdl_size; | |||
| 1881 | 1881 | ||
| 1882 | extern EMACS_INT max_specpdl_size; | 1882 | extern EMACS_INT max_specpdl_size; |
| 1883 | 1883 | ||
| 1884 | #define SPECPDL_INDEX() (specpdl_ptr - specpdl) | 1884 | #define SPECPDL_INDEX() ((int) (specpdl_ptr - specpdl)) |
| 1885 | 1885 | ||
| 1886 | /* Everything needed to describe an active condition case. */ | 1886 | /* Everything needed to describe an active condition case. */ |
| 1887 | struct handler | 1887 | struct handler |