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

3521 commits

Author SHA1 Message Date
Stefan Jahn
97820583b4 2002-03-02 Stefan Jahn <stefan@lkcc.org>
* convert.i.c: Fixed int <-> long conversions which would have
        failed if their sizes were different.
2002-03-02 14:18:38 +00:00
Dirk Herrmann
38ace99eb3 * eval.c (SCM_CEVAL): Cleaned up the handling of 'if', 'let',
'letrec' and 'set*': Removed some uses of t.arg1, t.lloc and proc
as temporary variables.  Removed side-effecting operations from
conditions and macro calls.  Introduced temporary variables with
hopefully descriptive names for clarification.  Replaced SCM_N?IMP
by a more explicit predicate in some places.  Removed code that
was conditionally compiled if SICP was defined - which it never
is.
2002-03-02 12:47:45 +00:00
Dirk Herrmann
e5cb71a0a9 * eval.c (SCM_CEVAL): Cleaned up the handling of 'cons' and 'do':
Removed some uses of t.arg1 and proc as temporary variables.
Removed side-effecting operations from conditions and macro calls.
Introduced temporary variables with hopefully descriptive names
for clarification.  Replaced SCM_N?IMP by a more explicit
predicate in some places.
2002-03-02 11:50:01 +00:00
Dirk Herrmann
6a0f6ff30c * eval.c (scm_badargsp, SCM_CEVAL): Replaced SCM_N?IMP by a more
explicit predicate in some places.

(CHECK_EQVISH): Removed.

(SCM_CEVAL): Removed some uses of t.arg1 and proc as temporary
variables.  Removed side-effecting operations from conditions and
macro calls.  Introduced temporary variables for clarification.
Sorted if-else-if check for the type of the last form in a list by
frequency.  Avoided some unnecessary tail-recursion calls.
2002-03-02 09:53:51 +00:00
Dirk Herrmann
228a24ef30 Changes in doc/ref:
* api.txt, data-rep.texi: Renamed the struct scm_cell to
scm_t_cell.

* data-rep.texi: Renamed scm_alloc_cell to scm_cell and
scm_alloc_double_cell to scm_double_cell.

Changes in libguile:

* gc.c (SCM_HEAP_SEG_SIZE, CELL_UP, CELL_DN, NEXT_DATA_CELL,
init_heap_seg, alloc_some_heap), gc.h (struct scm_cell, struct
scm_t_cell, SCM_CELLPTR, SCM_GC_CARD_SIZE,
SCM_GC_IN_CARD_HEADERP), tags.h (SCM_CELLP):  Renamed the struct
scm_cell and all its uses to scm_t_cell in accordance to Guile's
naming scheme for types.

* alist.c (scm_acons), convert.i.c (CTYPES2UVECT,
CTYPES2UVECT_OPTIONAL), coop-threads.c (scm_call_with_new_thread,
scm_spawn_thread), debug.c (scm_make_debugobj), environments.c
(scm_make_environment), eval.c (scm_closure), fports.c
(scm_fdes_to_port), gc.c (scm_deprecated_newcell,
scm_deprecated_newcell2), inline.h (scm_alloc_cell, scm_cell),
list.c (SCM_I_CONS), numbers.c (scm_i_mkbig), pairs.c (scm_cons),
ports.c (scm_void_port), procs.c (scm_c_make_subr, scm_makcclo),
smob.c (scm_make_smob), smob.h (SCM_NEWSMOB), strings.c
(scm_take_str, scm_allocate_string), strports.c (scm_mkstrport),
unif.c (scm_make_uve), variable.c (make_variable), vectors.c
(scm_c_make_vector), vports.c (scm_make_soft_port): Renamed
scm_alloc_cell to scm_cell.

* environments.c (core_environments_observe), gc.c
(scm_deprecated_newcell2), goops.c (wrap_init, scm_wrap_object),
inline.h (scm_alloc_double_cell, scm_double_cell), num2float.i.c
(FLOAT2NUM), numbers.c (scm_make_real), procs.c
(scm_make_procedure_with_setter), smob.h (SCM_NEWSMOB2,
SCM_NEWSMOB3), struct.c (scm_make_struct, scm_make_vtable_vtable),
symbols.c (scm_mem2symbol, scm_mem2uninterned_symbol), weaks.c
(allocate_weak_vector): Renamed scm_alloc_double_cell to
scm_double_cell.
2002-03-01 00:19:20 +00:00
Stefan Jahn
edb810bb84 2002-02-27 Stefan Jahn <stefan@lkcc.org>
* Makefile.am (SUBDIRS): Added the `am' directory.

2002-02-27  Stefan Jahn  <stefan@lkcc.org>

        * gh.texi (scm transition summary): Documented some more
        gh equivalents and removed appropriate FIXME's.

2002-02-27  Stefan Jahn  <stefan@lkcc.org>

        * Makefile.am (EXTRA_DIST): Added the `LIBGUILEREADLINE-VERSION'
        file.

2002-02-27  Stefan Jahn  <stefan@lkcc.org>

        * convert.i.c, convert.c: Better range checking.

        * inet_aton.c, fports.c: Commented the inclusion of <winsock2.h>.

        * deprecation.c (vsnprintf): Define to `_vsnprintf' for
        Windows (MinGW).
2002-02-27 15:41:01 +00:00
Thien-Thi Nguyen
327d4dd38f doc/ref/ChangeLog 2002-02-26 10:32:34 +00:00
Thien-Thi Nguyen
58ed8bc61c Update path to pre-inst-guile automake frag. 2002-02-26 10:28:51 +00:00
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