diff options
| author | Paul Eggert | 2011-04-04 12:53:59 -0700 |
|---|---|---|
| committer | Paul Eggert | 2011-04-04 12:53:59 -0700 |
| commit | dcd5c89a9e2fbaecd3f5a55c0221636537950c46 (patch) | |
| tree | 090c122095d7570e2642f4552ed81c216077aaaf /src | |
| parent | b13a45c6f92b2489ddd16ba2af9f19ebf46d3a2a (diff) | |
| download | emacs-dcd5c89a9e2fbaecd3f5a55c0221636537950c46.tar.gz emacs-dcd5c89a9e2fbaecd3f5a55c0221636537950c46.zip | |
* composite.h, composite.c (composition_gstring_put_cache):
Use EMACS_INT, not int, for length.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 3 | ||||
| -rw-r--r-- | src/composite.c | 4 | ||||
| -rw-r--r-- | src/composite.h | 2 |
3 files changed, 6 insertions, 3 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 4b029374f83..d7edbb610f7 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,5 +1,8 @@ | |||
| 1 | 2011-04-04 Paul Eggert <eggert@cs.ucla.edu> | 1 | 2011-04-04 Paul Eggert <eggert@cs.ucla.edu> |
| 2 | 2 | ||
| 3 | * composite.h, composite.c (composition_gstring_put_cache): | ||
| 4 | Use EMACS_INT, not int, for length. | ||
| 5 | |||
| 3 | * composite.h (COMPOSITION_DECODE_REFS): New macro, | 6 | * composite.h (COMPOSITION_DECODE_REFS): New macro, |
| 4 | breaking out part of COMPOSITION_DECODE_RULE. | 7 | breaking out part of COMPOSITION_DECODE_RULE. |
| 5 | (COMPOSITION_DECODE_RULE): Use it. | 8 | (COMPOSITION_DECODE_RULE): Use it. |
diff --git a/src/composite.c b/src/composite.c index af642ad9a72..1ce7bff2982 100644 --- a/src/composite.c +++ b/src/composite.c | |||
| @@ -661,12 +661,12 @@ gstring_lookup_cache (Lisp_Object header) | |||
| 661 | } | 661 | } |
| 662 | 662 | ||
| 663 | Lisp_Object | 663 | Lisp_Object |
| 664 | composition_gstring_put_cache (Lisp_Object gstring, int len) | 664 | composition_gstring_put_cache (Lisp_Object gstring, EMACS_INT len) |
| 665 | { | 665 | { |
| 666 | struct Lisp_Hash_Table *h = XHASH_TABLE (gstring_hash_table); | 666 | struct Lisp_Hash_Table *h = XHASH_TABLE (gstring_hash_table); |
| 667 | unsigned hash; | 667 | unsigned hash; |
| 668 | Lisp_Object header, copy; | 668 | Lisp_Object header, copy; |
| 669 | int i; | 669 | EMACS_INT i; |
| 670 | 670 | ||
| 671 | header = LGSTRING_HEADER (gstring); | 671 | header = LGSTRING_HEADER (gstring); |
| 672 | hash = h->hashfn (h, header); | 672 | hash = h->hashfn (h, header); |
diff --git a/src/composite.h b/src/composite.h index fa8e1164e4a..ffdb57a571e 100644 --- a/src/composite.h +++ b/src/composite.h | |||
| @@ -307,7 +307,7 @@ struct composition_it; | |||
| 307 | struct face; | 307 | struct face; |
| 308 | struct font_metrics; | 308 | struct font_metrics; |
| 309 | 309 | ||
| 310 | extern Lisp_Object composition_gstring_put_cache (Lisp_Object, int); | 310 | extern Lisp_Object composition_gstring_put_cache (Lisp_Object, EMACS_INT); |
| 311 | extern Lisp_Object composition_gstring_from_id (int); | 311 | extern Lisp_Object composition_gstring_from_id (int); |
| 312 | extern int composition_gstring_p (Lisp_Object); | 312 | extern int composition_gstring_p (Lisp_Object); |
| 313 | extern int composition_gstring_width (Lisp_Object, EMACS_INT, EMACS_INT, | 313 | extern int composition_gstring_width (Lisp_Object, EMACS_INT, EMACS_INT, |