comparison src/Makefile.in.in @ 5168:cf900a2f1fa3

extract gap array from extents.c, use in range tables -------------------- ChangeLog entries follow: -------------------- src/ChangeLog addition: 2010-03-22 Ben Wing <ben@xemacs.org> * Makefile.in.in (objs): * array.c: * array.c (gap_array_adjust_markers): * array.c (gap_array_move_gap): * array.c (gap_array_make_gap): * array.c (gap_array_insert_els): * array.c (gap_array_delete_els): * array.c (gap_array_make_marker): * array.c (gap_array_delete_marker): * array.c (gap_array_delete_all_markers): * array.c (gap_array_clone): * array.h: * depend: * emacs.c (main_1): * extents.c: * extents.c (EXTENT_GAP_ARRAY_AT): * extents.c (extent_list_num_els): * extents.c (extent_list_locate): * extents.c (extent_list_at): * extents.c (extent_list_delete_all): * extents.c (allocate_extent_list): * extents.c (syms_of_extents): * extents.h: * extents.h (XEXTENT_LIST_MARKER): * lisp.h: * rangetab.c: * rangetab.c (mark_range_table): * rangetab.c (print_range_table): * rangetab.c (range_table_equal): * rangetab.c (range_table_hash): * rangetab.c (verify_range_table): * rangetab.c (get_range_table_pos): * rangetab.c (Fmake_range_table): * rangetab.c (Fcopy_range_table): * rangetab.c (Fget_range_table): * rangetab.c (put_range_table): * rangetab.c (Fclear_range_table): * rangetab.c (Fmap_range_table): * rangetab.c (unified_range_table_bytes_needed): * rangetab.c (unified_range_table_copy_data): * rangetab.c (unified_range_table_lookup): * rangetab.h: * rangetab.h (struct range_table_entry): * rangetab.h (struct Lisp_Range_Table): * rangetab.h (rangetab_gap_array_at): * symsinit.h: Rename dynarr.c to array.c. Move gap array from extents.c to array.c. Extract dynarr, gap array and stack-like malloc into new file array.h. Rename GAP_ARRAY_NUM_ELS -> gap_array_length(). Add gap_array_at(), gap_array_atp(). Rewrite range table code to use gap arrays. Make put_range_table() smarter so that its operation is O(log n) for adding a localized range. * gc.c (lispdesc_block_size_1): Don't ABORT() when two elements are located at the same place. This will happen with a size-0 gap array -- both parts of the array (before and after gap) are in the same place.
author Ben Wing <ben@xemacs.org>
date Mon, 22 Mar 2010 19:12:15 -0500
parents ed624ab64583
children 97eb4942aec8
comparison
equal deleted inserted replaced
5167:e374ea766cc1 5168:cf900a2f1fa3
272 272
273 ## NOTE: The last line cannot be all macros, because make will barf 273 ## NOTE: The last line cannot be all macros, because make will barf
274 ## if they all come out null. 274 ## if they all come out null.
275 275
276 objs=\ 276 objs=\
277 abbrev.o alloc.o alloca.o \ 277 abbrev.o alloc.o alloca.o array.o \
278 $(balloon_help_objs) blocktype.o buffer.o bytecode.o \ 278 $(balloon_help_objs) blocktype.o buffer.o bytecode.o \
279 callint.o casefiddle.o casetab.o chartab.o \ 279 callint.o casefiddle.o casetab.o chartab.o \
280 $(clash_detection_objs) cmdloop.o cmds.o $(coding_system_objs) console.o \ 280 $(clash_detection_objs) cmdloop.o cmds.o $(coding_system_objs) console.o \
281 console-stream.o\ 281 console-stream.o\
282 data.o $(database_objs) $(debug_objs) device.o dired.o doc.o doprnt.o\ 282 data.o $(database_objs) $(debug_objs) device.o dired.o doc.o doprnt.o\
283 dynarr.o \
284 editfns.o elhash.o emacs.o emodules.o eval.o events.o\ 283 editfns.o elhash.o emacs.o emodules.o eval.o events.o\
285 event-stream.o $(event_unixoid_objs) $(extra_objs) extents.o\ 284 event-stream.o $(event_unixoid_objs) $(extra_objs) extents.o\
286 faces.o file-coding.o fileio.o $(LOCK_OBJ) filemode.o floatfns.o fns.o \ 285 faces.o file-coding.o fileio.o $(LOCK_OBJ) filemode.o floatfns.o fns.o \
287 font-lock.o frame.o\ 286 font-lock.o frame.o\
288 gc.o general.o glyphs.o $(glyphs_objs) glyphs-widget.o \ 287 gc.o general.o glyphs.o $(glyphs_objs) glyphs-widget.o \