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

1333 commits

Author SHA1 Message Date
Jim Blandy
b8b1f32221 * New directory --- the build-guile command, intended to help
people build Guile-based applications.
* Makefile.am, Makefile.in, build-guile.in: New files.
1997-09-28 03:17:45 +00:00
Jim Blandy
8a01e7548c *** empty log message *** 1997-09-28 03:17:07 +00:00
Jim Blandy
993c846b48 * Makefile.in, md/Makefile.in, time/Makefile.in: Regenerated with
automake 1.2a.
1997-09-28 03:14:31 +00:00
Jim Blandy
af3509d72c * script.c (scm_compile_shell_switches): If we hit the -c or --
arguments, don't set the car of (command-line) to scm_usage_name,
the prettified name of the guile executable; give it the full
path, the way shells usually handle $0.
1997-09-28 03:13:36 +00:00
Jim Blandy
f8392303c5 Thanks to Shiro Kawai:
* gc.c (scm_gc_mark): Pass NULL to scm_wta as the subroutine name.
* ports.h (scm_ptobfuns): The fgets method returns a char *, not
an SCM.
1997-09-28 03:12:42 +00:00
Jim Blandy
cbab9700c3 * Makefile.am (libpath.h): Include the value of the THREAD_LIBS
makefile variable as a build parameter called LIBS.  The
build-guile program will use this, for the time being.
* Makefile.in: Regenerated.

* Makefile.in: Regenerated with automake 1.2a.
1997-09-28 03:12:04 +00:00
Jim Blandy
af01fdcd21 * boot-9.scm (separate-fields-discarding-char,
separate-fields-after-char, separate-fields-before-char): Call
continuation function, RET, as advertised: with each separated
field a separate argument.

* Makefile.in: Regenerated with automake 1.2a.
1997-09-28 03:09:59 +00:00
Jim Blandy
9ba3d4034c * Makefile.am: Add new `build' subdirectory to SUBDIRS.
* configure.in: Add build/Makefile to AC_OUTPUT clause.
* Makefile.in, configure: Regenerated.

* Makefile.in, aclocal.m4: Regenerated with automake 1.2a.
1997-09-28 03:06:14 +00:00
Jim Blandy
73e747bc28 *** empty log message *** 1997-09-28 03:04:17 +00:00
Jim Blandy
86f4024809 Move bug report address to top.
Mention European FTP mirror site.
1997-09-28 03:03:56 +00:00
Jim Blandy
7ed46dc83a Typo. 1997-09-28 03:03:20 +00:00
Mikael Djurfeldt
7e7904004c * ramap.c (scm_array_map): Renamed to scm_array_map_x. Removed
Scheme-level name `array-map' and renamed `serial-array-map' to
`serial-array-map!'.
1997-09-24 21:29:02 +00:00
Mikael Djurfeldt
298aa6e315 scm_array_map & co 1997-09-24 21:28:24 +00:00
Mikael Djurfeldt
bdf8afffb5 * backtrace.c: Introduced exception handlers which now enclose
`display-error' and `display-backtrace' so that error reporting
won't get into infinite loops if an error occurs during displaying
of the error.  This can very easily happen with user supplied
print call-back routines.
1997-09-24 20:18:54 +00:00
Mikael Djurfeldt
152800f1d3 Bugfix of the bugfix. 1997-09-24 19:46:47 +00:00
Mikael Djurfeldt
830613a0e0 *** empty log message *** 1997-09-24 18:17:41 +00:00
Mikael Djurfeldt
1d9ee7c788 * init.c (scm_boot_guile_1): Added scm_init_objects ().
Added #include "objects.h"

* Makefile.am (libguile_la_SOURCES): Added objects.c.
(modinclude_HEADERS): Added objects.h.
1997-09-22 00:45:19 +00:00
Mikael Djurfeldt
0c32d76caf * init.c (scm_boot_guile_1): Added scm_init_objects ().
Added #include "objects.h"

* eval.c (scm_makprom): Added SCM_DEFER_INTS and SCM_ALLOW_INTS.
Add #include "feature.h".

* ports.h (SCM_EOF_OBJECT_P): New macro predicate.
This test is needed at many places in the code and should be
abstracted.  (Motivated by the need of this test in libguiletk.)

* ports.c (scm_eof_object_p), vports.c (sfgetc), strports.c
(scm_eval_string), load.c (scm_primitive_load,
scm_read_and_eval_x), gh_eval.c (gh_eval_str):
Use SCM_EOF_OBJECT_P.

* eval.c (scm_init_eval): Add feature `delay'.
1997-09-22 00:43:52 +00:00
Mikael Djurfeldt
25eaf21abc * eval.c (scm_init_eval): Add feature `delay'. 1997-09-20 13:58:58 +00:00
Mikael Djurfeldt
534a00990b * slib.scm (slib:load): Export.
* boot-9.scm (in-vicinity): Bugfix: Don't add "/" to an empty
vicinity;
Provide defmacro.
1997-09-20 13:57:22 +00:00
Mikael Djurfeldt
8fa5faad81 * r4rs.scm (apply): Set name property to 'apply. 1997-09-17 23:25:35 +00:00
Mikael Djurfeldt
0f7af60091 *** empty log message *** 1997-09-17 18:50:53 +00:00
Mikael Djurfeldt
a4f9b1f613 * boot-9.scm (try-module-linked): Try to find module among those already
registered.
(try-module-dynamic-link): Removed the first test which
corresponds to a call to `try-module-linked'.
(resolve-module): Resolve modules in this order: 1. Already
registered modules (for example those which have been statically
linked), 2. Try to autoload an .scm-file, 3. Try to dynamically
link a .so-file.
1997-09-16 21:31:19 +00:00
Mikael Djurfeldt
0a54457d78 * boot-9.scm (keyword->symbol, display-usage-report): Changed
length --> string-length.  (Thanks to Aleksandar Bakic.)
(separate-fields-discarding-char, separate-fields-after-char,
separate-fields-before-char): Bugfix from Maciej Stachowiak
<mstachow@mit.edu>.  Thanks!
1997-09-16 20:35:15 +00:00
Mikael Djurfeldt
11b0526116 * boot-9.scm (keyword->symbol, display-usage-report): Changed
length --> string-length.
1997-09-16 20:16:57 +00:00
Mikael Djurfeldt
51916da6be * scmhob.h: Removed. 1997-09-16 00:21:06 +00:00
Mikael Djurfeldt
476f3c84b2 * README, ltconfig, ltmain.sh: New libtool: 1.0c. 1997-09-15 22:21:47 +00:00
Mikael Djurfeldt
24b2aac77c * boot-9.scm (iota): Renamed list-reverse! --> reverse! 1997-09-15 21:43:41 +00:00
Mikael Djurfeldt
3a97e02067 *** empty log message *** 1997-09-15 21:36:19 +00:00
Mikael Djurfeldt
a4e6e865d8 *** empty log message *** 1997-09-15 21:27:58 +00:00
Mikael Djurfeldt
e0e4ffd234 * sequences.h, sequences.c, append.h, append.c: Removed. These
files implemented non-R4RS operations which would encourage
non-portable programming style and less easy-to-read code.

* Makefile.am (sequences.h, sequences.c, append.h, append.c):
Removed.

* libguile.h, eval.c, init.c, stime.c, unif.c: Removed #include
sequences.h, #include append.h.

* init.c (scm_boot_guile_1): Removed calls to scm_init_append and
scm_init_sequences.

* stime.c (bdtime2c): Changed scm_obj_length --> scm_vector_length.
1997-09-15 21:26:06 +00:00
Mikael Djurfeldt
6ddf5b7d43 * Makefile.am (sequences.h, sequences.c, append.h, append.c):
Removed.
1997-09-15 21:23:07 +00:00
Mikael Djurfeldt
92396c0aa1 * list.h (SCM_LISTn): New macros. Make list creation in C code
prettier.  The idea comes from STk.

* sequences.h, sequences.c, append.h, append.c: Removed.  These
files implemented non-R4RS operations which would encourage
non-portable programming style and less easy-to-read code.

* Makefile.am (sequences.h, sequences.c, append.h, append.c):
Removed.

* libguile.h, eval.c, init.c, stime.c, unif.c: Removed #include
sequences.h, #include append.h.

* gh.h, gh_list.c: Renamed gh_list_length --> gh_length.

* list.h, list.c: Renamed scm_list_length --> scm_length, scm
1997-09-15 21:20:48 +00:00
Mikael Djurfeldt
e69807f074 * ltmain.sh: Added a missing '\' before \n on line 32. 1997-09-11 09:30:12 +00:00
Mikael Djurfeldt
7cfae7e6ad * session.scm (name): New procedure: Gives name of object.
(source): New procedure: Gives source of object.
1997-09-11 08:59:30 +00:00
Mikael Djurfeldt
80ea260cdf * procprop.h: Added declaration of scm_i_inner_name.
* gsubr.c: New global symbol scm_i_inner_name.

* debug.c (scm_procedure_name): Try procedure property
`inner-name' if `name' fails.

* print.c (scm_iprin1): Use scm_macro_name.

* eval.c (scm_m_define): Give names to macros as well; Only the
first top-level definition gives a procedure/macro a name.
Otherwise confusing names can turn up in backtraces.
(SCM_CEVAL): SCM_IM_DEFINE: Set `inner-name' property instead of
`name'; Give names to macros as well.

* procs.c (scm_closure_p), print.c (scm_iprin1), eval.c
(scm_macro_transformer): Use SCM_CLOSUREP instead of
scm_closure_p.
1997-09-11 00:09:57 +00:00
Mikael Djurfeldt
2c63000098 * syncase.scm (psyncomp): New procedure: Recompiles psyntax.pp.
Should be used inside the (ice-9 syncase) module with (use-syntax
syncase) and with the current directory containing the psyntax.ss
source.
Added hack to transfer syntactic information from the builtin
variable `define' to the slib version if module (ice-9 slib) has
been loaded.
1997-09-10 20:09:31 +00:00
Mikael Djurfeldt
7a0ff2f807 * * boot-9.scm (primitive-macro?): New procedure.
* slib.scm: Added hack which transfers syntactic information from
	the builtin variable `define' to the slib version if module (ice-9
	syncase) has been loaded.  This is necessary to get correct
	expansion inside the slib module.

	* psyntax.ss (build-let, build-named-let): New output
	constructors.
	(build-lexical-var): Seed gensym with symbolic name.
	(self-evaluating?): Add keywords among self-evaluating types.
	(let): New core form.
	(if): Removed from core language.
	(or, and, let, cond): Removed syntactic definitions.
	(sc-expand3): New procedure: Expander which takes optional mode
	and eval-syntactic-expanders-when arguments.

	* syncase.scm (psyncomp): New procedure: Recompiles psyntax.pp.
	Should be used inside the (ice-9 syncase) module with (use-syntax
	syncase) and with the current directory containing the psyntax.ss
	source.
	Added hack to transfer syntactic information from the builtin
	variable `define' to the slib version if module (ice-9 slib) has
	been loaded.
1997-09-10 20:07:04 +00:00
Mikael Djurfeldt
7332df6644 * * eval.c (macro?, macro-type, macro-name, macro-transfomer): New
procedures;
	(prinmacro): Removed.  The code has been moved/merged into print.c
	in order to decrease code redundancy.  We want macros to print in
	a way equivalent to procedures, and it would be silly to duplicate
	the required code.  (We don't want to maintain two places.)
	(macrosmob): Print field is now a NULL pointer.

	* eval.h (scm_macro_p, scm_macro_type, scm_macro_name,
	scm_macro_transformer): New prototypes.
	(scm_tc16_macro): Declared.

*	* print.c (scm_iprin1): Added code for printing of macros.  Macros
	are now printed in a way equivalent to procedures.
1997-09-10 20:05:28 +00:00
Mikael Djurfeldt
87688f5f12 * procs.h (scm_closure_p): Added declaration. 1997-09-10 20:03:55 +00:00
Mikael Djurfeldt
0869cca611 * gc.c (scm_gc_mark): Fixed "rogue pointer in heap" message:
Shouldn't pass "heap" as the subr name.
1997-09-10 20:03:27 +00:00
Mikael Djurfeldt
d43f8c9708 * emacs.scm (emacs-load): Added new parameter `module'.
* syncase.scm (putprop, getprop): Modified to use the object
properties of the variable object corresponding to the symbol;
This way we can ride on the mechanisms of the module system.
Changed `builtin-variable' calls to `define-public' calls.
Setup the hooks sc-expand and sc-interface.

* boot-9.scm (sc-interface, sc-expand): New builtin variables.
(set-current-module): Switch to and from sc-expand as
scm:eval-transformer when going into and out of modules using
syncase macros.
(module-use!): Set scm:eval-transformer to sc-expand when adding
the syncase interface.
1997-09-05 01:21:02 +00:00
Mikael Djurfeldt
1f355b4f35 * syncase.scm (putprop): Temporary fix which publishes new syntax
globally (the old behaviour was complex and connected to the inner
workings of the current module system).
1997-09-04 13:02:10 +00:00
Jim Blandy
1aa8162bdc *** empty log message *** 1997-09-03 22:54:08 +00:00
Mikael Djurfeldt
e9b7bb80d7 * psyntax.ss: Updated.
psyntax.pp: Bugfix: Previous version had some leading "t":s cut
off!
1997-09-03 19:32:26 +00:00
Jim Blandy
614590c57a *** empty log message *** 1997-09-02 23:17:28 +00:00
Jim Blandy
e69ebe6af6 * gh_predicates.c (gh_boolean_p, gh_symbol_p, gh_char_p,
gh_vector_p, gh_pair_p, gh_number_p, gh_string_p, gh_procedure_p,
gh_list_p, gh_inexact_p, gh_exact_p, gh_eq_p, gh_eqv_p,
gh_equal_p): Use SCM_NFALSEP, instead of testing against
SCM_BOOL_T.  Any non-false value is true.
1997-09-02 23:17:15 +00:00
Mikael Djurfeldt
1ff4df7a83 * symbols.h (scm_builtin_bindings, scm_builtin_weak_bindings,
scm_gensym): Added prototypes.

* symbols.c (scm_gensym): New function.  This will speed up
certain types of applications (such as macro systems) which
generate lots of symbols.
1997-09-01 22:28:49 +00:00
Mikael Djurfeldt
e672f1b55a * boot-9.scm (gensym): Removed (replaced by primitive).
(obarray-gensym): Rewritten to use `gensym'.
(gentemp): Rewritten to use `gensym'.
1997-09-01 22:27:58 +00:00
Mikael Djurfeldt
d28da0496e * numbers.c (logand, logior, logxor): Handle 0 or 1 arguments. 1997-09-01 20:41:31 +00:00