diff options
| author | Paul Eggert | 2015-11-19 14:24:50 -0800 |
|---|---|---|
| committer | Paul Eggert | 2015-11-19 14:25:17 -0800 |
| commit | d9b300af5c7b07bd870046e73df53e19e860fdb9 (patch) | |
| tree | 808f21f765c38490a164d2efe4c8af182299db6c /src/lread.c | |
| parent | 68d58e69738db41061812b10f2f3f50b6a1b9aa0 (diff) | |
| download | emacs-d9b300af5c7b07bd870046e73df53e19e860fdb9.tar.gz emacs-d9b300af5c7b07bd870046e73df53e19e860fdb9.zip | |
Omit ‘const’ on locals
Remove ‘const’ qualifier from locals that were newly added.
We don’t normally bother declaring locals with ‘const’ even
though they are not modified, for the same reason we don’t
bother declaring them with ‘register’ even though their
addresses are not taken; the advantage in compile-time
checking isn’t worth the loss of readability.
* modules/mod-test/mod-test.c (Fmod_test_non_local_exit_funcall)
(Fmod_test_vector_fill, Fmod_test_vector_eq):
* src/emacs-module.c (MODULE_SETJMP_1)
(module_make_global_ref, module_free_global_ref)
(module_non_local_exit_get, module_make_function)
(module_extract_integer, module_extract_float)
(module_get_user_ptr, module_set_user_ptr)
(module_get_user_finalizer, module_set_user_finalizer)
(module_vec_get, Fmodule_call)
(module_non_local_exit_signal_1)
(module_non_local_exit_throw_1, lisp_to_value)
(finalize_storage, allocate_emacs_value, mark_modules)
(module_handle_signal, module_handle_throw)
(module_format_fun_env):
* src/eval.c (push_handler, push_handler_nosignal)
(init_handler):
* src/lread.c (suffix_p):
Omit unnecessary ‘const’.
Diffstat (limited to 'src/lread.c')
| -rw-r--r-- | src/lread.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lread.c b/src/lread.c index c0fa0d06b9c..f7ce0daf1fa 100644 --- a/src/lread.c +++ b/src/lread.c | |||
| @@ -979,8 +979,8 @@ This uses the variables `load-suffixes' and `load-file-rep-suffixes'. */) | |||
| 979 | static bool | 979 | static bool |
| 980 | suffix_p (Lisp_Object string, const char *suffix) | 980 | suffix_p (Lisp_Object string, const char *suffix) |
| 981 | { | 981 | { |
| 982 | const size_t suffix_len = strlen (suffix); | 982 | size_t suffix_len = strlen (suffix); |
| 983 | const size_t string_len = SBYTES (string); | 983 | size_t string_len = SBYTES (string); |
| 984 | 984 | ||
| 985 | return string_len >= suffix_len && !strcmp (SSDATA (string) + string_len - suffix_len, suffix); | 985 | return string_len >= suffix_len && !strcmp (SSDATA (string) + string_len - suffix_len, suffix); |
| 986 | } | 986 | } |