diff options
| author | Daniel Colascione | 2014-04-03 00:14:02 -0700 |
|---|---|---|
| committer | Daniel Colascione | 2014-04-03 00:14:02 -0700 |
| commit | 705cf384bec23354ad22a5c48d3430a96ef70ca1 (patch) | |
| tree | 1615876bc7abad32f5e41ea34c5cd1747466798a /src/chartab.c | |
| parent | 3a9e7a49deea49088a773c321e52185e922748d6 (diff) | |
| download | emacs-705cf384bec23354ad22a5c48d3430a96ef70ca1.tar.gz emacs-705cf384bec23354ad22a5c48d3430a96ef70ca1.zip | |
Clean up array size calculations
Diffstat (limited to 'src/chartab.c')
| -rw-r--r-- | src/chartab.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/chartab.c b/src/chartab.c index 2a8bbc6983a..56a6f548749 100644 --- a/src/chartab.c +++ b/src/chartab.c | |||
| @@ -1221,9 +1221,7 @@ uniprop_decode_value_run_length (Lisp_Object table, Lisp_Object value) | |||
| 1221 | static uniprop_decoder_t uniprop_decoder [] = | 1221 | static uniprop_decoder_t uniprop_decoder [] = |
| 1222 | { uniprop_decode_value_run_length }; | 1222 | { uniprop_decode_value_run_length }; |
| 1223 | 1223 | ||
| 1224 | static int uniprop_decoder_count | 1224 | static const int uniprop_decoder_count = EARRAYSIZE (uniprop_decoder); |
| 1225 | = (sizeof uniprop_decoder) / sizeof (uniprop_decoder[0]); | ||
| 1226 | |||
| 1227 | 1225 | ||
| 1228 | /* Return the decoder of char-table TABLE or nil if none. */ | 1226 | /* Return the decoder of char-table TABLE or nil if none. */ |
| 1229 | 1227 | ||
| @@ -1301,9 +1299,7 @@ static uniprop_encoder_t uniprop_encoder[] = | |||
| 1301 | uniprop_encode_value_run_length, | 1299 | uniprop_encode_value_run_length, |
| 1302 | uniprop_encode_value_numeric }; | 1300 | uniprop_encode_value_numeric }; |
| 1303 | 1301 | ||
| 1304 | static int uniprop_encoder_count | 1302 | static const int uniprop_encoder_count = EARRAYSIZE (uniprop_encoder); |
| 1305 | = (sizeof uniprop_encoder) / sizeof (uniprop_encoder[0]); | ||
| 1306 | |||
| 1307 | 1303 | ||
| 1308 | /* Return the encoder of char-table TABLE or nil if none. */ | 1304 | /* Return the encoder of char-table TABLE or nil if none. */ |
| 1309 | 1305 | ||