1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-05-09 07:00:23 +02:00
Commit graph

3297 commits

Author SHA1 Message Date
Greg J. Badros
55b44a9ec3 * paths.scm: Assume that ~/guile-core/test-suite is the location
of the test suite now.

* tests/version.test: Added -- version.c had 0% coverage before,
now at 100%.

* tests/chars.test: Added -- needed test of char-is-both?.
2000-01-16 22:03:44 +00:00
Marius Vollmer
657fcb5a4a *** empty log message *** 2000-01-15 12:53:32 +00:00
Marius Vollmer
b0749d03c0 * README, HACKING: Moved "Hacking it yourself" section from README
to HACKING.  Updated recommended libtool version to be 1.3.4.
2000-01-15 12:53:15 +00:00
Maciej Stachowiak
b9af3d0e02 * Makefile.am: Augment path when running guile-doc-snarf so
guile-func-name-check is found.
2000-01-15 03:24:25 +00:00
Gary Houston
dc91415623 * configure.in: needs to have --disable-networking, not
--disable-net.
2000-01-14 23:14:33 +00:00
Greg J. Badros
72158b7406 * scm_validate.h (SCM_NUM2LONG_DEF): Fix this macro to just use
def, not SCM_MAKINUM(def);  thanks Janis Bzerins!
2000-01-14 17:35:13 +00:00
Marius Vollmer
5159424f52 *** empty log message *** 2000-01-12 21:42:55 +00:00
Marius Vollmer
eb55e22302 * Makefile.am (EXTRA_DIST): Added "guile.m4". 2000-01-12 21:42:41 +00:00
Mikael Djurfeldt
2eca09c5c4 Replaced #ifdef 0 --> #if 0 2000-01-12 13:06:27 +00:00
Greg J. Badros
59d5245fc8 *** empty log message *** 2000-01-12 08:09:57 +00:00
Greg J. Badros
2cf377147e * net_db.c (s_scm_inet_makeaddr): Use SCM_NUM2ULONG since that's
the way guile-1.3.4 worked, but #if 0 out the version using
SCM_VALIDATE_INUM_COPY for stricter testing.
2000-01-12 08:07:36 +00:00
Greg J. Badros
95aec69f90 *** empty log message *** 2000-01-12 02:25:55 +00:00
Greg J. Badros
dd3c73d230 * guile-doc-snarf.in: Use new $fullfilename for running
guile-func-name-check, and put "$fullfilename" and "$filename" in
quotes at uses to make sure re-splitting on whitespace does not
occur (so filenames w/ embedded whitespace would work okay, though
I sure hope we never have to deal with that! :-) ).  Thanks to
Mikael for pointing out the source_dir != build_dir was broken.
2000-01-12 02:25:40 +00:00
Mikael Djurfeldt
fb4956c9fc *** empty log message *** 2000-01-12 02:17:21 +00:00
Mikael Djurfeldt
fa88b584e9 * Makefile.am (dist-hook): Updated to include oldfmt.c in
distribution archive.
2000-01-12 02:16:50 +00:00
Mikael Djurfeldt
d10385d570 *** empty log message *** 2000-01-12 02:04:54 +00:00
Mikael Djurfeldt
cf38bbf8ba New file: Needed by autogen.sh. 2000-01-12 02:04:30 +00:00
Mikael Djurfeldt
bee447e40d *** empty log message *** 2000-01-12 02:01:29 +00:00
Mikael Djurfeldt
899a7b3c06 *** empty log message *** 2000-01-12 01:54:23 +00:00
Mikael Djurfeldt
eb46d7afa0 * oldfmt.c: New file: Used by application writers to adapt to
new-style error format strings.
2000-01-12 01:54:16 +00:00
Mikael Djurfeldt
49395101f7 * README: Updated with note about oldfmt.c. 2000-01-12 01:53:48 +00:00
Greg J. Badros
b7ac28372c *** empty log message *** 2000-01-12 01:53:13 +00:00
Greg J. Badros
c262d0f1ec Added proper entry for readline.c 2000-01-12 01:53:08 +00:00
Greg J. Badros
c1bfcf602b * scm_validate.h: Added SCM_NUM2LONG_DEF macro. Make
SCM_OUT_OF_RANGE use SCM_MAKINUM, not scm_long2num.  Added
SCM_COERCE_ROSTRING macro.  Added SCM_VALIDATE_NONEMPTYLIST
macro.  Fix SCM_VALIDATE_STRINGORSUBSTR macro to not use SLOPPY
variants.

* ports.c (scm_port_closed_p): Validate that the arg is a PORT,
then return whether it's an open port (was validating that it was
an open port -- this was a bug I introduced back in December, but
my careful reading of diffs caught it).

* numbers.c: Recombine the two conditional-compilation paths for
all the log* primitives -- they were split based on #ifndef
scm_long2num;  factored out a SCM_LOGOP_RETURN macro, and fixed
some bugs and inconsistencies in the two sets of implementations.
(scm_lognot) Fixed *atrocious* re-use of a SCM as an integer!

* ioext.c: Use SCM_ASSERT_RANGE in a couple places, and
SCM_VALIDATE_INUM_COPY once where it should've been used.

* fluids.c (scm_internal_with_fluids): Use
SCM_VALIDATE_LIST_COPYLEN.

* filesys.c: Use SCM_NUM2LONG instead of SCM_VALIDATE_INUM_COPY;
this is questionable as it relaxes type safety, but other changes
were useful and all SCM_NUM2LONG's should probably be
revisited. Use SCM_OUT_OF_RANGE, SCM_WRONG_TYPE_ARG.

* evalext.c: line-break change on 1 line.

* eval.c (nconc2last): Takes a non-empty list as its first
argument, not just a list.

* dynl.c: Use new SCM_COERCE_ROSTRING macro.
2000-01-12 01:51:18 +00:00
Mikael Djurfeldt
d61f6b0288 *** empty log message *** 2000-01-12 01:29:50 +00:00
Mikael Djurfeldt
fd61ba9ee2 * snarf.h (SCM_PROC1): Replaced SCM (*) (...) with
SCM_FUNC_CAST_ARBITRARY_ARGS.
2000-01-12 01:29:42 +00:00
Greg J. Badros
5d2d2ffca7 * dynl.c, feature.c, filesys.c, fports.c, list.c, load.c,
net_db.c, sort.c, stacks.c, unif.c: Use SCM_WTA, SCM_MISC_ERROR
where possible.

* symbols.c (scm_sysintern0): Fixed the function name in a
scm_misc_error invocation.

* print.c (scm_simple_format): Do not need SCM_COERCE_SUBSTR, and
use scm_return_first to ward off latent GC bug that Mikael caught.

* async.c: Use SCM_VALIDATE_ASYNC_COPY one place where it wasn't
used before but should've been.
2000-01-11 23:56:47 +00:00
Greg J. Badros
88423ab1ab *** empty log message *** 2000-01-11 21:50:28 +00:00
Greg J. Badros
951afd33db * autogen.sh: Added messages as we run autogen in subdirectories.
* configure.in: Output libugile/guile-func-name-check script, and
chmod +x it.
2000-01-11 21:50:10 +00:00
Greg J. Badros
0f981281fd * guile-func-name-check.in: Added this script to statically check
#define FUNC_NAME, #undef FUNC_NAME in the source.

* sort.c, posix.c: Fix #undef FUNC_NAME lines to not have trailing
redundant comment, semicolon; caught by new guile-func-name-check
script.

* debug.c: Fix mistaken #define FUNC_NAME for scm_make_iloc.
Caught by new guile-func-name-check-script.

* Makefile.am: Added guile-func-name-check to bin_SCRIPTS

* ramap.c: Fix #if 0'd out code to be syntactically acceptable to
guile-func-name-check.

* guile-doc-snarf.in: Run guile-func-name-check on the file before
doing the snarf.
2000-01-11 21:47:57 +00:00
Marius Vollmer
e723f8de40 Grammar fix. 2000-01-11 20:35:05 +00:00
Marius Vollmer
0d90b76de3 *** empty log message *** 2000-01-11 20:33:40 +00:00
Marius Vollmer
5c68589bb1 * libltdl/autogen.sh: New file.
* autogen.sh: Invoke libltdl/autogen.sh.
2000-01-11 20:33:07 +00:00
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