1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-10 13:40:36 -08:00
Commit graph

12309 commits

Author SHA1 Message Date
Gerd Moellmann
02bb17d31c Remove everything having to do with the use of mmap. 2000-09-14 15:14:28 +00:00
Gerd Moellmann
39c75ccb52 (BUFFER_ALLOC, BUFFER_REALLOC, BUFFER_FREE): Removed.
(enlarge_buffer_text): Add prototype.
2000-09-14 15:14:15 +00:00
Gerd Moellmann
b86af064c5 Move allocation with mmap here, from ralloc.c. Change
conditional compilation on REL_ALLOC_MMAP to USE_MMAP_FOR_BUFFERS.
(mmap_alloc, mmap_free, mmap_realloc) [REL_ALLOC_MMAP]: Renamed
from former r_alloc_* functions in ralloc.c.
(mmap_page_size, mmap_initialized_p) [REL_ALLOC_MMAP]: New
variables.
(MEM_ALIGN) [REL_ALLOC_MMAP]: New macro.
(mmap_init) [REL_ALLOC_MMAP]: New function.
(alloc_buffer_text, enlarge_buffer_text, free_buffer_text): New
functions replacing macros BUFFER_ALLOC, BUFFER_REALLOC, and
BUFFER_FREE.
2000-09-14 15:14:02 +00:00
Gerd Moellmann
71a7bfa7ee (make_gap): Use enlarge_buffer_text. 2000-09-14 15:13:29 +00:00
Gerd Moellmann
a74c5ec1a4 Change conditional compilation on REL_ALLOC_MMAP to
USE_MMAP_FOR_BUFFERS.
2000-09-14 15:13:18 +00:00
Gerd Moellmann
95f784a935 (mallocobj) [SYSTEM_MALLOC]: Don't add ralloc.o. 2000-09-14 15:13:02 +00:00
Gerd Moellmann
67cdbf1682 (USE_MMAP_FOR_BUFFERS): Define instead of REL_ALLOC_MMAP. 2000-09-14 15:12:48 +00:00
Gerd Moellmann
2a494b2d89 (Fplay_sound): Doc fix. 2000-09-13 18:23:03 +00:00
Gerd Moellmann
8c907a5633 Avoid some more compiler warnings.
(parse_tool_bar_item): Ignore cached key bindings.
2000-09-13 11:18:03 +00:00
Gerd Moellmann
f860896845 Add some comments about DOUG_LEA_MALLOC's use of mmap
and allocation of Lisp data.
2000-09-13 09:19:05 +00:00
Gerd Moellmann
d12d0a9b79 Remove conditional compilation on SCALABLE_FONTS.
(Finternal_set_lisp_face_attribute): If frame is 0, set new frame
defaults first.
2000-09-12 14:19:54 +00:00
Gerd Moellmann
6ab70e9a61 *** empty log message *** 2000-09-12 10:59:03 +00:00
Gerd Moellmann
6a69efd78e (Fload): Put code checking for recursive loads in #if 0. 2000-09-12 10:58:42 +00:00
Kenichi Handa
54fa5bc13a Comment fixed.
(MAX_MAP_SET_LEVEL): Increased to 30.
(PUSH_MAPPING_STACK): Enclose with do-while block.
(POP_MAPPING_STACK): Likewise.
(stack_idx_of_map_multiple): New variable.
(CCL_CALL_FOR_MAP_INSTRUCTION): New macro.
(ccl_driver) <CCL_IterateMultipleMap>: If the content is a symbol,
call the corresponding CCL program by
CCL_CALL_FOR_MAP_INSTRUCTION.
(ccl_driver) <CCL_MapSingle>: Likewise.
(ccl_driver) <CCL_MapMultiple>: Rewritten to fix many bugs, deal
with the case where looking up process reaches to the end of
map-set, and call CCL programs as the above change.
2000-09-12 02:30:13 +00:00
Kenichi Handa
63c36c3c74 *** empty log message *** 2000-09-12 02:29:12 +00:00
Gerd Moellmann
8ec8a5ec9e (png_load, jpeg_load): Declare some variables volatile
that might be clobbered by longjmp.
(check_x_display_info, x_decode_color, create_frame_xic)
(Fx_display_backing_store, Fx_display_visual_class)
(x_build_heuristic_mask, pbm_scan_number): Avoid compiler
warnings.
2000-09-11 19:54:11 +00:00
Gerd Moellmann
f74b07059d (init_lread): Set Vloads_in_progress to nil.
(Fload): Show list of recursively loaded files, when signaling an
error.
2000-09-11 13:01:38 +00:00
Gerd Moellmann
7ee3bd7bf8 (Vloads_in_progress): New variable.
(record_load_unwind): New function.
(Fload): Check for recursive loads.
(syms_of_lread): Initialize Vloads_in_progress.
(read_integer, read1): Avoid some compiler warnings.
2000-09-11 12:52:59 +00:00
Gerd Moellmann
093386ca6c (concat, Fsubstring, internal_equal, Fnconc): Avoid some
compiler warnings.
2000-09-11 12:51:13 +00:00
Miles Bader
974e1e5b2a (Fbuffer_string): Doc fix. 2000-09-11 10:48:34 +00:00
Gerd Moellmann
9824c4e39e (mmap_enlarge): Don't return 0 if successful. 2000-09-10 11:19:00 +00:00
Ken Raeburn
6a72fdd12e s/netbsd.h: NO_C_SOURCE->NOT_C_CODE 2000-09-10 01:12:09 +00:00
Gerd Moellmann
28e6fb6637 (CYCLE_CHECK): Don't use the Lisp_Object returned
by Fmemq in a condition.
2000-09-09 13:14:56 +00:00
Stefan Monnier
7f8b6551de *** empty log message *** 2000-09-09 00:50:26 +00:00
Stefan Monnier
cec33c9095 (Finternal_set_lisp_face_attribute): Minor thinko. 2000-09-09 00:18:25 +00:00
Dave Love
460dc922d8 (internal-merge-in-global-face): Fix newline in doc string. 2000-09-08 22:17:17 +00:00
Gerd Moellmann
d1a0288150 (mmap_fd): Remove initializer which can make it
read-only in a dumped Emacs.
(mmap_fd_1): New variable.
(mmap_set_vars): Remove local `fd'.  Save mmap_fd in mmap_fd_1,
restore it from there.
(r_alloc, r_re_alloc, r_alloc_free): Call r_alloc_init
unconditionally so that mmap_fd can be initialized there.
(r_alloc_init_fd): Open-coded in r_alloc_init; function removed.
(r_alloc_init) [REL_ALLOC_MMAP && !MAP_ANON]: Open /dev/zero.
(r_alloc_init) [REL_ALLOC_MMAP && MAP_ANON]: Set mmap_fd to -1.
2000-09-08 19:52:57 +00:00
Dave Love
d93c318653 (r_alloc_init_fd): Move. Fix conditional for pcc. 2000-09-08 16:31:11 +00:00
Dave Love
5ad25b24df (r_alloc_init): Conditionalize on SYSTEM_MALLOC, not REL_ALLOC_MMAP. 2000-09-08 16:03:04 +00:00
Gerd Moellmann
c454aac192 *** empty log message *** 2000-09-08 14:20:44 +00:00
Gerd Moellmann
334a2e2a82 (Finternal_merge_in_global_face): Return a Lisp object. 2000-09-08 14:19:31 +00:00
Gerd Moellmann
ae26e27d7d (dump_glyph_row): Fix printf format string.
(display_line, move_it_in_display_line_to): Avoid compiler
warnings.
2000-09-08 14:19:11 +00:00
Dave Love
423193c552 (r_alloc_init_fd): Conditionalize on MAP_ANON. 2000-09-08 14:10:31 +00:00
Dave Love
0460aa783e (REL_ALLOC_MMAP): Define. 2000-09-08 13:57:04 +00:00
Gerd Moellmann
fc653ef2d8 (GC_MARK_STACK, REL_ALLOC_MMAP): Define. 2000-09-08 13:56:53 +00:00
Dave Love
326cdd749d Mention REL_ALLOC_MMAP. 2000-09-08 13:49:15 +00:00
Dave Love
a2c23c923a Don't include string.h (redundant).
(MAP_ANON) [REL_ALLOC_MMAP]: Ensure it's defined.
[!MAP_ANON]: Include fcntl.h.
(mmap_fd) [REL_ALLOC_MMAP]: New variable.
(r_alloc, r_re_alloc, r_alloc_free)
(mmap_enlarge, mmap_set_vars): Use it.
(r_alloc_init_fd): New function.
(__morecore) [SYSTEM_MALLOC]: Don't declare.
(r_alloc_init): Call r_alloc_init_fd.  Conditionalize stuff on
malloc type.
2000-09-08 13:46:27 +00:00
Gerd Moellmann
3015eec0e8 (Fset_keymap_parent): Check for cycles in keymap
inheritance.
2000-09-08 13:30:21 +00:00
Dave Love
018fc00072 (allocaobj) [!SYSTEM_MALLOC && REL_ALLOC_MMAP]:
Remove vm-limit.o.
2000-09-08 13:14:07 +00:00
Gerd Moellmann
bfe0ee8830 (try_window_id): When trying to locate cursor in
unchanged rows at the top, handle the case that we can't find it.
2000-09-08 09:50:33 +00:00
Gerd Moellmann
a8710abfaf (x_draw_glyphs): Handle case START and END are out
of bounds more carefully.
2000-09-08 09:35:57 +00:00
Dave Love
6b7d4ae4d1 (SHT_MIPS_DEBUG, HDRR) [__mips__]: Really confine last change to __NetBSD__. 2000-09-08 09:25:16 +00:00
Kenichi Handa
cf69b13e05 (compile_pattern): Check the multibyteness of cached
string and PATTERN.
2000-09-08 00:46:53 +00:00
Kenichi Handa
44d3198180 *** empty log message *** 2000-09-08 00:46:24 +00:00
Miles Bader
aad407371f (default_face_vector): Function removed.
(Finternal_merge_in_global_face): Restore old global/local
attribute override order.  Use inline loop instead of calling
default_face_vector.
2000-09-08 00:10:48 +00:00
Gerd Moellmann
91a211b50d (obtain, relinquish, relinquish, r_alloc_size_in_use)
(get_bloc, relocate_blocs, update_heap_bloc_correspondence)
(resize_bloc, r_alloc_sbrk, r_alloc_init): Add casts to `char *'
where necessary, in case POINTER_TYPE is `void'.
2000-09-07 19:24:42 +00:00
Eli Zaretskii
0341944076 *** empty log message *** 2000-09-07 17:16:08 +00:00
Eli Zaretskii
65606f5ea1 (make_terminal_frame): Initialize frame foreground and
background colors to unspecified, for the initial instance of an
MSDOS frame.
2000-09-07 17:12:48 +00:00
Gerd Moellmann
24f76fbf71 (mmap_find): Fix overlap computation.
(mmap_enlarge): Compute nbytes before trying to find an
overlapping region.
2000-09-07 16:10:38 +00:00
Gerd Moellmann
f46f845b3f *** empty log message *** 2000-09-07 14:43:12 +00:00