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

3366 commits

Author SHA1 Message Date
Greg J. Badros
14469b7c69 * format.scm: Use (variable-set! (builtin-variable 'format)) to
re-define format to be format:format (instead of just define,
which interacts poorly with the module system).  Thanks to Shuji
Narazaki for this change.
2000-01-20 20:58:30 +00:00
Mikael Djurfeldt
a177af3496 *** empty log message *** 2000-01-18 18:25:12 +00:00
Mikael Djurfeldt
3fceef5984 * backtrace.c (scm_display_error_message): Bugfix: Don't use
result of scm_list_p as C boolean.
(scm_display_error_message, scm_set_print_params_x): Use new
validation macros. (Thanks to Dirk Herrmann.)
2000-01-18 18:24:57 +00:00
Mikael Djurfeldt
d06bcb02eb *** empty log message *** 2000-01-18 14:13:43 +00:00
Mikael Djurfeldt
a3c8b9fce9 * strports.c (st_end_input): Inserted parenthesis to get operator
grouping correct.

* fports.c, list.c, numbers.c, ports.c, stime.c, symbols.c,
filesys.c, posix.c: Converted docstrings to ANSI C format and
escaped " occurring inside string literals.
2000-01-18 14:13:31 +00:00
Mikael Djurfeldt
d9b6c17032 * net_db.c (scm_resolv_error): Cast result from hstrerror. 2000-01-18 14:13:00 +00:00
Mikael Djurfeldt
e7a96050f2 *** empty log message *** 2000-01-18 13:10:05 +00:00
Mikael Djurfeldt
fc0d72d448 * fports.c, list.c: Converted docstrings to ANSI C format and
escaped " occurring inside string literals.
2000-01-18 13:09:54 +00:00
Mikael Djurfeldt
682eefe9e2 *** empty log message *** 2000-01-18 12:22:26 +00:00
Mikael Djurfeldt
c7940c02eb * posix.c (scm_mknod): Escape " occuring inside docstring. 2000-01-18 12:22:13 +00:00
Mikael Djurfeldt
a0a7b83b09 *** empty log message *** 2000-01-18 11:59:33 +00:00
Mikael Djurfeldt
6d2568e565 * acinclude.m4 (AC_LIBLTDL_CONVENIENCE): Add $(top_srcdir)/libltdl
instead of $(top_builddir)/libltdl to includepath.
2000-01-18 11:59:27 +00:00
Mikael Djurfeldt
56cfe22bf6 *** empty log message *** 2000-01-18 11:27:18 +00:00
Mikael Djurfeldt
c694af806c * multistring.el: New file. 2000-01-18 11:26:56 +00:00
Mikael Djurfeldt
d3818c2982 * alist.c, chars.c, debug.c, dynl.c, dynwind.c, error.c, eval.c,
evalext.c, filesys.c, gc.c, hash.c, hashtab.c, ioext.c,
   keywords.c, list.c, load.c, macros.c, net_db.c, numbers.c,
   objprop.c, ports.c, posix.c, print.c, procprop.c, procs.c,
   ramap.c, regex-posix.c, root.c, scmsigs.c, simpos.c, socket.c,
   stacks.c, stime.c, strings.c, strop.c, strports.c, struct.c,
   symbols.c, throw.c, unif.c, vectors.c, version.c, vports.c,
   weaks.c: Converted docstrings to ANSI C format.

* filesys.c (scm_chmod), simpos.c (s_scm_system), version
(scm_version), vports (scm_make_soft_port): Escape " occuring
inside docstring.
2000-01-18 11:24:37 +00:00
Mikael Djurfeldt
b380b88547 * alist.c, chars.c, debug.c, dynl.c, dynwind.c, error.c, eval.c,
evalext.c, filesys.c, gc.c, hash.c, hashtab.c, ioext.c,
   keywords.c, list.c, load.c, macros.c, net_db.c, numbers.c,
   objprop.c, ports.c, posix.c, print.c, procprop.c, procs.c,
   ramap.c, regex-posix.c, root.c, scmsigs.c, simpos.c, socket.c,
   stacks.c, stime.c, strings.c, strop.c, strports.c, struct.c,
   symbols.c, throw.c, unif.c, vectors.c, version.c, vports.c,
   weaks.c: Converted docstrings to ANSI C format.
2000-01-18 11:24:03 +00:00
Greg J. Badros
fcb1720f87 *** empty log message *** 2000-01-17 19:45:51 +00:00
Greg J. Badros
2cd04b426f * scm_validate.h: Added SCM_VALIDATE_ULONG_COPY,
SCM_VALIDATE_LONG_COPY

* numbers.c: Use SCM_VALIDATE_ULONG_COPY, instead of
SCM_VALIDATE_INUM_COPY to let bigger numbers be used.  Rename a
couple of formal arguments (and fix their uses) to make arguments
match the documentation.
2000-01-17 19:44:01 +00:00
Greg J. Badros
153511a74c *** empty log message *** 2000-01-16 22:07:08 +00:00
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