diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2012-09-02 00:10:10 -0700 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2012-09-02 00:10:10 -0700 |
commit | a08d4ba773a70961d153bf213db68dfcc5a50b01 (patch) | |
tree | 5af3f41dc48af2352bf903bd613b38aac6c81159 /src/intervals.h | |
parent | 6a787d9a30720e20053909e71d8b7bc313d37a94 (diff) | |
download | emacs-a08d4ba773a70961d153bf213db68dfcc5a50b01.tar.gz |
* doc.c, editfns.c, insdel.c, intervals.c: Use bool for boolean.
* doc.c (read_bytecode_char, get_doc_string, reread_doc_file)
(Fdocumentation, Fdocumentation_property, Fsnarf_documentation)
(Fsubstitute_command_keys):
* editfns.c (region_limit, find_field, Fconstrain_to_field)
(save_excursion_save, save_excursion_restore)
(disassemble_lisp_time, decode_time_components, emacs_nmemftime)
(format_time_string, general_insert_function)
(make_buffer_string, make_buffer_string_both)
(Fsubst_char_in_region, Ftranslate_region_internal, Fformat):
* insdel.c (check_markers, gap_left, adjust_markers_for_insert)
(copy_text, insert_1, insert_1_both, insert_from_string)
(insert_from_string_before_markers, insert_from_string_1)
(insert_from_buffer, insert_from_buffer_1, replace_range)
(replace_range_2, del_range_1, del_range_byte, del_range_both)
(del_range_2, modify_region):
* intervals.c (intervals_equal, balance_possible_root_interval)
(adjust_intervals_for_insertion, merge_properties_sticky)
(graft_intervals_into_buffer, lookup_char_property)
(adjust_for_invis_intang, set_point_both)
(get_property_and_range, compare_string_intervals)
(set_intervals_multibyte_1, set_intervals_multibyte):
* keyboard.c (decode_timer):
Use bool for boolean.
* intervals.h, lisp.h, systime.h: Reflect above API changes.
* editfns.c (struct info): Use 1-bit unsigned bitfields for booleans.
Diffstat (limited to 'src/intervals.h')
-rw-r--r-- | src/intervals.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/intervals.h b/src/intervals.h index 01e72d7c9db..2b30101d0fa 100644 --- a/src/intervals.h +++ b/src/intervals.h @@ -227,7 +227,7 @@ extern INTERVAL make_interval (void); extern INTERVAL create_root_interval (Lisp_Object); extern void copy_properties (INTERVAL, INTERVAL); -extern int intervals_equal (INTERVAL, INTERVAL); +extern bool intervals_equal (INTERVAL, INTERVAL); extern void traverse_intervals (INTERVAL, ptrdiff_t, void (*) (INTERVAL, Lisp_Object), Lisp_Object); @@ -242,22 +242,22 @@ extern INTERVAL previous_interval (INTERVAL); extern INTERVAL merge_interval_left (INTERVAL); extern void offset_intervals (struct buffer *, ptrdiff_t, ptrdiff_t); extern void graft_intervals_into_buffer (INTERVAL, ptrdiff_t, ptrdiff_t, - struct buffer *, int); + struct buffer *, bool); extern void verify_interval_modification (struct buffer *, ptrdiff_t, ptrdiff_t); extern INTERVAL balance_intervals (INTERVAL); extern void copy_intervals_to_string (Lisp_Object, struct buffer *, ptrdiff_t, ptrdiff_t); extern INTERVAL copy_intervals (INTERVAL, ptrdiff_t, ptrdiff_t); -extern int compare_string_intervals (Lisp_Object, Lisp_Object); +extern bool compare_string_intervals (Lisp_Object, Lisp_Object); extern Lisp_Object textget (Lisp_Object, Lisp_Object); -extern Lisp_Object lookup_char_property (Lisp_Object, Lisp_Object, int); +extern Lisp_Object lookup_char_property (Lisp_Object, Lisp_Object, bool); extern void move_if_not_intangible (ptrdiff_t); -extern int get_property_and_range (ptrdiff_t, Lisp_Object, Lisp_Object *, - ptrdiff_t *, ptrdiff_t *, Lisp_Object); +extern bool get_property_and_range (ptrdiff_t, Lisp_Object, Lisp_Object *, + ptrdiff_t *, ptrdiff_t *, Lisp_Object); extern Lisp_Object get_local_map (ptrdiff_t, struct buffer *, Lisp_Object); extern INTERVAL update_interval (INTERVAL, ptrdiff_t); -extern void set_intervals_multibyte (int); +extern void set_intervals_multibyte (bool); extern INTERVAL validate_interval_range (Lisp_Object, Lisp_Object *, Lisp_Object *, int); extern INTERVAL interval_of (ptrdiff_t, Lisp_Object); |