aboutsummaryrefslogtreecommitdiffstats
path: root/src/intervals.h (follow)
Commit message (Collapse)AuthorAgeFilesLines
* (get_char_property_and_overlay): Add declaration.Miles Bader2000-10-251-1/+3
|
* (Fprevious_single_char_property_change): Declare.Ken Raeburn2000-08-081-0/+1
|
* (map_property): New enum.Dave Love2000-05-291-1/+3
| | | | | (get_local_map): Extra arg using it. (Qkeymap): Declare.
* * intervals.h (SET_INTERVAL_PARENT): Use INT_LISPLIKE to test for a pointerKen Raeburn2000-04-051-5/+3
| | | | | | | that looks like a lisp object. (SET_INTERVAL_OBJECT): Don't explicitly compare the object with zero, instead see whether it's an integer object, since they can't have intervals. (GET_INTERVAL_OBJECT): Simply assign to the destination.
* Stop assuming interval pointers and lisp objects can be distinguished byKen Raeburn2000-03-291-9/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | inspection. Beginnings of support for expensive internal consistency checks. * config.in (ENABLE_CHECKING): Undef. * lisp.h (struct interval): Replace "parent" field with a union of interval pointer and Lisp_Object; add new bitfield to use as discriminant. Change other flag fields to bitfields. (CHECK): New macro for consistency checking. If ENABLE_CHECKING is defined and the supplied test fails, print a message and abort. (eassert): New macro. Use CHECK to provide an assert-like facility. * intervals.h (NULL_INTERVAL_P): Now applies only to real interval pointers; abort if the value looks like a lisp object. (NULL_INTERVAL_P, NULL_PARENT, HAS_PARENT, HAS_OBJECT, SET_PARENT, SET_OBJECT, INTERVAL_PARENT, GET_INTERVAL_OBJECT, COPY_PARENT): Modify for new interval parent definition. * alloc.c (mark_interval_tree, MARK_INTERVAL_TREE, UNMARK_BALANCE_INTERVALS): Update references that need an addressable lisp object in the interval structure. (die): New function. (suppress_checking): New variable. * intervals.c (interval_start_pos): Just return 0 if there's no parent object.
* Changes towards better type safety regarding intervals, primarilyKen Raeburn2000-03-221-12/+37
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | regarding the "parent" handle. These just separate out the different usages based on the type of parent (interval vs lisp object); later changes will do type checking and enforcement. * intervals.h (NULL_INTERVAL): Cast to INTERVAL type. (INT_LISPLIKE): New macro. (NULL_INTERVAL_P): Use it. (INTERVAL_HAS_PARENT, INTERVAL_HAS_OBJECT, SET_INTERVAL_PARENT, SET_INTERVAL_OBJECT, INTERVAL_PARENT, COPY_INTERVAL_PARENT, GET_INTERVAL_OBJECT, INTERVAL_PARENT_OR_NULL): New macros. * alloc.c (make_interval, gc_sweep): Use new macros; eliminate all explicit references to "parent" field of struct interval and associated unclean type conversions. * intervals.c (create_root_interval, root_interval, rotate_right, rotate_left, balance_possible_root_interval, split_interval_right, split_interval_left, interval_start_pos, find_interval, next_interval, previous_interval, update_interval, adjust_intervals_for_insertion, delete_node, delete_interval, adjust_intervals_for_deletion, merge_interval_right, merge_interval_left, reproduce_tree, graft_intervals_into_buffer, copy_intervals_to_string): Likewise. * intervals.h (AM_LEFT_CHILD, AM_RIGHT_CHILD, RESET_INTERVAL): Likewise. * syntax.c (update_syntax_table): Likewise. * intervals.c (reproduce_tree_obj): New function, like reproduce_tree but takes a Lisp_Object for the parent. Declare with prototype. (graft_intervals_into_buffer): Use it when appropriate. (reproduce_tree): Declare with prototype. (balance_possible_root_interval): Check that the parent is a lisp object before trying to examine its type.
* Include composite.h.Kenichi Handa1999-12-151-0/+7
| | | | | (get_property_and_range): Extern it. (Vtext_property_default_nonsticky): Extern it.
* Remove USE_TEXT_PROPERTIES.Gerd Moellmann1999-11-111-18/+0
|
* Add function prototypes.Gerd Moellmann1999-07-211-0/+6
|
* Add more prototypes.Andreas Schwab1998-04-141-7/+14
|
* (set_point, temp_set_point): Swap args in decl.Richard M. Stallman1998-01-011-2/+4
| | | | (set_point_both, temp_set_point_both): New decls.
* Add prototypes and more function declarations.Andreas Schwab1997-11-211-21/+32
|
* Fix bugs with inappropriate mixing of Lisp_Object with int.Richard M. Stallman1997-07-041-0/+6
|
* (update_interval): New function declaration.Richard M. Stallman1997-04-151-0/+1
|
* (FRONT_NONSTICKY_P): New macro.Richard M. Stallman1996-12-201-0/+2
|
* Update FSF's address in the preamble.Erik Naggum1996-01-151-1/+2
|
* Update GPL to version 2.Karl Heuer1995-06-151-1/+1
|
* Vdefault_text_properties: name changed from Vdefault_properties.Boris Goldowsky1995-03-271-2/+1
|
* (TEXT_PROP_MEANS_INVISIBLE): New macro.Richard M. Stallman1995-03-111-0/+17
| | | | (TEXT_PROP_MEANS_INVISIBLE_WITH_ELLIPSIS): New macro.
* Declare Vdefault_properties.Boris Goldowsky1995-03-061-0/+1
|
* (INTERVAL_LAST_POS): Don't subtract 1 here.Richard M. Stallman1994-12-041-2/+2
|
* (NULL_INTERVAL_P): Use type test macros.Karl Heuer1994-09-271-3/+3
|
* Declare some functions.Karl Heuer1994-09-171-0/+1
|
* (interval_balance_threshold): Var deleted.Richard M. Stallman1994-09-151-2/+0
|
* Update copyright.Karl Heuer1994-05-041-1/+1
|
* (Qintangible): New symbol, replacing Qhidden.Karl Heuer1994-04-081-1/+1
|
* (NULL_RIGHT_CHILD, NULL_LEFT_CHILD):Richard M. Stallman1994-01-021-18/+19
| | | | Assume children must be intervals, never strings or buffers.
* (MERGE_INSERTIONS): Define as 1.Richard M. Stallman1993-07-311-4/+13
| | | | | | | | | (FRONT_STICKY): Add real definition. (END_NONSTICKY): New macro. (END_STICKY): Deleted. (textget_direct, Qfront_sticky, Qrear_nonsticky): Declared. (Qhidden): Declared.
* (Vinhibit_point_motion_hooks): Declared.Richard M. Stallman1993-07-231-0/+2
|
* (Ftext_property_not_all): Fix typo in decl.Richard M. Stallman1993-07-211-1/+1
|
* * textprop.c (Ftext_property_any, Ftext_property_all): NewJim Blandy1993-07-181-0/+1
| | | | | functions, from David Gillespie. * intervals.h (Ftext_property_any, Ftext_property_all): Declare them.
* * textprop.c (copy_text_properties): New function, from DavidJim Blandy1993-07-061-0/+1
| | | | | | | | | Gillespie. * intervals.h: Declare copy_text_properties. * fns.c: #include "intervals.h". (Fsubstring): Copy text properties to result string. (concat): Copy text properties to result string. * ymakefile (fns.o): Note that this depends on INTERVAL_SRC.
* (INTERVAL_WRITABLE_P): Fix backwards tests.Richard M. Stallman1993-06-081-6/+7
|
* (INTERVAL_VISIBLE_P): Use textget.Richard M. Stallman1993-06-071-2/+6
| | | | | (INTERVAL_WRITABLE_P): Use textget. Check Vinhibit_read_only.
* Updated copyright years.Jim Blandy1993-05-221-1/+1
|
* Declare Qcategory, Qlocal_map. Declare textget, get_local_map.Richard M. Stallman1993-03-071-1/+5
|
* Don't include dispextern.h more than once.Richard M. Stallman1993-03-011-1/+3
| | | | (INTERVAL_VISIBLE_P): NILP test was backwards.
* * intervals.h: Declare `copy_intervals()'.Joseph Arceneaux1992-10-031-3/+6
|
* * intervals.h: Declare temp_set_point.Joseph Arceneaux1992-10-011-6/+6
|
* See ChangeLogJoseph Arceneaux1992-09-241-6/+0
|
* entered into RCSJoseph Arceneaux1992-09-191-0/+214