diff options
Diffstat (limited to 'src/composite.c')
| -rw-r--r-- | src/composite.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/composite.c b/src/composite.c index c3bf6878ce3..ff6d1a5ba34 100644 --- a/src/composite.c +++ b/src/composite.c | |||
| @@ -249,8 +249,8 @@ get_composition_id (charpos, bytepos, nchars, prop, string) | |||
| 249 | modify the cons cell of PROP because it is not shared. */ | 249 | modify the cons cell of PROP because it is not shared. */ |
| 250 | key = HASH_KEY (hash_table, hash_index); | 250 | key = HASH_KEY (hash_table, hash_index); |
| 251 | id = HASH_VALUE (hash_table, hash_index); | 251 | id = HASH_VALUE (hash_table, hash_index); |
| 252 | XCAR (prop) = id; | 252 | XSETCAR (prop, id); |
| 253 | XCDR (prop) = Fcons (make_number (nchars), Fcons (key, XCDR (prop))); | 253 | XSETCDR (prop, Fcons (make_number (nchars), Fcons (key, XCDR (prop)))); |
| 254 | return XINT (id); | 254 | return XINT (id); |
| 255 | } | 255 | } |
| 256 | 256 | ||
| @@ -297,8 +297,8 @@ get_composition_id (charpos, bytepos, nchars, prop, string) | |||
| 297 | /* Change PROP from Form-A above to Form-B. We can directly modify | 297 | /* Change PROP from Form-A above to Form-B. We can directly modify |
| 298 | the cons cell of PROP because it is not shared. */ | 298 | the cons cell of PROP because it is not shared. */ |
| 299 | XSETFASTINT (id, n_compositions); | 299 | XSETFASTINT (id, n_compositions); |
| 300 | XCAR (prop) = id; | 300 | XSETCAR (prop, id); |
| 301 | XCDR (prop) = Fcons (make_number (nchars), Fcons (key, XCDR (prop))); | 301 | XSETCDR (prop, Fcons (make_number (nchars), Fcons (key, XCDR (prop)))); |
| 302 | 302 | ||
| 303 | /* Register the composition in composition_hash_table. */ | 303 | /* Register the composition in composition_hash_table. */ |
| 304 | hash_index = hash_put (hash_table, key, id, hash_code); | 304 | hash_index = hash_put (hash_table, key, id, hash_code); |
| @@ -569,7 +569,7 @@ make_composition_value_copy (list) | |||
| 569 | { | 569 | { |
| 570 | if (EQ (XCAR (plist), Qcomposition) | 570 | if (EQ (XCAR (plist), Qcomposition) |
| 571 | && (val = XCAR (XCDR (plist)), CONSP (val))) | 571 | && (val = XCAR (XCDR (plist)), CONSP (val))) |
| 572 | XCAR (XCDR (plist)) = Fcons (XCAR (val), XCDR (val)); | 572 | XSETCAR (XCDR (plist), Fcons (XCAR (val), XCDR (val))); |
| 573 | plist = XCDR (XCDR (plist)); | 573 | plist = XCDR (XCDR (plist)); |
| 574 | } | 574 | } |
| 575 | } | 575 | } |