1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-05-01 04:10:18 +02:00
Commit graph

3667 commits

Author SHA1 Message Date
Gary Houston
3553e1d1f0 * inline.h (scm_double_cell): prevent reordering of statements
with any following code (for GCC 3 strict-aliasing).
	* numbers.c (scm_make_real), num2float.i.c (FLOAT2NUM): removed
	the earlier version of the reordering prevention.
2002-09-24 22:21:01 +00:00
Han-Wen Nienhuys
4ad0814a57 (scm_double_cell): move SET_GCMARK set out of if body. 2002-09-19 11:14:46 +00:00
Han-Wen Nienhuys
e88e4f2ef3 (scm_gc_register_collectable_memory): more overflow
protection.
2002-09-09 14:09:35 +00:00
Han-Wen Nienhuys
1e71eafb34 * inline.h: include stdio.h
* smob.c (free_print): abort if scm_debug_cell_accesses_p is set
2002-09-08 11:31:32 +00:00
Han-Wen Nienhuys
dac04e9fb9 * gc-segment.c (scm_i_make_initial_segment): check user settings
for sanity.

* gc-malloc.c (scm_gc_init_malloc): check user settings for
sanity.
(scm_gc_register_collectable_memory): prevent overflow of memory
counts.

* gc-freelist.c (scm_init_freelist): check user settings for sanity.

* gc-malloc.c (scm_gc_register_collectable_memory): use floats;
these won't ever wrap around with high memory usage.

* gc-freelist.c: include <stdio.h>

* gc-malloc.c: add DEBUGINFO for mtrigger GCs.
2002-09-05 21:55:33 +00:00
Han-Wen Nienhuys
ffd724008b * struct.h: change scm_structs_to_free to scm_i_structs_to_free
* gc-malloc.c (scm_gc_register_collectable_memory): use floats;
these won't ever wrap around with high memory usage.

* gc-malloc.c: add DEBUGINFO for mtrigger GCs.
2002-09-05 21:12:21 +00:00
Han-Wen Nienhuys
5bd4a949e8 include <stdio.h> 2002-09-05 20:47:35 +00:00
Han-Wen Nienhuys
61ef9c1fa3 add DEBUGINFO for mtrigger GCs. 2002-09-05 20:43:43 +00:00
Marius Vollmer
a27e3d1463 *** empty log message *** 2002-09-01 16:29:35 +00:00
Marius Vollmer
1f1270b96d (SCM_VECTOR_REF): New. 2002-09-01 16:29:06 +00:00
Marius Vollmer
ffd0ef3b7f *** empty log message *** 2002-09-01 16:20:02 +00:00
Marius Vollmer
5527702a65 (SCM_DEFINE_PUBLIC): New. 2002-09-01 16:19:18 +00:00
Marius Vollmer
f8a1712b11 *** empty log message *** 2002-08-30 21:57:38 +00:00
Marius Vollmer
aca23b65b4 (scm_addr_vector): Added size of address to arguments. Use it to
avoid accessing a non-existent path in a sockaddr_un.  Changed all
callers.
2002-08-30 21:57:10 +00:00
Han-Wen Nienhuys
1383773ba1 * gc.h: remove DOUBLECELL card flags.
* gc-malloc.c (scm_calloc): try to use calloc() before calling
scm_realloc().

* gc-segment.c (scm_i_initialize_heap_segment_data): remove card
init loop; handle this from scm_init_card_freelist()

* gc-card.c (scm_init_card_freelist): init bit vector here.
2002-08-28 23:13:30 +00:00
Han-Wen Nienhuys
8fa5786d7c (scm_make_real): prevent reordering of statements
num2float.i.c (FLOAT2NUM): idem
2002-08-28 22:50:32 +00:00
Han-Wen Nienhuys
7200a36b83 (scm_make_real): prevent reordering of statements 2002-08-28 22:45:48 +00:00
Han-Wen Nienhuys
9981de3a2b prepend libguile/ to include path 2002-08-27 10:58:01 +00:00
Marius Vollmer
1964755626 *** empty log message *** 2002-08-26 21:46:43 +00:00
Marius Vollmer
e62b37a0a3 (scm_compile_shell_switches): Added "2002" to Copyright years. Thanks
to Martin Grabmüller!
2002-08-26 21:46:22 +00:00
Han-Wen Nienhuys
38d1262ab5 (scm_i_get_new_heap_segment): use float in stead of
unsigned numbers for computing minimum heap increment. This
prevents weird results when a a negative minimum increment is computed.
2002-08-25 15:26:14 +00:00
Marius Vollmer
f800ebfb00 *** empty log message *** 2002-08-24 00:57:47 +00:00
Marius Vollmer
8cbb63c795 When we have __libc_stack_end, use that directly instead the old
tricks.
2002-08-24 00:57:14 +00:00
Marius Vollmer
34690e5338 Do not expect the input file to be the first argument after the
optional "-o" option, just pass everything to the pre-processor
without extracting the input file name.
2002-08-24 00:53:44 +00:00
Han-Wen Nienhuys
4a5309c938 (scm_i_get_new_heap_segment): Oops. We want segment
length *at* least SCM_MIN_HEAP_SEG_SIZE, not at most.
2002-08-23 00:05:58 +00:00
Gary Houston
917adc55ac *** empty log message *** 2002-08-22 18:20:36 +00:00
Han-Wen Nienhuys
f2893a253e make scm_cells_allocated unsigned again. Thanks to
Bill Schottstaedt for the bug report
2002-08-21 22:40:03 +00:00
Marius Vollmer
483f518bd4 *** empty log message *** 2002-08-19 23:25:33 +00:00
Marius Vollmer
3c568abbe3 Updated copyright years. 2002-08-19 23:23:23 +00:00
Marius Vollmer
f76af603e1 (scm_iprin1): Print primitives generics always as "primitive-generic"
even when they have no primitive methods yet.
2002-08-19 23:22:42 +00:00
Gary Houston
d900cd6dd4 * coop.c (coop_create): removed bogus 2nd argument in scm_malloc
call.
2002-08-17 20:39:35 +00:00
Han-Wen Nienhuys
85835e5991 * ports.c (scm_add_to_port_table): small bugfix.
* ports.c (scm_add_to_port_table): add backwards compatibility
function
2002-08-16 22:07:26 +00:00
Han-Wen Nienhuys
67329a9eef * mallocs.c (scm_malloc_obj): use scm_gc_malloc in stead of
malloc.

* gc-segment.c (scm_i_get_new_heap_segment): remove cluster cruft:
only use SCM_MIN_HEAP_SEG_SIZE.

* ports.c (scm_add_to_port_table): add backwards compatibility
function

* ports.h: use scm_i_ prefix for port table and port table size.
2002-08-16 22:01:10 +00:00
Mikael Djurfeldt
f07c886abb * vports.c (scm_make_soft_port): Initialize pt variable. 2002-08-15 21:17:21 +00:00
Marius Vollmer
dc61cbc6cd *** empty log message *** 2002-08-13 20:54:36 +00:00
Marius Vollmer
209b52fecd * strports.h (scm_c_eval_string_in_module,
scm_eval_string_in_module): New prototypes.
* strports.c (scm_eval_string_in_module): New, but use
"eval-string" as the Scheme name and make second parameter
optional.
(scm_eval_string): Implement using scm_eval_string_in_module.
(scm_c_eval_string_in_module): New.
Thanks to Ralf Mattes for the suggestion!
2002-08-13 20:54:12 +00:00
Han-Wen Nienhuys
be3ff02158 * gc-card.c ("sweep_card"): remove SCM_MISC_ERROR messages: print
message and abort.

* gc-mark.c ("scm_gc_mark_dependencies"): idem.
2002-08-08 23:18:23 +00:00
Han-Wen Nienhuys
da220f2794 ("scm_new_port_table_entry"): return a boxed SCM in
stead of scm_t_port*. The function now takes a tag argument.
2002-08-08 23:02:28 +00:00
Han-Wen Nienhuys
eab1b25970 * gc.h: add scm_debug_cells_gc_interval to public interface
* gc-card.c ("sweep_card"): set scm_gc_running while sweeping.

* gc.c (scm_i_expensive_validation_check): separate expensive
validation checks from cheap ones.
2002-08-08 19:47:31 +00:00
Han-Wen Nienhuys
0f8ae50a81 (scm_input_error): new function: give meaningful error
messages, and throw read-error
2002-08-05 23:11:59 +00:00
Han-Wen Nienhuys
ba1b222692 * tests/reader.test: change misc-error in read-error.
* read.c (scm_input_error): new function: give meaningful error
messages, and throw read-error

* gc-malloc.c (scm_calloc): add scm_calloc.

* scheme-memory.texi (Memory Blocks): add scm_calloc, scm_gc_calloc.
correct typos.
2002-08-05 23:04:44 +00:00
Han-Wen Nienhuys
33138b0567 remove GC bits documentation from the tags table. 2002-08-05 17:46:34 +00:00
Han-Wen Nienhuys
39e8f371e2 (INPUT_ERROR): Prepare for file:line:column error
messages for errors in scm_lreadr() and friends.
2002-08-04 23:33:28 +00:00
Han-Wen Nienhuys
5f16b8973e init port entry 2002-08-04 16:10:19 +00:00
Han-Wen Nienhuys
402788a938 port GC fix 2002-08-04 15:25:07 +00:00
Han-Wen Nienhuys
c2cbcc5768 gc statistic tweaks 2002-08-04 14:09:14 +00:00
Han-Wen Nienhuys
c7743d027a more code 2002-08-04 00:18:33 +00:00
Han-Wen Nienhuys
c8a1bdc460 new gc 2002-08-04 00:17:18 +00:00
Marius Vollmer
aea06b34a5 *** empty log message *** 2002-07-25 12:12:33 +00:00
Marius Vollmer
dfd71abaf0 (rstate_free): Return zero. 2002-07-25 12:12:21 +00:00