Marius Vollmer
86d31dfe7d
Merge from mvo-vcell-cleanup-1-branch.
2001-05-15 14:57:22 +00:00
Dirk Herrmann
7a7f7c5314
* Made creation of new smob types thread safe.
...
* Minor cleanups to smob usage.
2001-04-21 21:50:08 +00:00
Dirk Herrmann
726d810a75
* Fixed scm_thunk_p's results when applied to closures.
...
* Extracted macro printing code from print.c to macros.c.
* Minor cleanups.
2001-04-19 14:46:01 +00:00
Dirk Herrmann
22a52da14d
* Replaced a lot of calls to SCM_C[AD]R with more appropriate macros.
...
* Minor cleanups to hashtable implementation.
* Minor code beautifications.
2001-03-30 15:03:23 +00:00
Martin Grabmüller
5352393c55
* list.c (scm_list, scm_cons_star, scm_null_p, scm_list_p),
...
(scm_length, scm_append, scm_reverse, scm_list_ref),
(scm_memq, scm_memv, scm_member, scm_delv_x, scm_delete_x),
(scm_delq, scm_delv, scm_delete, scm_delq1_x, scm_delv1_x),
(scm_delete1_x), gc.c (scm_map_free_list),
(scm_free_list_length), hash.c (scm_hashq, scm_hashv),
(scm_hash), hashtab.c (scm_hashq_ref, scm_hashq_set_x),
(scm_hashq_remove_x, scm_hashv_ref, scm_hashv_set_x),
(scm_hashv_remove_x, scm_hash_ref, scm_hash_set_x),
(scm_hash_remove_x), ports.c (scm_pt_size, scm_pt_member), print.c
(scm_current_pstate), scmsigs.c (scm_usleep), goops.c
(scm_get_keyword, scm_sys_compute_slots): Added texinfo markup.
* weaks.c (scm_weak_vector_p, scm_weak_key_hash_table_p),
(scm_weak_value_hash_table_p, scm_doubly_weak_hash_table_p),
rdelim.c (scm_read_delimited_x), strop.c (scm_string_index),
symbols.c (scm_symbol_interned_p), numbers.c
(scm_string_to_number), ports.c (scm_port_p): Corrected texinfo
markup.
2001-03-16 10:00:17 +00:00
Mikael Djurfeldt
e6e2e95aa5
* _scm.h: Removed #include <errno.h>.
...
* error.c, net_db.c, putenv.c, stime.c: Removed declaration of
errno variable (can be a macro on some systems, for example when
using linux libc with threads).
* error.c, filesys.c, gc.c, ioext.c, iselect.c, net_db.c, ports.c,
posix.c, print.c, putenv.c, scmsigs.c, script.c, simpos.c, smob.c,
socket.c, srcprop.c, stime.c, strop.c, unif.c, vports.c: Added
#include <errno.h> in these 20 out of 100 files.
2001-03-10 16:56:09 +00:00
Keisuke Nishida
783e777478
Remove #include <stdio.h>. Add #include <string.h>.
2001-03-09 23:33:41 +00:00
Martin Grabmüller
1dd05fd8aa
* print.c (scm_print_options): Fixed texinfo in docstring.
...
* net_db.c (scm_getserv, scm_getproto, scm_getnet): Return #f if
the underlying functions getservent, getprotoent or getnetent
return NULL instead of signalling an error.
2001-03-05 07:25:56 +00:00
Dirk Herrmann
276dd6775c
* Eliminate another couple of calls to scm_wta.
2001-03-04 22:48:13 +00:00
Martin Grabmüller
eca65e90f7
(scm_newline, scm_write_char, scm_simple_format): Added texinfo markup.
2001-02-17 11:29:58 +00:00
Martin Grabmüller
713311884e
(scm_print_options, scm_port_with_print_state, scm_get_print_state):
...
Added docstrings.
2001-02-16 15:07:52 +00:00
Keisuke Nishida
00ffa0e7d6
New functions: scm_c_make_vector, scm_c_make_hash_table.
2001-02-02 04:56:25 +00:00
Dirk Herrmann
5d2b97cd07
* Fixed the changelog entry regarding re-introduction of struct member
...
properties (I continuously talked of member 'documentation' instead)
* Replace calls to scm_remember with calls to scm_remember_upto_here_1.
2000-12-28 16:49:09 +00:00
Keisuke Nishida
e841c3e0c0
Smob-related creanup.
2000-12-08 17:32:56 +00:00
Dirk Herrmann
38ae064c6e
* Use scm_mem2symbol or scm_str2symbol to create symbol objects.
2000-12-08 17:08:34 +00:00
Dirk Herrmann
e34f941a3a
* Use scm_tc3_* codes instead of hardcoded values.
2000-12-05 14:07:03 +00:00
Gary Houston
5f144b105d
* use an applicable SMOB to represent continuations, instead of a
...
custom tc7 type. This will make it easier to support R5RS
multiple value continuations, without the use of a Scheme-level
wrapper.
* continuations.c (scm_tc16_continuation, continuation_mark,
continuation_free, continuation_print, continuation_apply):
new SMOB support.
(scm_make_continuation): new procedure, replaces scm_make_cont
with a different interface.
(copy_stack_and_call, scm_dynthrow, scm_init_continuations): rewritten.
(CHEAP_CONTINUATIONS): removed non-working code completely.
(scm_call_continuation): removed.
* continuations.h (struct scm_contregs): add num_stack_items and
stack fields. previously stack was stored following this struct:
use a tail array instead.
(SCM_CONTINUATIONP): new macro.
(SCM_CONTINUATION_LENGTH, SCM_SET_CONTINUATION_LENGTH):
rewritten.
(SCM_SET_CONTREGS): removed.
* tags.h: removed scm_tc7_contin (was tag 61).
* debug.c, gc.c, hash.c, print.c, procprop.c, procs.c:
removed scm_tc7_contin support.
* eval.c: use scm_make_continuation instead of scm_make_cont.
don't set jump buffers here. remove scm_tc7_contin support.
* init.c, root.c: create SMOB continuation for rootcont instead
of scm_tc7_contin. call scm_init_continuations before
scm_init_root.
* root.c: remove support for static jmpbuf. It's not used by
default and I broke it. create SMOB continuation for rootcont.
* stacks.c: use SCM_CONTINUATIONP.
2000-11-25 16:58:25 +00:00
Dirk Herrmann
34f0f2b8af
* Deprecated macros SCM_ROCHARS and SCM_ROUCHARS.
2000-11-22 11:20:03 +00:00
Marius Vollmer
8dc9439fc6
* alist.c, arbiters.c, async.c, backtrace.c, boolean.c, chars.c,
...
continuations.c, debug-malloc.c, debug.c, dynl.c, dynwind.c,
environments.c, eq.c, error.c, eval.c, evalext.c, feature.c,
filesys.c, fluids.c, fports.c, gc.c, goops.c, guardians.c, hash.c,
hashtab.c, hooks.c, ioext.c, iselect.c, keywords.c, lang.c,
list.c, load.c, macros.c, modules.c, net_db.c, numbers.c,
objects.c, objprop.c, options.c, pairs.c, ports.c, posix.c,
print.c, procprop.c, procs.c, properties.c, ramap.c, random.c,
read.c, regex-posix.c, root.c, scmsigs.c, script.c, simpos.c,
socket.c, sort.c, srcprop.c, stackchk.c, stacks.c, stime.c,
strings.c, strop.c, strorder.c, strports.c, struct.c, symbols.c,
tag.c, threads.c, throw.c, unif.c, variable.c, vectors.c,
version.c, vports.c, weaks.c: Makes sure the snarfer output
inclusion is disabled when the snarfer is run on the file. Thanks
to Lars J. Aas!
* Makefile.am: Install guile-procedures.txt in version-specific
directory to enable multiple installed guile versions. Suggested
by Karl M. Hegbloom <karlheg@debian.org, patch by Matthias Koeppe.
2000-11-17 16:25:05 +00:00
Dirk Herrmann
b24b5e13bf
* Get rid of calls to SCM_ROSTRINGP.
...
* Fix some string/symbol output problems with regards to substrings.
* Fix error output to prefer procedure name parameters over stack data.
* Use SCM_(SET_)?FILENAME where appropriate.
* Prefer calling scm_remember over scm_protect/unprotect_object calls.
2000-11-02 10:36:31 +00:00
Dirk Herrmann
d1ca2c6423
* Some more work to get rid of SCM_LENGTH
...
* Eliminated some cell type bit fiddling
* Various minor changes
2000-10-25 11:01:03 +00:00
Marius Vollmer
5264d62116
* print.c (grow_ref_stack): Pass a INUM to scm_make_vector as the
...
size, not a naked int. Thanks to Brat Knotwell!
2000-10-18 21:05:57 +00:00
Dirk Herrmann
b17004b806
* Eliminate last call to scm_vector_set_length_x within libguile.
2000-10-09 12:39:14 +00:00
Dirk Herrmann
a002f1a2cb
* Replaced a lot of references to SCM_CHARS.
2000-09-26 18:37:26 +00:00
Dirk Herrmann
86c991c2a2
* Replaced SCM_CHARS with SCM_STRING_CHARS or SCM_SYMBOL_CHARS.
2000-09-22 17:17:55 +00:00
Gary Houston
57b74422f6
*** empty log message ***
2000-09-14 22:43:48 +00:00
Dirk Herrmann
28b06554ca
* Unified ssymbols and msymbols to a single symbol type 'scm_tc7_symbol'.
...
* Added scm_string_hash and deprecated scm_strhash.
2000-09-12 12:30:36 +00:00
Mikael Djurfeldt
3ce4544cfa
* objects.c (scm_init_objects), print.c (scm_init_print), struct.c
...
(scm_init_struct): First arg to scm_make_vtable_vtable should be a
string, not a symbol. (`make-vtable-vtable' needs to append this
string to another string and then pass it through
`make-struct-layout'.)
2000-08-27 03:20:55 +00:00
Mikael Djurfeldt
cc6f0237bd
* print.c (scm_simple_format): Be case-insensitive for ~A and ~S
...
directives.
2000-08-11 00:45:25 +00:00
Mikael Djurfeldt
daba1a710d
* print.c (scm_simple_format): Bugfix: Coerce port before using it.
2000-08-02 06:00:09 +00:00
Mikael Djurfeldt
a0adfbf022
* print.c (scm_current_pstate, scm_make_print_state): Simplified
...
tests, using the assumption that Guile has been initialized.
2000-06-19 00:42:03 +00:00
Greg J. Badros
0a284a4e88
* print.c (s_scm_current_pstate): Do not segfault when the
...
print_state_pool is unitialized in `current-pstate', and better
verify its state before altering it in scm_make_print_state().
2000-06-18 21:47:23 +00:00
Mikael Djurfeldt
f2c9fcb07e
Updated copyrights
2000-06-12 12:28:24 +00:00
Dirk Herrmann
9a09deb1c3
* Removed SCM_TRUE_P since it may get confused with !SCM_FALSEP.
2000-06-05 11:39:46 +00:00
Dirk Herrmann
206d3de31e
* Replace SCM_UNPACK_CAR appropriately.
2000-05-23 22:23:56 +00:00
Dirk Herrmann
af45e3b06a
* Unified some rest argument checking and handling.
2000-05-18 08:47:52 +00:00
Dirk Herrmann
f5f2dcffbe
* Wrapped deprecated code between #if (SCM_DEBUG_DEPRECATED == 0) #endif.
...
* Replace use of deprecated macros SCM_INPORTP, SCM_OUTPORTP, SCM_ICHRP.
2000-05-15 11:47:48 +00:00
Mikael Djurfeldt
a059974535
* Makefile.am (DEFS): Added. automake adds -I options to DEFS,
...
and we don't want that.
(INCLUDES): Removed all -I options except for the root source
directory and the root build directory.
* *.*: Change includes so that they always use the "prefixes"
libguile/, qt/, guile-readline/, or libltdl/.
(Thanks to Tim Mooney.)
2000-04-21 14:16:44 +00:00
Dirk Herrmann
9e882eeca8
Again, SCM/scm_bits_t mixup fixes.
2000-04-19 11:32:05 +00:00
Dirk Herrmann
fee7ef83a3
Fixed some SCM/scm_bits_t mixups.
2000-04-18 14:12:07 +00:00
Dirk Herrmann
230d095fc5
Fixed some SCM/scm_bits_t mixups and initialization problems.
2000-04-18 07:24:24 +00:00
Mikael Djurfeldt
5d46ebe36d
* print.c: Removed promise to rewrite printer code before next
...
release. :)
2000-04-04 09:15:03 +00:00
Dirk Herrmann
54778cd312
Lots of fixes to make guile (at some time) compile with strict typing.
2000-04-03 08:47:51 +00:00
Mikael Djurfeldt
998308d305
* print.c (scm_iprin1): SCM_PACK/UNPACK corrections.
2000-03-22 02:12:35 +00:00
Michael Livshin
89e00824a0
* *.[hc]: add Emacs magic at the end of file, to ensure GNU
...
indentation style.
2000-03-19 19:01:16 +00:00
Dirk Herrmann
ba11fd4cb6
Only include root.h where it is actually needed.
2000-03-18 08:44:04 +00:00
Dirk Herrmann
7ab3fdd51f
Only include strings.h where it is actually needed.
2000-03-17 18:11:58 +00:00
Dirk Herrmann
f04d8caf82
Only include ports.h where it is actually needed.
2000-03-17 16:10:13 +00:00
Dirk Herrmann
003d1fd046
Only include vectors.h in those files, where it is actually needed.
2000-03-17 15:23:03 +00:00
Dirk Herrmann
0fa27efa4a
Removed empty file genio.h and references to it.
2000-03-17 13:37:33 +00:00