diff options
| author | Paul Eggert | 2017-11-13 08:51:41 -0800 |
|---|---|---|
| committer | Paul Eggert | 2017-11-13 10:16:51 -0800 |
| commit | 5d68dc9a2fd1b9b883db6bc1c226541b50de8bb1 (patch) | |
| tree | 196afa86890522fcde540c618ac85e307194127b /src/font.h | |
| parent | 6aa0a26b46240d79eddd7e0d275454e235a60b84 (diff) | |
| download | emacs-5d68dc9a2fd1b9b883db6bc1c226541b50de8bb1.tar.gz emacs-5d68dc9a2fd1b9b883db6bc1c226541b50de8bb1.zip | |
Change vectorlike from struct to union
* src/lisp.h (vectorlike_headed): Change from struct to union.
All uses changed. Since it has only one member, this does not
change semantics. This is designed to simplify future changes
needed to fix bugs like Bug#29040. All uses changed.
Diffstat (limited to 'src/font.h')
| -rw-r--r-- | src/font.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/font.h b/src/font.h index 8f2e27f0edd..43d6f67e3e9 100644 --- a/src/font.h +++ b/src/font.h | |||
| @@ -244,7 +244,7 @@ enum font_property_index | |||
| 244 | 244 | ||
| 245 | struct font_spec | 245 | struct font_spec |
| 246 | { | 246 | { |
| 247 | struct vectorlike_header header; | 247 | union vectorlike_header header; |
| 248 | Lisp_Object props[FONT_SPEC_MAX]; | 248 | Lisp_Object props[FONT_SPEC_MAX]; |
| 249 | }; | 249 | }; |
| 250 | 250 | ||
| @@ -252,7 +252,7 @@ struct font_spec | |||
| 252 | 252 | ||
| 253 | struct font_entity | 253 | struct font_entity |
| 254 | { | 254 | { |
| 255 | struct vectorlike_header header; | 255 | union vectorlike_header header; |
| 256 | Lisp_Object props[FONT_ENTITY_MAX]; | 256 | Lisp_Object props[FONT_ENTITY_MAX]; |
| 257 | }; | 257 | }; |
| 258 | 258 | ||
| @@ -265,7 +265,7 @@ struct font_entity | |||
| 265 | 265 | ||
| 266 | struct font | 266 | struct font |
| 267 | { | 267 | { |
| 268 | struct vectorlike_header header; | 268 | union vectorlike_header header; |
| 269 | 269 | ||
| 270 | /* All Lisp_Object components must come first. | 270 | /* All Lisp_Object components must come first. |
| 271 | That ensures they are all aligned normally. */ | 271 | That ensures they are all aligned normally. */ |