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

21194 commits

Author SHA1 Message Date
Jim Blandy
dc53f02690 Simplify smob and port marking; set the mark bit in the generic
marking code, and make marker routines only responsible for
turning up outgoing pointers.
* gc.c (scm_gc_mark): Set the mark bit on ports and smobs here,
before calling the marking function.  Don't call the marking
function if it's zero.
* markers.c (scm_mark0): Just return #f.  This function isn't
necessary at all now, but it's harmless to call it.  We'll leave
it in so other folks' code doesn't croak at link time.
(scm_markcdr): Don't call SCM_SETGC8MARK.
* async.c (mark_async): Don't call SCM_SETGC8MARK.
* dynl.c (mark_dynl_obj): Same.
* root.c (mark_root): Same.
* srcprop.c (marksrcprops): Same.
* unif.c (markra): Same.
* variable.c (scm_markvar): Same.
* ports.c (scm_markstream): Same.
(void_port_ptob): Specify zero for our marking function.
* debug.c (debugobjsmob): Same.
* dynwind.c (guardsmob): Same.
* filesys.c (dir_smob): Same.
* fluids.c (fluid_smob): Same.
* fports.c (scm_fptob, scm_pipob): Same.
* mallocs.c (mallocsmob): Same.
* regex-posix.c (regex_t_smob): Same.
* smob.c (freecell, flob, bigob): Same.
* threads.c (thread_smob, mutex_smob, condvar_smob): Same.
* throw.c (jbsmob, lazy_catch_funs): Same.
1998-07-23 04:47:56 +00:00
Mikael Djurfeldt
6f4d962200 * readline.scm (make-readline-port): Set prompt string to "... "
after first read line.  (Thanks to Richard Polton.)
1998-07-21 14:15:46 +00:00
Mikael Djurfeldt
93df19d088 Added Richard Polton 1998-07-21 14:15:06 +00:00
Jim Blandy
3ec4ec9a0f *** empty log message *** 1998-07-19 04:29:29 +00:00
Jim Blandy
95bfa94884 * lineio.scm (make-line-buffering-input-port): Don't use
ungetc-char-ready?, since we don't provide that function any
more.  The unread-string function doesn't interact properly with
any of the standard I/O functions anyway.  (Thanks to Andrew
Archibald.)
1998-07-19 04:29:08 +00:00
Jim Blandy
048a208ec0 * hcons.scm (hashq-cons-assoc): Don't assume the empty list is
false.  Return false when we cannot find a matching entry in the
list.  (Thanks to Andrew Archibald.)
1998-07-19 04:28:51 +00:00
Mikael Djurfeldt
3910272e9f * eval.c (scm_copy_tree): Reverted last change: `eval' uses
scm_copy_tree on code in order not to let memoized code to leak
out.  Thus, scm_copy_tree needs to copy vectors as well since
quasiquote can introduce evaluated code also inside vector
constants.
1998-07-16 23:15:57 +00:00
Mikael Djurfeldt
4b8d84c951 Updated 1998-07-16 22:51:18 +00:00
Mikael Djurfeldt
240ed1e5f3 * eval.c (scm_copy_tree): Removed ability to copy vectors. 1998-07-16 22:38:36 +00:00
Mikael Djurfeldt
b774ee1fdd * gh_data.c, gh.h (gh_ints2scm, gh_longs2ivect,
gh_ulongs2uvect): New procedures.  (Complements gh_doubles2scm and
gh_doubles2dvect.)
1998-07-16 22:31:59 +00:00
Mikael Djurfeldt
a515d28771 * unif.c: Say that ivect and uvect are of type signed and unsigned
long instead of int in commentary so that it correctly describes
the implementation.
1998-07-16 22:21:06 +00:00
Mikael Djurfeldt
cd51f30d81 Updated 1998-07-15 23:29:41 +00:00
Mikael Djurfeldt
a0cc0a0125 * boot-9.scm (export, export-syntax): New special forms: Export
bindings from a module.  `(export name1 name2 ...)' can be used at
the top of a module (after `define-module') to specify which names
should be exported.  It can be used as an alternative to
`define-public'.  `export-syntax' works equivalently to `export'
but is intended for export of syntactic keywords.
(Thanks to Thien-Thi Nguyen.)
1998-07-15 23:01:45 +00:00
Mikael Djurfeldt
39bc994824 * boot-9.scm: Renamed module (guile-repl)' --> (guile-user)'. 1998-07-15 19:32:13 +00:00
Mikael Djurfeldt
ae996c08a0 * boot-9.scm: Let the user start in module `(guile-repl)' instead
of module `(guile)'.  Also make sure that `(guile-repl)' uses
suitable modules.  This change improves Guile stability
substantially since bindings will only be copied from the root
module: If the user redefines builtins in `(guile-repl)' it won't
affect the internal operation of Guile itself.
1998-07-14 22:48:00 +00:00
Mikael Djurfeldt
13e341bb4d * boot-9.scm: Let the user start in module `(user)' instead of
module `(guile)'.  Also make sure that `(user)' uses suitable
modules.  This change improves Guile stability substantially since
bindings will only be copied from the root module: If the user
redefines builtins in `(user)' it won't affect the internal
operation of Guile itself.
1998-07-14 10:23:40 +00:00
Mikael Djurfeldt
94277faf56 Updated 1998-07-12 13:29:34 +00:00
Mikael Djurfeldt
5ef810229d *** empty log message *** 1998-07-12 13:26:17 +00:00
Mikael Djurfeldt
f522f90bc4 * stime.h: Renamed TIMEH --> STIMEH 1998-07-12 13:24:40 +00:00
Mikael Djurfeldt
a199f2004b * stime.c: Removed declaration of strptime. (It should be
declared by the system headers.  If it turns out that some systems
don't, we'll handle that then.)  (Thanks to Greg Troxel.)
1998-07-12 13:24:17 +00:00
Mikael Djurfeldt
95f44da944 * iselect.c: Use LONG_MAX instead of ULONG_MAX for increased
portability.
(finalize_fd_sets): Added empty statement after last case label.
(Thanks to Nicolas Neuss.)
1998-07-12 13:23:50 +00:00
Mikael Djurfeldt
e242dfd261 * gc.c (scm_igc): Changed //-comment into /*-comment. (Thanks to
Nicolas Neuss.)
1998-07-12 13:23:21 +00:00
Mikael Djurfeldt
0b2cb4ee9a * backtrace.c (scm_display_error, scm_display_backtrace): In order
to increase portability, don't use structure assignment.
(Thanks to Nicolas Neuss.)
1998-07-12 13:22:51 +00:00
Mikael Djurfeldt
d9eb6fb749 * configure.in: Changed variable HOSTNAME --> PROG_HOSTNAME in
totoro kludge.
1998-07-12 13:21:07 +00:00
Mikael Djurfeldt
e682159489 Updated 1998-07-12 13:20:41 +00:00
Mikael Djurfeldt
4f654c0e32 Updated 1998-07-12 02:30:01 +00:00
Mikael Djurfeldt
212d45b8e9 *** empty log message *** 1998-07-12 02:28:33 +00:00
Mikael Djurfeldt
d4561963c7 * init.c, readline.c: OK, I won't have these readline.x bug
reports anymore.  We've had them since April.  The current reason
is a completely unintelligible failure of totoro.red-bean.com to
do the test for rl_getc_function in libreadline correctly.  This
kludge overrides the test if we're on totoro so that the snapshot
generation process can work.

* readline.c: Define a strdup replacement if not existent on system.
1998-07-12 02:28:16 +00:00
Mikael Djurfeldt
95fc06d501 * acconfig.h, configure.in: Define TOTORO if configuring on
totoro.red-bean.com.

* configure.in: Check for strdup.
1998-07-12 02:27:02 +00:00
Mikael Djurfeldt
43eeb5a648 *** empty log message *** 1998-07-12 00:13:07 +00:00
Mikael Djurfeldt
a8741caa54 * eval.c, filesys.c, fluids.c, gc.c, gh_data.c, init.c, kw.c,
net_db.c, posix.c, print.c, regex-posix.c, scmsigs.c, socket.c,
stime.c, symbols.c, unif.c, vectors.c, weaks.c: Removed third
argument in call to scm_make_vector.
1998-07-12 00:10:02 +00:00
Mikael Djurfeldt
a61ef59b0b * vectors.c, vectors.h (scm_make_vector): Removed third argument.
This change makes scm_make_vector R5RS compatible.  We cannot keep
the third argument since people want to be able to deduce the form
of the C function call only by looking at R5RS.  (At the same time
we have removed some unnecessary complexity!)

* eval.c, filesys.c, fluids.c, gc.c, gh_data.c, init.c, kw.c,
net_db.c, posix.c, print.c, regex-posix.c, scmsigs.c, socket.c,
stime.c, symbols.c, unif.c, vectors.c, weaks.c: Removed third
argument in call to scm_make_vector.
1998-07-12 00:07:53 +00:00
Mikael Djurfeldt
9d0b279fee * numbers.h (SCM_NUM2DBL): New macro. Complements SCM_NUMBERP.
This macro is useful in applications.
1998-07-02 16:39:44 +00:00
Mikael Djurfeldt
dbb25e7f71 Update 1998-06-22 11:14:26 +00:00
Mikael Djurfeldt
04e8fb0adf * load.c (scm_internal_parse_path): Renamed from scm_parse_path.
(scm_parse_path, scm_search_path): New Scheme level procedures.
1998-06-22 09:23:01 +00:00
Mikael Djurfeldt
f9bb0fe1a3 * load.h (scm_internal_parse_path, scm_parse_path,
scm_search_path): Declared.
1998-06-22 09:22:38 +00:00
Mikael Djurfeldt
c6775c407a * boot-9.scm (load-module): When loading files from within files
themselves being loaded: Use the directory path of the file being
loaded as root for relative filenames.  (After suggestion by
Steven G. Johnson.)
1998-06-18 23:59:24 +00:00
Mikael Djurfeldt
74d6650d3a Updated 1998-06-18 21:54:44 +00:00
Mikael Djurfeldt
903073d536 * root.h (scm_root_state): Added scm_cur_loadp.
* root.c (mark_root): Added comment about cur_loadp.
1998-06-18 21:54:14 +00:00
Mikael Djurfeldt
31614d8ec7 * ports.c (current-load-port): New procedure. 1998-06-18 21:54:00 +00:00
Mikael Djurfeldt
d7834b915b * load.c: #include "dynwind.h";
(scm_primitive_load): Use scm_inner_dynamic_wind to update
scm_cur_loadp.
1998-06-18 21:53:45 +00:00
Mikael Djurfeldt
1a64191ee6 * init.c (scm_boot_guile_1): Removed condition around
scm_init_options.

* init.c (scm_init_standard_ports): Initialize scm_def_loadp.
1998-06-18 21:53:32 +00:00
Mikael Djurfeldt
a163dda9ef * filesys.c (dirname, basename): New procedures. 1998-06-18 21:53:16 +00:00
Mikael Djurfeldt
3346a90fa7 * dynwind.c: #include "genio.h"; #include "smob.h"; Implemented a
new data type (guards) for representation of C level guards and
data on the wind chain.
(scm_internal_dynamic_wind): New function.

* dynwind.h: Declare scm_internal_dynamic_wind.

* load.c: #include "dynwind.h";
(scm_primitive_load): Use scm_inner_dynamic_wind to update
scm_cur_loadp.
1998-06-18 21:53:00 +00:00
Mikael Djurfeldt
ef0d04e5c3 * emacs.scm (emacs-load): New feature: Eval in specified module. 1998-06-15 13:00:35 +00:00
Mikael Djurfeldt
4ffd142c03 * readline.scm: Typo in regex module name. 1998-06-14 15:07:51 +00:00
Mikael Djurfeldt
edd9ac213c * readline.scm (apropos-completion-function): regexp-quote text to
be completed.
1998-06-13 18:08:25 +00:00
Mikael Djurfeldt
a66c53a81e * emacs.scm: Bugfix: Treat `the-last-stack' as a fluid. 1998-06-11 13:26:43 +00:00
Mikael Djurfeldt
10ccfad75f * ioext.c (scm_isatty_p): Accept any kind of data as argument. If
not a tty, return #f.
1998-06-09 21:57:26 +00:00
Mikael Djurfeldt
279ba8c035 * boot-9.scm: Check that (current-input-port) is a tty before
enabling readline.  (Thanks to Michael N. Livshin.)
1998-06-09 21:56:51 +00:00