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

2016 commits

Author SHA1 Message Date
Greg J. Badros
d727c64bf9 * variable.c, version.c: Added documentation, written by hand
since I could not find anything already written that was
relevant.
2000-01-25 01:50:50 +00:00
Gary Houston
d831b03918 * filesys.c (scm_chown): omit port/fdes support if HAVE_FCHOWN is
not defined (thanks to Richard Y. Kim).
2000-01-23 20:25:27 +00:00
Greg J. Badros
88ec97ad6d *** empty log message *** 2000-01-20 21:01:16 +00:00
Greg J. Badros
078e909286 *** empty log message *** 2000-01-20 21:01:13 +00:00
Greg J. Badros
2d8da5fe59 * Makefile.in: Removed, this is auto-generated.
* version.texi, stamp-vti: Removed -- these are auto-generated.
2000-01-20 21:00:55 +00:00
Greg J. Badros
2de14ecd1c Patch from Dirk Hermann:
* list.c: Put some variable initialization code at the point of
declaration; Added a comment for list*; Formatting changes.

* load.c: use SCM_NNULLP to make sure the end of a list is not
reached yet.
2000-01-20 20:59:33 +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
56cfe22bf6 *** empty log message *** 2000-01-18 11:27:18 +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
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
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
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
Greg J. Badros
b7ac28372c *** empty log message *** 2000-01-12 01:53:13 +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
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
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
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
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
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