• Paul Eggert's avatar
    Prefer signed integer types in module code · 92949781
    Paul Eggert authored
    Generally speaking, at the C level the Emacs source code prefers
    signed types like ‘ptrdiff_t’ to unsigned types like ‘size_t’,
    partly to avoid the usual signedness confusion when comparing values.
    Change the module API to follow this convention.
    Use ‘int’ for small values that can’t exceed INT_MAX.
    * modules/mod-test/mod-test.c (Fmod_test_globref_make)
    (Fmod_test_string_a_to_b, Fmod_test_vector_fill)
    (Fmod_test_vector_eq):
    * src/emacs-module.c (struct emacs_value_frame)
    (module_make_global_ref, module_free_global_ref)
    (module_copy_string_contents, module_make_string)
    (module_vec_set, module_vec_get, module_vec_size):
    * src/emacs-module.h (struct emacs_runtime, struct emacs_env_25):
    * src/lread.c (suffix_p):
    Prefer signed to unsigned integer types.
    92949781
lread.c 136 KB