Mercurial > hg > xemacs-beta
comparison src/chartab.c @ 5902:2dc8711af537
Make get_char_table in loop bodies more tolerable without optimization.
2015-05-08 Aidan Kehoe <kehoea@parhasard.net>
* chartab.h (get_char_table):
* chartab.h (get_char_table_mirrors_ok): New.
Provide get_char_table_mirrors_ok, which differs from
get_char_table only if ERROR_CHECK_TYPES is defined.
Implement it, and get_char_table, using a macro wrapper of
get_char_table_1, so that on builds without optimization each
get_char_table no longer requires two C function calls.
* chartab.c (updating_mirror_get_range_char_table):
Use get_char_table_mirrors_ok.
* syntax.h:
Ditto.
author | Aidan Kehoe <kehoea@parhasard.net> |
---|---|
date | Fri, 08 May 2015 12:47:13 +0100 |
parents | 3192994c49ca |
children |
comparison
equal
deleted
inserted
replaced
5901:a485caa1131d | 5902:2dc8711af537 |
---|---|
1040 updating_mirror_get_range_char_table (struct chartab_range *range, | 1040 updating_mirror_get_range_char_table (struct chartab_range *range, |
1041 Lisp_Object table, | 1041 Lisp_Object table, |
1042 Lisp_Object multi) | 1042 Lisp_Object multi) |
1043 { | 1043 { |
1044 if (range->type == CHARTAB_RANGE_CHAR) | 1044 if (range->type == CHARTAB_RANGE_CHAR) |
1045 return get_char_table_1 (range->ch, table); | 1045 return get_char_table_mirrors_ok (range->ch, table); |
1046 else | 1046 else |
1047 return get_range_char_table_1 (range, table, multi); | 1047 return get_range_char_table_1 (range, table, multi); |
1048 } | 1048 } |
1049 | 1049 |
1050 #endif /* ERROR_CHECK_TYPES */ | 1050 #endif /* ERROR_CHECK_TYPES */ |