aboutsummaryrefslogtreecommitdiffstats
path: root/src/alloc.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* * alloc.c (Fmake_symbol): Set symbol xname field instead of name.Ken Raeburn2002-05-201-6/+6
| | | | | (mark_object, gc_sweep): Use symbol xname field and XSTRING instead of name field.
* Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,Andrew Choi2002-04-261-1/+1
| | | | lisp/ChangeLog, and src/ChangeLog for list of changes.
* (check_pure_size): Update the comment.Stefan Monnier2002-03-251-1/+1
|
* (check_pure_size): Only output a warning.Stefan Monnier2002-03-221-2/+2
|
* (mark_kboards): Mark echo_string.Gerd Moellmann2002-03-061-0/+1
|
* Change defvar_int def and vars to use EMACS_INT instead of just int.Stefan Monnier2002-03-041-12/+12
|
* Remove unwanted changes.Andreas Schwab2002-02-151-12/+12
|
* (NSTATICS): Increase to 1280.Andreas Schwab2002-02-151-13/+13
|
* (Vx_alt_keysym, Vx_hyper_keysym, Vx_meta_keysym)Kai Großjohann2002-02-151-1/+1
| | | | | | | | (Vx_super_keysym): New variables. (syms_of_xterm): DEFVAR_LISP them. (x_x_to_emacs_modifiers, x_emacs_to_x_modifiers): Use the variables to determine which keys to use for the various modifiers.
* (SETJMP_WILL_LIKELY_WORK, SETJMP_WILL_NOT_WORK):Kim F. Storm2002-02-081-2/+2
| | | | Changed mail addresses to emacs-devel@gnu.org.
* Fix thinko in last change.Andreas Schwab2002-02-071-1/+1
|
* (mark_stack): Don't assume sizeof (Lisp_Object) is 4.Andreas Schwab2002-02-071-11/+6
|
* Comment change.Richard M. Stallman2002-01-271-0/+4
|
* Add a comment.Gerd Moellmann2001-12-291-0/+11
|
* (pure_alloc): After overflow, allocate just a small block.Richard M. Stallman2001-12-161-2/+5
|
* (inhibit_garbage_collection): Don't exceed value an int can hold.Andreas Schwab2001-12-071-1/+3
|
* (Fgarbage_collect): Shrink buffer gaps that areAndrew Innes2001-12-051-1/+19
| | | | excessively large.
* (Flist): Reindent.Pavel Janík2001-11-131-2/+2
| | | | (Fvector): Likewise.
* Update usage of CHECK_ macros (remove unused second argument).Pavel Janík2001-11-021-8/+8
|
* (Fmake_byte_code, Fvector, Flist): Add usage: string to doc string.Miles Bader2001-10-211-5/+8
|
* Reindent DEFUNs with doc: keywords.Pavel Janík2001-10-211-28/+28
|
* Change doc-string comments to `new style' [w/`doc:' keyword].Miles Bader2001-10-171-76/+75
|
* Avoid (most) uses of XCAR/XCDR as lvalues, for flexibility in experimentingKen Raeburn2001-10-161-8/+11
| | | | with lisp system changes.
* Put doc strings in comments.Gerd Moellmann2001-10-141-110/+113
|
* (mark_interval_tree): Use traverse_intervals_noorder.Stefan Monnier2001-10-121-1/+1
|
* Don't define min/max.Gerd Moellmann2001-10-081-3/+0
|
* (inhibit_garbage_collection): Simplify.Gerd Moellmann2001-10-061-23/+9
| | | | (Fmemory_use_counts): Ditto.
* (purebeg, pure_size, pure_bytes_used_before_overflow):Gerd Moellmann2001-10-051-19/+63
| | | | | | | | | | | | | | | | New variables. (init_alloc_once): Initialize new variables. (PURE_POINTER_P): Use new variables. (pure_alloc): If pure storage overflows, allocate from the heap. (check_pure_size): New function. (Fgarbage_collect): Don't GC if pure storage has overflowed. (Vpost_gc_hook, Qpost_gc_hook): New variables. (syms_of_alloc): DEFVAR_LISP post-gc-hook, initialize Qpost_gc_hook. (Fgarbage_collect): Run post-gc-hook. (Fmake_symbol): Adapt to changes of struct Lisp_Symbol.
* Fix a typo in a comment. From Pavel Janik.Eli Zaretskii2001-09-151-1/+1
|
* allocate_buffer): Call VALIDATE_LISP_STORAGE.Gerd Moellmann2001-09-101-2/+5
|
* Remove init_stack static declaration.Gerd Moellmann2001-08-061-1/+0
|
* (live_string_p, live_cons_p, live_symbol_p)Gerd Moellmann2001-03-291-5/+10
| | | | | (live_float_p, live_misc_p): Return 1 only if the offset of the pointer in its block is >= 0.
* (mark_maybe_pointer): Fix a typo in a comment.Eli Zaretskii2001-03-021-1/+1
|
* (toplevel): Include process.h.Gerd Moellmann2001-02-281-9/+252
| | | | | | | | | | | | | | | | | (enum mem_type): Add MEM_TYPE_PROCESS, MEM_TYPE_HASH_TABLE, MEM_TYPE_FRAME, MEM_TYPE_WINDOW enumerators. (allocate_vectorlike): Make it a static function. Add parameter TYPE. (allocate_vector, allocate_hash_table, allocate_window) (allocate_frame, allocate_process, allocate_other_vector): New functions. (Fmake_vector): Call allocate_vector instead of allocate_vectorlike. (mark_maybe_pointer): New function. (mark_memory): Also mark Lisp data to which only pointers remain and not Lisp_Objects. (min_heap_address, max_heap_address): New variables. (mem_find): Return MEM_NIL if START is below min_heap_address or above max_heap_address. (mem_insert): Compute min_heap_address and max_heap_address.
* (Fmake_list): Add a QUIT in the loop; unroll the loop.Gerd Moellmann2001-01-311-2/+32
|
* * alloc.c (allocate_string) [macintosh]: Call check_string_bytesAndrew Choi2001-01-281-1/+5
| | | | | | | | | | | | | | | | | | | | only if current_sblock has been initialized. * frame.c (Fdelete_frame) [macintosh]: Allow deletion of initial terminal frame even if it is the only visible frame. * src/macfns.c (QCconversion): Replaces QCalgorithm. * src/macfns.c (image_ascent, lookup_image): Adapt to change of image margins. * src/macterm.c (x_produce_image_glyph, x_draw_image_foreground) (x_draw_image_relief, x_draw_image_foreground_1) (x_draw_image_glyph_string): Adapt to change of image margins. * src/macterm.c (mac_to_x_fontname): Change charset name of Simplify Chinese fonts from gb2312 to gb2312.1980 and Korean fonts from ksc5601 to ksc5601.1989.
* (CHECK_STRING_BYTES) [GC_CHECK_STRING_BYTES]: New macro.Gerd Moellmann2001-01-091-50/+88
| | | | | | | | | | | (check_sblock, string_bytes) [GC_CHECK_STRING_BYTES]: New functions. (check_string_bytes) [GC_CHECK_STRING_BYTES]: Add parameter ALL_P. (allocate_string) [GC_CHECK_STRING_BYTES]: Always check strings in the current sblock. (mark_object) [GC_CHECK_STRING_BYTES]: Use CHECK_STRING_BYTES. (gc_sweep) [GC_CHECK_STRING_BYTES]: Call check_string_bytes after sweeping strings, and at the end. (GC_CHECK_STRING_BYTES): Moved to lisp.h.
* (Fgarbage_collect): Use a record_unwind_protect toGerd Moellmann2001-01-091-2/+4
| | | | ensure that pop_message is called.
* (gc_sweep): Add comment.Stefan Monnier2000-12-071-0/+3
|
* (gc_sweep): Prevent symbols read during loadupGerd Moellmann2000-12-061-17/+24
| | | | from being freed.
* (Fgarbage_collect): Dox fix. Return a list asGerd Moellmann2000-12-061-8/+8
| | | | advertized by the function documentation.
* (Fmake_string): Use MAX_MULTIBYTE_LENGTH, instead of hard coded `4'.Kenichi Handa2000-11-231-1/+1
|
* (mark_object) <frame>: Mark tool bar items differently.Gerd Moellmann2000-11-221-2/+1
|
* (make_string): Fix previous change. Be sure to makeKenichi Handa2000-11-201-3/+3
| | | | unibyte string correctly.
* (emacs_blocked_free) [GC_MALLOC_CHECK]: Handle freeingGerd Moellmann2000-10-231-15/+16
| | | | null.
* (toplevel): Conditionalize compilation of mem_*Gerd Moellmann2000-10-201-1/+6
| | | | functions differently.
* Move #ifdef GC_MARK_STACK back above mem_init where it used to be. mem_z etc ↵Jason Rumney2000-10-201-2/+1
| | | | | | not defined otherwise.
* (toplevel) [SYSTEM_MALLOC || DOUG_LEA_MALLOC]: UndefGerd Moellmann2000-10-201-64/+177
| | | | | | | | | | | | | | | | | GC_MALLOC_CHECK. (toplevel) [GC_MARK_STACK || GC_MALLOC_CHECK]: Move mem_node structure definition and related variabled to the top of the file. Include this code when GC_MALLOC_CHECK is defined. (lisp_malloc, lisp_free) [GC_MALLOC_CHECK]: Don't register/unregister allocated region. (emacs_blocked_free) [GC_MALLOC_CHECK]: Check if freeing something which isn't allocated. (emacs_blocked_malloc) [GC_MALLOC_CHECK]: Check if returning something which is already in use. (emacs_blocked_realloc) [GC_MALLOC_CHECK]: Likewise. (mem_insert) [GC_MALLOC_CHECK]: Use _malloc_internal. (mem_delete) [GC_MALLOC_CHECK]: Use _free_internal. (init_alloc_once) [GC_MALLOC_CHECK]: Call mem_init.
* (allocate_string) [GC_CHECK_STRING_BYTES]: CallGerd Moellmann2000-10-181-1/+1
| | | | check_string_bytes only if not noninteractive, increase count to 50.
* (pure_bytes_used): Renamed from pureptr.Gerd Moellmann2000-10-171-75/+78
| | | | | | | | (ALIGN): New macro. (pure_alloc): New function. (make_pure_string, pure_cons, make_pure_float, make_pure_vector): Use it. (Fpurecopy): Use PURE_POINTER_P.