aboutsummaryrefslogtreecommitdiffstats
path: root/src/chartab.c
diff options
context:
space:
mode:
authorDaniel Colascione2014-04-03 00:14:02 -0700
committerDaniel Colascione2014-04-03 00:14:02 -0700
commit705cf384bec23354ad22a5c48d3430a96ef70ca1 (patch)
tree1615876bc7abad32f5e41ea34c5cd1747466798a /src/chartab.c
parent3a9e7a49deea49088a773c321e52185e922748d6 (diff)
downloademacs-705cf384bec23354ad22a5c48d3430a96ef70ca1.tar.gz
emacs-705cf384bec23354ad22a5c48d3430a96ef70ca1.zip
Clean up array size calculations
Diffstat (limited to 'src/chartab.c')
-rw-r--r--src/chartab.c8
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)
1221static uniprop_decoder_t uniprop_decoder [] = 1221static uniprop_decoder_t uniprop_decoder [] =
1222 { uniprop_decode_value_run_length }; 1222 { uniprop_decode_value_run_length };
1223 1223
1224static int uniprop_decoder_count 1224static 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
1304static int uniprop_encoder_count 1302static 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