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

3964 commits

Author SHA1 Message Date
Greg J. Badros
7f15e6359b *** empty log message *** 2000-01-11 19:33:39 +00:00
Greg J. Badros
8aa011a12c * fports.c, ports.c, ports.h, strports.c, vports.c: Make write
port function take const void*, not void*.
2000-01-11 19:32:10 +00:00
Greg J. Badros
bf121b5955 *** empty log message *** 2000-01-11 19:20:17 +00:00
Greg J. Badros
9a8351bc15 * scm_validate.h, chars.c, ports.c, print.c, read.c, strings.c,
strop.c: Use SCM_VALIDATE_ICHR, SCM_VALIDATE_ICHR_COPY instead of
SCM_VALIDATE_CHAR, SCM_VALIDATE_CHAR_COPY.  Change made for
consistency with the other macros dealing with immediate
characters.  (Similar to INT -> INUM change a week or so ago).
2000-01-11 19:19:59 +00:00
Greg J. Badros
7965d98fd6 *** empty log message *** 2000-01-11 18:52:55 +00:00
Greg J. Badros
8641dd9e73 * boot-9.scm expect.scm, syncase.scm: Switch to new style
`simple-format' message strings: substitute ~A for %s, and ~S for
%S.

* boot-9.scm:  Added (define format simple-format) to expose that
primitive via the simpler name until format.scm is loaded.
2000-01-11 18:52:25 +00:00
Greg J. Badros
70d6375376 * dynl.c, error.c, eval.c, feature.c, filesys.c, fports.c, list.c, load.c,
net_db.c, read.c, socket.c: Update error messages to use ~A for
%s, ~S for %S to work with new `simple-format' format and be
standardized better.

* print.h, print.c (scm_simple_format): Added `simple-format'
primitive.  It's the old scm_display_error, with ARGS now a rest
parameter, and the destination first instead of last (and a couple
new capabilities inspired by `format' -- #t as destination means
current-output-port, #f means return the formatted text as a
string.

* gh.h, gh_data.c, ports.h, ports.c: Added some missing const specifications.

* backtrace.c (scm_display_error_message): Rewrote to use
scm_simple_format() procedure.

* __scm.h: Added commented-out #define of GUILE_DEBUG_FREELIST
2000-01-11 18:48:57 +00:00
Marius Vollmer
3370bcf262 * dynl-dl.c, dynl-dld.c, dynl-shl.c, dynl-vms.c: deleted
(obsolete)
2000-01-10 00:48:00 +00:00
Marius Vollmer
6faea98919 * DYNAMIC-LINKING: Removed because it is obsolete. 2000-01-10 00:47:17 +00:00
Marius Vollmer
f73d2411a5 *** empty log message *** 2000-01-10 00:38:02 +00:00
Marius Vollmer
4ed6bae2fc * guile.c: register preloaded modules 2000-01-10 00:37:47 +00:00
Marius Vollmer
4feb69af5a * dynl.c: Use ANSI prototypes.
(sysdep_dynl_link): Use lt_dlopenext instead of lt_dlopen.
* dynl.c: use libltdl if DYNAMIC_LINKING is enabled,
2000-01-10 00:36:26 +00:00
Marius Vollmer
6165ede38b * dynl-dl.c, dynl-dld.c, dynl-shl.c, dynl-vms.c: deleted
(obsolete)
* Makefile.am: likewise, add INCLTDL (libltdl headers) to
INCLUDES, set dlpreopened files in LDFLAGS, link libguile
against libltdl
* DYNAMIC-LINKING: Removed because it is obsolete.
2000-01-10 00:35:30 +00:00
Marius Vollmer
352d134ce5 * boot-9.scm (try-using-libtool-name): Do not bother to look
inside libtool ".la" file, dynamic-link does this for us now.
2000-01-10 00:33:39 +00:00
Marius Vollmer
b7f27d6492 * configure.in: Make "--with-modules=yes" the default. Do not
clear INCLTDL, LIBLTDL prior to processing "--with-modules".
* configure.in: replace --enable-dynamic-linking with
--with-modules, required modules can be specified using
--with-modules="/path/to/mod.la" and will be linked
statically on platforms that don't support dynamic loading,
configure libltdl, configure libtool for dlopening
2000-01-10 00:32:37 +00:00
Marius Vollmer
c96730b1e0 * acinclude.m4: remove GUILE_DLSYM_USCORE, add libtool.m4
(no need to install libtool any more)
2000-01-10 00:31:35 +00:00
Marius Vollmer
5c1e4bff32 Added blurb about libltdl support. 2000-01-09 21:50:39 +00:00
Marius Vollmer
adf21cf1b3 * Makefile.am: add libltdl to SUBDIRS, automake automatically
includes ltconfig, ltmain.sh and acconfig.h in EXTRA_DIST
2000-01-09 21:46:51 +00:00
Marius Vollmer
062339dd1a * libltdl: added using libtoolize -c --ltdl 2000-01-09 21:40:28 +00:00
Gary Houston
38c1d3c4d5 * configure.in: check whether localtime caches TZ. copied from
Emacs 20.5.
	* acconfig.h: add LOCALTIME_CACHE.

	* These changes should make it unnecessary to call tzset from
	Scheme after modifying the TZ environment variable, even if the
	system date facilities cache the value.
	* stime.c (setzone, scm_localtime): added comments.
	(tzset): don't define a noop tzset macro if HAVE_TZSET not defined.
	(setzone): don't call tzset.
	(restorezone): call tzset only if HAVE_TZSET is defined.
	(scm_tzset): don't define if HAVE_TZSET not defined.  Change the
	doc string to indicate that this procedure isn't likely to do
	anything useful.
	(scm_localtime, scm_strftime, scm_mktime): call tzset if
	LOCALTIME_CACHE is defined.
2000-01-09 20:50:03 +00:00
Mikael Djurfeldt
b9bb8cab62 *** empty log message *** 2000-01-09 17:08:25 +00:00
Mikael Djurfeldt
576cdec4d6 * readline.c (match_paren): Changed return type to int (this is
the definition in readline 4) and modified code layout according
to GNU coding standards.
2000-01-09 17:01:34 +00:00
Mikael Djurfeldt
9359d6578a *** empty log message *** 2000-01-09 16:09:22 +00:00
Mikael Djurfeldt
127ec750f7 * posix.c (scm_sync): Return SCM_UNSPECIFIED. 2000-01-09 16:09:15 +00:00
Gary Houston
f25f761dac * eval.c: define scm_unbound_variable_key ('unbound-variable).
scm_lookupcar1: throw an error with key 'unbound-variable instead
	of 'misc-error when an unbound variable is encountered.

	* filesys.c (scm_mkdir, scm_rmdir, scm_getcwd, scm_select,
	scm_symlink, scm_readlink, scm_lstat),
	posix.c (scm_setpgid, scm_setsid, scm_ctermid, scm_tcgetpgrp,
	scm_tcsetpgrp, scm_uname, scm_setlocale, scm_mknod, scm_nice,
	scm_sync),
	simpos.c (scm_system),
	stime.c (scm_times, scm_strptime):
	move the HAVE_XXX feature tests out of the procedure bodies.
	don't use SCM_SYSMISSING.
	scm_validate.h (SCM_SYSMISSING): removed.
	error.h, error.c (scm_sysmissing): comment that this is deprecated.
	see ChangeLog entry for 1999-12-28.
2000-01-09 13:41:53 +00:00
Greg J. Badros
a4dd2611b1 *** empty log message *** 2000-01-09 03:52:36 +00:00
Greg J. Badros
0274863396 * scm_validate.h (SCM_VALIDATE_BOOL_COPY): Fix typo. 2000-01-09 03:52:29 +00:00
Greg J. Badros
2fdcf8bdf0 * backtrace.c: Fix spelling typo in a comment.
* snarf.h: Use new SCM_DOCS macro to encapsulate the non SCM_INIT
text.  Reformatted some of the expansions.
2000-01-09 01:07:17 +00:00
Mikael Djurfeldt
2de257bd05 Cosmetic fixes 2000-01-08 01:09:11 +00:00
Greg J. Badros
5ac3645178 *** empty log message *** 2000-01-07 23:54:40 +00:00
Greg J. Badros
1e76143f0f * scm_validate.h (SCM_OUT_OF_RANGE): Use scm_out_of_range_pos to
report the position of the argument.

* error.h, error.c (scm_out_of_range_pos):  Added this function to
take extra "pos" argument, the position number of the errant
argument.

* debug.c: Use SCM_OUT_OF_RANGE instead of scm_out_of_range.

* snarf.h: Use SCM_HERE and SCM_INIT as names, not SCM_NOTSNARF
and SCM_SNARFING.  Also put the %%% in the SCM_INIT since Mikael
prefers that and I'm reasonably indifferent.
2000-01-07 23:53:20 +00:00
Mikael Djurfeldt
73d8385e9f * snarf.h (SCM_INSITU, SCM_INIT): Resurrected. 2000-01-07 23:33:29 +00:00
Greg J. Badros
4b4d0898a6 * snarf.h: Factor out differences between C++ and non-C++ into
SCM_FUNC_CAST_ARBITRARY_ARGS macro.  Modify all the snarf macro
definitions to use SCM_NOTSNARF and SCM_SNARFING macros (like
Mikael's macros, below, but changed names and SCM_SNARFING no
longer expands to include %%% -- that must appear in the argument
so that the token appears at the call-site as a reminder).
2000-01-07 23:05:04 +00:00
Mikael Djurfeldt
03ec84b88b Added extra newline in SCM_INIT macro. 2000-01-07 00:51:16 +00:00
Mikael Djurfeldt
088bb1d4c1 *** empty log message *** 2000-01-07 00:29:39 +00:00
Mikael Djurfeldt
bfe19b466f * snarf.h (SCM_INSITU, SCM_INIT): New snarf macros for use in user
snarf macro definitions.
2000-01-07 00:29:28 +00:00
Mikael Djurfeldt
636480e686 *** empty log message *** 2000-01-06 22:13:34 +00:00
Mikael Djurfeldt
90e49489b2 * chars.c (scm_integer_to_char): Use Greg's nice
SCM_VALIDATE_INUM_RANGE macro for argument checking for closer
adherence to R5RS.
2000-01-06 22:13:25 +00:00
Greg J. Badros
7c5628e2a8 *** empty log message *** 2000-01-06 19:52:01 +00:00
Greg J. Badros
c3ee75204c * *.c, snarf.h: Replace GUILE_PROC1 with SCM_DEFINE1 throughout. 2000-01-06 19:51:45 +00:00
Greg J. Badros
2cc0f8cb17 *** empty log message *** 2000-01-06 19:23:55 +00:00
Greg J. Badros
abc049a9b9 * Makefile.am (ETAGS_ARGS): Switch to SCM_DEFINE, SCM_DEFINE1
instead of GUILE_PROC.
2000-01-06 19:23:40 +00:00
Greg J. Badros
7e9f965801 * alist.c: Do not report mismatch errors on some uses of `tmp' (do
this by using SCM_ARG2 instead of `2' in the SCM_VALIDATE_CONS
macro call.
2000-01-06 19:22:43 +00:00
Greg J. Badros
9179dcdd2e *** empty log message *** 2000-01-06 18:16:44 +00:00
Greg J. Badros
921a7441d4 scm_validate.h: Remove some redundant NIMP tests. 2000-01-06 18:04:14 +00:00
Greg J. Badros
bc00b4625c scm_validate.h: Remove some redundant NIMP tests. 2000-01-06 18:02:16 +00:00
Greg J. Badros
e1385ffcd6 * alist.c: minimize scope of the tmp variables, and initialize
them when declared. The strange SCM_NIMP tests are replaced by
SCM_CONSP tests that more closely reflect the intended semantics.
However, we don't get a performance penalty here, because the
SCM_CONSP test was performed by the ALISTCELL test anyway.  * The
extremely ugly use of ASRTGO macros was removed: The calls to
ASRTGO were not encapsulated by "#ifndef SCM_RECKLESS", but got a
label parameter that only exists when SCM_RECKLESS is not defined.
This works, because ASRTGO itself is defined in a way that it only
makes use of the label parameter if SCM_RECKLESS is not defined
(shudder!).  Does guile make at all use of the possibility to
define SCM_RECKLESS?  * Codesize is likely to be reduced, since
instead of two calls to SCM_ASSERT performed by the ALISTCELL test
we now only get one test.

* list.c: Use SCM_NNULLP, not SCM_NIMP as appropriate.  Also use
SCM_NULLP instead of SCM_IMP.  Drop use of "register" keyword on
some variables in `list?'.  Fix `reverse' and `reverse!'
primitives to handle improper lists better.
2000-01-06 18:00:33 +00:00
Greg J. Badros
15b3328066 *** empty log message *** 2000-01-06 16:44:56 +00:00
Greg J. Badros
3b3b36ddb7 * *.[ch]: Whitespace changes -- added space after SCM_VALIDATE_*
macros and SCM_DEFINE macros to match GNU coding standards.
2000-01-05 19:25:37 +00:00
Greg J. Badros
cbaee92a8b * readline.c: Whitespace changes -- added space after
SCM_VALIDATE_* macros to match GNU coding standards.
2000-01-05 19:20:06 +00:00