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

3513 commits

Author SHA1 Message Date
Dirk Herrmann
89d7a92c0a * Fixed changelog entry. 2002-02-25 23:27:30 +00:00
Dirk Herrmann
646052c0dc * gc.c (scm_gc_sweep): Make it compile even when deprecated
features are excluded.
2002-02-25 23:22:16 +00:00
Dirk Herrmann
bac0e23263 * num2integral.i.c (NUM2INTEGRAL): Fixed signedness problem. 2002-02-25 22:48:21 +00:00
Gary Houston
4f2716b6f6 * convert.c: include <string.h> for convert_i.c. 2002-02-25 22:07:52 +00:00
Rob Browning
4615111283 *** empty log message *** 2002-02-25 05:52:38 +00:00
Rob Browning
5198619b6c * .cvsignore: add stamp-h1. 2002-02-25 05:49:23 +00:00
Neil Jerram
cd328b4fef * Fix a typo that crept in with the scm_X_t to scm_t_X rename.
* Partial fix for date-week-number bug.
2002-02-22 23:14:38 +00:00
Mikael Djurfeldt
c709de7f98 * gc.c (scm_gc_sweep): Print an error message when aborting due to
underflowing scm_mallocated.
2002-02-21 01:00:41 +00:00
Marius Vollmer
c1965d31aa *** empty log message *** 2002-02-14 15:32:25 +00:00
Marius Vollmer
539b08a4c7 (scm_must_malloc, scm_must_realloc, scm_must_strdup, scm_must_strndup,
scm_done_malloc, scm_done_free, scm_must_free): Reimplemented using
the new scm_gc_malloc, etc., functions and deprecated.
2002-02-14 15:32:12 +00:00
Thien-Thi Nguyen
b606945b44 *** empty log message *** 2002-02-12 02:00:39 +00:00
Thien-Thi Nguyen
f94b652476 (bin_PROGRAMS): Move `guile_filter_doc_snarfage'
to `noinst_PROGRAMS'.
(bin_SCRIPTS): Move all values to `noinst_SCRIPTS'; delete.
(noinst_PROGRAMS, noinst_SCRIPTS): New.
2002-02-12 01:57:37 +00:00
Marius Vollmer
7c686ba857 *** empty log message *** 2002-02-11 18:09:30 +00:00
Marius Vollmer
4c9419ac31 * gc.h, gc.c (scm_gc_sweep): Issue deprecation warning when
non-zero is returned from a port or smob free function.
(scm_malloc, scm_realloc, scm_strndup, scm_strdup,
scm_gc_register_collectable_memory,
scm_gc_unregister_collectable_memory, scm_gc_malloc,
scm_gc_realloc, scm_gc_free, scm_gc_strndup, scm_gc_strdup): New.

* backtrace.c, continuations.c, convert.i.c, coop-threads.c,
debug-malloc.c, dynl.c, environments.c, environments.h,
extensions.c, filesys.c, fports.c, gc.c, gc.h, gh_data.c, goops.c,
guardians.c, hooks.c, init.c, keywords.c, load.c, numbers.c,
ports.c, posix.c, procs.c, rdelim.c, regex-posix.c, root.c,
smob.c, stime.c, strings.c, struct.c, struct.h, symbols.c, unif.c,
vectors.c, weaks.c: Use scm_gc_malloc/scm_malloc and
scm_gc_free/free instead of scm_must_malloc and scm_must_free, as
appropriate.  Return zero from smob and port free functions.

* debug-malloc.c (scm_malloc_reregister): Handle "old == NULL".

* fports.c (scm_setvbuf): Reset read buffer to saved values when
it is pointing to the putback buffer.
2002-02-11 18:06:50 +00:00
Marius Vollmer
d013f095c1 Reimplemented to allow deprecation messages while the GC is running.
(scm_c_issue_deprecation_warning_fmt): New.
2002-02-11 17:17:48 +00:00
Thien-Thi Nguyen
05aabdf060 Remove cruft; nfc. 2002-02-09 23:22:32 +00:00
Thien-Thi Nguyen
66adc0a6f2 *** empty log message *** 2002-02-09 00:39:59 +00:00
Thien-Thi Nguyen
c0fa6561ac (create_gsubr): On "too many args" error,
also display arg count and name.
2002-02-09 00:38:43 +00:00
Thien-Thi Nguyen
0187b4f417 *** empty log message *** 2002-02-05 09:42:16 +00:00
Thien-Thi Nguyen
d6c33794d5 bye bye 2002-02-05 09:32:26 +00:00
Thien-Thi Nguyen
f8241358de Include $(top_srcdir)/pre-inst-guile.am.
(bin_SCRIPTS): Remove guile-snarf-docs-texi.
(alldotdocfiles, snarf2checkedtexi, dotdoc2texi): New vars.
(guile.texi, guile-procedures.texi): Use $(dotdoc2texi).
2002-02-05 09:29:53 +00:00
Marius Vollmer
402e687cc9 *** empty log message *** 2002-02-04 16:48:36 +00:00
Marius Vollmer
d58d5bfc1c (scm_make_symbol): Fix typo in docstring. 2002-02-04 16:47:35 +00:00
Marius Vollmer
a63cdd6150 (scm_mem2uninterned_symbol, scm_symbol_interned_p, scm_make_symbol):
New prototypes.
2002-02-04 16:47:23 +00:00
Marius Vollmer
319b98ed9c *** empty log message *** 2002-02-03 22:50:18 +00:00
Marius Vollmer
9ff28a13e0 (scm_iprin1): Print uninterned symbols unreadably. 2002-02-03 22:50:07 +00:00
Marius Vollmer
ac48757b5e * symbols.h (SCM_SET_SYMBOL_HASH): Removed.
(SCM_SYMBOL_INTERNED_P): New.
* symbols.c (scm_symbol_hash): Use scm_ulong2num instead of
SCM_MAKINUM since hash values can well be bignums.
(scm_mem2symbol): Only use hash values below SCM_T_BITS_MAX/2.
This signals a interned symbol.
(scm_mem2uninterned_symbol, scm_symbol_interned_p,
scm_make_symbol): New.
2002-02-03 22:49:06 +00:00
Thien-Thi Nguyen
34472dfe98 *** empty log message *** 2002-02-03 05:20:21 +00:00
Thien-Thi Nguyen
3dd84ef10c (HAVE_UINTPTR_T): Only define if UINTPTR_T attributes
are defined: UINTPTR_MAX, INTPTR_MAX, INTPTR_MIN.
2002-02-03 05:19:05 +00:00
Marius Vollmer
1b39c2e37f *** empty log message *** 2002-01-31 19:59:39 +00:00
Marius Vollmer
68dc153d7f (scm_gensym): Use " g" as default prefix, not "g".
This might help to make unintented clashes less likely.
(scm_string_to_symbol): Protect the string until the symbols is
created.
2002-01-31 19:59:26 +00:00
Stefan Jahn
1fa86ca526 2002-01-31 Stefan Jahn <stefan@lkcc.org>
* convert.c, convert.h, convert.i.c: New files containing C
        array to Scheme conversion helpers meant to be replacement
        functions for the deprecated gh interface.

        * Makefile.am: Setup rules for new `convert.*' files.

2002-01-31  Stefan Jahn  <stefan@lkcc.org>

        * configure.in: Add -DLIBLTDL_DLL_IMPORT to INCLTDL when using
        `libltdl.dll'.
2002-01-31 10:38:50 +00:00
Neil Jerram
bbd26b5ae5 * Rename call-with-readline-completion-function' to with-readline-completion-function'.
* More tests for Elisp nil value.
* Development work on Elisp translator.
2002-01-30 00:03:40 +00:00
Stefan Jahn
af68e5e5a6 2002-01-28 Stefan Jahn <stefan@lkcc.org>
* configure.in (guile_cv_have_uint32_t): Look also in
        `stdint.h' for uint32_t.

2002-01-28  Stefan Jahn  <stefan@lkcc.org>

        * symbols.c (scm_c_symbol2str): New function, replacement for
        `gh_scm2newsymbol()'.

        * strings.c (scm_c_substring2str): New function.  Proper
        replacement for `gh_get_substr()'.

        * socket.c: Include `stdint.h' if available for the `uint32_t'
        declaration.

        * scmsigs.c (s_scm_sigaction): Initialize `chandler' (inhibits
        compiler warning).

        * backtrace.c: Include `lang.h' for GUILE_DEBUG conditional.
2002-01-28 21:15:55 +00:00
Neil Jerram
c96d76b88d * First batch of libguile changes for Elisp support.
* Fixed a few typos.
* Minor rationalization of macros relating to source breakpoints.
2002-01-22 23:31:39 +00:00
Dirk Herrmann
a392ee1556 * eval.c: Removed outdated references to "everr". Improved some
comments.

(scm_deval_args, deval_args):  Renamed scm_deval_args to
deval_args, since it is not part of the interface.

(SCM_CEVAL):  Added (maybe somewhat verbose) comment.  Avoid to
use references to debug.vect[0] before it exists.  Add parentheses
to switch statement.

* goops.h:  Added local emacs variables.
2002-01-10 21:57:03 +00:00
Dirk Herrmann
2493378052 * eval.[ch] (scm_deval_args): Made static.
* srcprop.c (scm_source_property):  Remove redundant SCM_IMP
test.

* strings.c (scm_c_string2str):  Clarified comment.  Replaced
THINKME by FIXME for uniformness.  Removed question about whether
arguments need to be protected from garbage collection:  Arguments
must be protected as any other variable.
2002-01-10 21:11:22 +00:00
Dirk Herrmann
f9450cdb14 * procs.h (SCM_CLOSURE_BODY): New Macro.
* debug.c (scm_procedure_name, scm_procedure_source), eval.c
(SCM_CEVAL, SCM_APPLY), goops.c (scm_sys_initialize_object,
get_slot_value, set_slot_value), procs.c
(scm_procedure_documentation), sort.c (closureless), stacks.c
(get_applybody): Replace SCM_CDR (SCM_CODE (...)) by
SCM_CLOSURE_BODY.

* sort.c (closureless): Prefer !SCM_FOOP over SCM_NFOOP.
2002-01-10 20:52:45 +00:00
Marius Vollmer
5dc64f6434 *** empty log message *** 2001-12-26 15:37:14 +00:00
Marius Vollmer
9df3eecce4 (guile-procedures.txt): When we don't have makeinfo, use "cp" instead. 2001-12-26 15:37:01 +00:00
Marius Vollmer
197ee3d388 *** empty log message *** 2001-12-16 21:58:33 +00:00
Marius Vollmer
3c468478d8 (scm_make_continuation): Do not retain the throw_value when the
continuation is invoked.
2001-12-16 21:58:02 +00:00
Marius Vollmer
762e289af5 (scm_t_stackype): Renamed to scm_stack_type everywhere. 2001-12-16 21:57:52 +00:00
Stefan Jahn
4d4528e79a 2001-12-08 Stefan Jahn <stefan@lkcc.org>
* strings.c (scm_c_string2str): New function.  Converts a
        given Scheme string into a C string.  Also put in two
        THINKME's regarding the malloc policy for the missing converter
        routines.
2001-12-08 12:50:37 +00:00
Neil Jerram
de513fa003 * Fix comment typo. 2001-12-07 17:03:15 +00:00
Neil Jerram
98347362c7 * gh_data.c (gh_module_lookup): Use scm_str2symbol rather than gh_symbol2scm. 2001-12-01 15:54:58 +00:00
Dirk Herrmann
1fc8902f02 * gc.h (SCM_GC_CELL_WORD, SCM_GC_CELL_OBJECT,
SCM_GC_SET_CELL_WORD, SCM_GC_SET_CELL_OBJECT):  New macros.

(SCM_GC_CELL_TYPE, SCM_CELL_WORD, SCM_CELL_OBJECT,
SCM_SET_CELL_WORD, SCM_SET_CELL_OBJECT, SCM_FREE_CELL_CDR,
SCM_GC_SET_CELL_OBJECT):  Express in terms of SCM_GC_CELL_*
macros.

(SCM_FREE_CELL_P):  Express in terms of SCM_GC_CELL_TYPE.

* inline.h (scm_alloc_cell, scm_alloc_double_cell):  Use
SCM_GC_CELL_* macros when accessing free cells.
2001-11-27 23:18:16 +00:00
Marius Vollmer
4878beecf9 *** empty log message *** 2001-11-25 15:24:07 +00:00
Marius Vollmer
16d4699b6b Replaced SCM_NEWCELL and SCM_NEWCELL2 with scm_alloc_cell and
scm_alloc_double_cell, respectively.
2001-11-25 15:21:07 +00:00
Marius Vollmer
d3c0e81cc8 (SCM_MAKE_VECTOR_TAG): New. 2001-11-25 15:18:18 +00:00