1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-05-03 13:20:26 +02:00
Commit graph

3479 commits

Author SHA1 Message Date
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
Marius Vollmer
0b2f15c3ab (SCM_MAKE_BITVECTOR_TAG, SCM_MAKE_UVECTOR_TAG): New. 2001-11-25 15:16:34 +00:00
Marius Vollmer
0a7b506d24 (SCM_MAKE_SYMBOL_TAG): New. 2001-11-25 15:15:47 +00:00
Marius Vollmer
c65e98224b (SCM_MAKE_STRING_TAG): New. 2001-11-25 15:14:51 +00:00
Marius Vollmer
21ac1f4c5b (SCM_MAKE_CCLO_TAG): New. 2001-11-25 15:13:52 +00:00
Marius Vollmer
760eb0ce25 (SCM_MAKE_BIGNUM_TAG): New. 2001-11-25 15:12:39 +00:00
Marius Vollmer
6c4493a045 Replaced SCM_DEBUG_DEPRECATED with !SCM_ENABLE_DEPRECATED. 2001-11-25 15:11:20 +00:00
Marius Vollmer
7123fc3b21 (scm_take_signal): Removed all code that assumes that signal handlers
are allowed to divert the flow of control.  Call
scm_system_async_mark_from_signal_handler instead of
scm_system_async_mark.
2001-11-25 15:08:12 +00:00
Marius Vollmer
da6129a67e (scm_system_async_mark_from_signal_handler): New. 2001-11-25 15:04:56 +00:00
Marius Vollmer
0f633e6683 Include "libguile/inline.h". 2001-11-25 15:03:28 +00:00
Marius Vollmer
6253f3f1d9 Added prototypes for defined functions for the !HAVE_INLINE case. 2001-11-25 15:02:44 +00:00
Marius Vollmer
d678e25cf9 (SCM_GC_SET_ALLOCATED, scm_debug_newcell,
scm_debug_newcell2, scm_tc16_allocated): Removed from header.
(scm_deprecated_newcell, scm_deprecated_newcell2): New.
(SCM_NEWCELL, SCM_NEWCELL2): Implement in terms of
scm_deprecated_newcell and scm_deprecated_newcell2.

gc.c (scm_tc16_allocated): Only define when including deprecated
features.
(scm_debug_newcell, scm_debug_newcell2): Removed.
(scm_init_storage): Do not initialize scm_tc16_allocated.
(scm_init_gc): Do it here.
(allocated_mark): New, from old code.
(scm_deprecated_newcell, scm_deprecated_newcell2): New.
2001-11-25 15:00:31 +00:00
Marius Vollmer
9b7ee9d8a7 * inline.c, inline.h: New files.
* Makefile.am: Added them in all the right places.
2001-11-25 14:53:00 +00:00
Marius Vollmer
16ea96206d New files. 2001-11-25 14:45:17 +00:00
Marius Vollmer
d2bc7faea7 *** empty log message *** 2001-11-23 21:40:39 +00:00
Marius Vollmer
b64f4200f4 (scm_c_use_module): Adapt to changes to `process-use-modules'. 2001-11-23 21:38:33 +00:00
Dirk Herrmann
5eec27e9c5 * numbers.c (scm_divide): Fix more division by zero errors. 2001-11-22 21:30:24 +00:00
Gary Houston
8978878fd8 * Makefile.am (OMIT_DEPENDENCIES): removed, since it seems to be
obsolete.  autogen.sh says:
	invalid unused variable name: `OMIT_DEPENDENCIES'
2001-11-21 23:35:15 +00:00
Dirk Herrmann
164826d3ae * numbers.c (scm_divide): Fix (/ 0). Thanks to Keith Wright for
reporting the bug.
2001-11-21 23:23:53 +00:00
Marius Vollmer
84aff7a7f2 *** empty log message *** 2001-11-21 20:22:01 +00:00
Marius Vollmer
b27b814d4c (install-exec-hook): Prepend $(DESTDIR) to filename. Thanks to Eric
Gillespie, Jr!
2001-11-21 20:21:39 +00:00
Stefan Jahn
6063dc1ddd 2001-11-21 Stefan Jahn <stefan@lkcc.org>
* win32-socket.c (getservent, setservent, endservent,
        getprotoent, setprotoent, endprotoent): New functions.
        Appropriate replacements for M$-Windows.

        * numbers.c (SIZE_MAX, PTRDIFF_MAX, PTRDIFF_MIN): Reintroduced
        these definitions for GUILE_DEBUG.

        * net_db.c: Include "win32-socket.h" if compiling with a native
        M$-Windows compiler.  Include some pieces of code (protoent and
        servent interface) protected by HAVE_* macros when using a
        native M$-Windows compiler.
2001-11-21 07:59:53 +00:00
Marius Vollmer
351982f656 *** empty log message *** 2001-11-20 22:45:37 +00:00
Marius Vollmer
eb880cef29 (scm_c_export): Do nothing when the first argument is
already the terminating NULL.  Thanks to Han-Wen Nienhuys!
2001-11-20 22:45:24 +00:00
Thien-Thi Nguyen
849038b542 *** empty log message *** 2001-11-20 10:54:56 +00:00
Thien-Thi Nguyen
54f16aecf9 (libpath.h): In SCM_BUILD_INFO, also include `buildstamp'. 2001-11-20 10:53:19 +00:00
Rob Browning
6acaff8204 * version.h.in
(SCM_MAJOR_VERSION): renamed from SCM_GUILE_MAJOR_VERSION.
(SCM_MINOR_VERSION): renamed from SCM_GUILE_MINOR_VERSION.
(SCM_MICRO_VERSION): renamed from SCM_GUILE_MICRO_VERSION.
2001-11-18 23:04:32 +00:00
Rob Browning
76f33258bb * version.c
(s_scm_major_version): use SCM_MAJOR_VERSION.
(s_scm_minor_version): use SCM_MINOR_VERSION.
(s_scm_micro_version): use SCM_MICRO_VERSION.
(s_scm_version): use SCM_MAJOR_VERSION, SCM_MINOR_VERSION, and
SCM_MICRO_VERSION.
2001-11-18 23:04:10 +00:00
Rob Browning
5c790b44f8 *** empty log message *** 2001-11-18 23:03:10 +00:00
Neil Jerram
694a9bb34e * Updates for string- and vector-move-right/left! docstrings.
* Update Tcl war URLs.
2001-11-18 22:10:41 +00:00
Dirk Herrmann
3096b33f0d * Oops, this belongs to the previous ChangeLog entry... 2001-11-17 12:16:05 +00:00
Dirk Herrmann
302c12b4b7 * eval.c: Removed bogus comment about acros.
(scm_unmemocar):  Use !SCM_CONSP instead of SCM_IMP.
Minimize scope of local variable.  Eliminate dependency on
macro DEBUG_EXTENSIONS.

(s_splicing):  New error message string.

(scm_m_body):  Issue 'bad body' message rather than 'missing
expression' message.

(scm_m_quote):  Eliminate unnecessary copying.

(scm_m_lambda, scm_m_letstar, scm_m_letrec, scm_m_let):  Leave the
checking of the body to scm_m_body.

(scm_m_do):  Move comment to function header.  Rename arg1 to
binding.  Made the code a bit easier to read.

(evalcar):  Removed.

(iqq):  Added a comment.  Changed the depth parameter to
unsigned.  Use size_t for vector lengths.  Make sure vector object
is gc protected as long as its contents are read.  Add some syntax
checks.  Get rid of unnecessary SCM_IMP test.  Clean up the
control structure a bit.

(scm_m_delay):  Added comment about the implementation of
scm_m_delay.

(scm_m_define):  Add comment about guile's currying define
syntax.  Renamed 'proc' to 'name'.  Eliminate dependency on macro
DEBUG_EXTENSIONS.  Simplified code a bit.  Eliminate SICP code.

(scm_m_letrec1):  Removed.  Part of the functionality is taken
over by the new function 'transform_bindings'.

(transform_bindings):  New function.  Takes over some of the
functionality of removed function 'scm_m_letrec1', namely to split
a list of bindings into a reversed list of variables and a list of
initializers.

(scm_m_letrec):  Call 'transform_bindings'.

(scm_m_let):  Minimized scope of local variables.  Renamed 'proc'
to 'temp' and 'arg1' to 'binding'.  Eliminated redundant SCM_NIMP
test.  Use 'transform_bindings'.  Fixed scoping error with named
let (Thanks to Aubrey Jaffer for reporting the bug and to Neil
Jerram for suggesting the fix).  Cleaned up the control structure
a bit.

(scm_m_expand_body):  Use 'transform_bindings'.  Eliminated
unnecessary consing.  Eliminated unnecessary
SCM_DEFER/ALLOW_INTS.

(SCM_CEVAL):  Un-obfuscated some loops.
2001-11-17 11:43:28 +00:00
Neil Jerram
8f85c0c6c3 * Adding C function declarations from the SCM interface to the
reference manual documentation.
2001-11-16 15:04:17 +00:00
Neil Jerram
cecb4a5e9d * These changes add a @deffnx C function declaration and function
index entries for each Guile primitive to the copy of the doc
  snarf output that is used for reference manual synchronization.
  Online help is unchanged.
2001-11-16 09:55:54 +00:00
Dirk Herrmann
ddea3325eb * eval.c (RETURN): Wrap in do{}while(0) in order to make it
safely usable as a single statement followed by a ';', for example
in an if statement.

(SCM_CEVAL, SCM_APPLY):  Clean up code using 'RETURN'.
2001-11-15 17:19:53 +00:00