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

21194 commits

Author SHA1 Message Date
Greg J. Badros
da43d82227 *** empty log message *** 2000-01-03 16:32:09 +00:00
Greg J. Badros
d9de38819e * gc.c (scm_debug_newcell): Added SCM_SETCAR of the newly
allocated cell.

* pairs.h: Added a comment about the need for the SCM_SETCAR in
SCM_NEWCELL macro.
2000-01-03 16:31:45 +00:00
Greg J. Badros
cabe682ce6 * dynl-vms.c, debug.c, coop-threads.c, backtrace.c, eval.c: More
SCM_NIMP tests that were redundant are now eliminated.  Patches
from Dirk Hermann applied by hand.
2000-01-03 16:26:28 +00:00
Gary Houston
d00ae47e13 * posix.c (scm_waitpid): move the HAVE_WAITPID test out of the
procedure body, so that the procedure is left undefined if waitpid
	is not available.  previously in this case the procedure was
	defined but would raise a system-error when called, which is
	pointless.  I intend to make the same change for other procedures
	and deprecate SCM_SYSMISSING and scm_sysmissing.
1999-12-28 21:50:52 +00:00
Mikael Djurfeldt
22efa9960a *** empty log message *** 1999-12-22 11:41:47 +00:00
Mikael Djurfeldt
fb372b0b6c * tests/weaks.test, tests/hooks.test: Added. 1999-12-22 11:41:40 +00:00
Mikael Djurfeldt
159cad8b85 *** empty log message *** 1999-12-22 11:01:54 +00:00
Mikael Djurfeldt
1834aa1ba2 * feature.c (s_scm_add_hook_x): Call scm_wrong_type_arg instead of
scm_misc_error when add-hook! is passed a procedure of wring
arity.  (Thanks to Greg Harvey.)
1999-12-22 11:01:44 +00:00
Mikael Djurfeldt
15b08ebd0d *** empty log message *** 1999-12-22 10:13:57 +00:00
Mikael Djurfeldt
f70d746879 * tests/weaks.test: Added. 1999-12-22 10:13:49 +00:00
Mikael Djurfeldt
a56040a09e *** empty log message *** 1999-12-21 21:47:54 +00:00
Mikael Djurfeldt
ddf8c71286 *** empty log message *** 1999-12-21 21:32:30 +00:00
Mikael Djurfeldt
26cfa3befe * macros.c (scm_make_synt): Use scm_make_subr_opt to make the
transformer subr.  (Thanks to Bill Schottstaedt.)
1999-12-21 21:31:50 +00:00
Mikael Djurfeldt
1e08802b50 *** empty log message *** 1999-12-19 21:39:08 +00:00
Mikael Djurfeldt
11f2a64348 * objects.c (scm_class_of): Bugfix: Inserted missing SCM_CDR
setting struct table class.
1999-12-19 21:39:00 +00:00
Greg J. Badros
71bdf39890 *** empty log message *** 1999-12-19 18:24:29 +00:00
Greg J. Badros
bccab49811 * threads.c, mit-pthreads.c, list.c, coop.c: Remove K&R
prototypes; just use ANSI C prototypes.  I'm not sure how
mit-pthreads.c ever compiled -- it still doesn't for me, but the
normal make procedure does not try to build it anyway (even
--with-threads I get the other threads code building) so I'm not
too worried about it.
1999-12-19 18:24:12 +00:00
Greg J. Badros
3093947745 * tags.h (SCM_CONSP, SCM_NCONSP): Define these in terms of
SCM_SLOPPY_CONSP and SCM_SLOPPY_NCONSP.  (SCM_CONSP) Define this
in terms of SCM_SLOPPY_NCONSP instead of repeating the
expression.

* symbols.h (SCM_SLOPPY_SUBSTRP, SCM_SUBSTRP): Added former, and
define latter in terms of sloppy variant.

* strings.h (SCM_SLOPPY_STRINGP, SCM_STRINGP): Added former, and
define latter in terms of sloppy variant.

* scm_validate.h (SCM_MAKE_VALIDATE): Added this macro to factor
out the commonality of the various basic SCM_VALIDATE_foop
macros. Use SCM_MAKE_VALIDATE macro where possible.  Fix
SCM_VALIDATE_INT_COPY to not use scm_num2ulong -- that does
coercion to an integer which is more advanced than desired and
SCM_NUM2ULONG provides that functionality.  Use SCM_ASSERT_RANGE
appropriately for the various _MIN, _MAX, _RANGE macros.  Drop
some superfluous "SCM_NIMP &&" where possible. Eliminate obsoleted
SCM_VALIDATE_NIMCONS (SCM_VALIDATE_CONS now does the NIMP test as
part of its SCM_CONSP test).

* socket.c, ports.c, pairs.c, list.c, lang.c, async.c: Use
SCM_VALIDATE_CONS, not obsoleted SCM_VALIDATE_NIMCONS.
1999-12-19 01:04:37 +00:00
Greg J. Badros
97b9d8ba4e Ignore guile-snarf.awk (guile-snarf.awk.in is the dist'd file) 1999-12-19 00:20:11 +00:00
Greg J. Badros
7d82e699dc *** empty log message *** 1999-12-18 23:33:44 +00:00
Greg J. Badros
408ea28aeb * dynl.c: Added #include "scm_validate.h" 1999-12-18 23:33:15 +00:00
Greg J. Badros
426b4cde7c Typo fix. 1999-12-18 23:31:22 +00:00
Greg J. Badros
3c3b0e8bd5 *** empty log message *** 1999-12-18 23:24:46 +00:00
Greg J. Badros
4638e08794 * alist.c, chars.c, dynl.c, net_db.c, numbers.c, unif.c: Use
SCM_NUM2ULONG instead of scm_num2ulong; SCM_NUM2LONG instead of
scm_num2long; SCM_WTA instead of scm_wta.  Only done for when
FUNC_NAME was used as an argument of the macro and the formal
argument name was the explicit argument in the old function call.
These were just missed in my first pass of changes.
1999-12-18 23:24:35 +00:00
Mikael Djurfeldt
f334710588 *** empty log message *** 1999-12-18 18:21:55 +00:00
Mikael Djurfeldt
aff882a874 * guile-doc-snarf.in (filename): Strip path to source dir before
touching the .x-files.
1999-12-18 18:21:39 +00:00
Mikael Djurfeldt
f73295a881 *** empty log message *** 1999-12-18 13:42:59 +00:00
Mikael Djurfeldt
f1e1c997b7 * debug.c (scm_reverse_lookup): Bugfix: Reinserted SCM_NIMP. 1999-12-18 13:42:46 +00:00
Mikael Djurfeldt
dcf8fb3e65 * tests/alist.test: Added. 1999-12-18 13:25:04 +00:00
Mikael Djurfeldt
807bfa8361 *** empty log message *** 1999-12-18 13:24:33 +00:00
Mikael Djurfeldt
098f439385 *** empty log message *** 1999-12-18 03:19:18 +00:00
Mikael Djurfeldt
7d2b68a85a * eval.c (SCM_CEVAL): Removed check for unbound slot in
SCM_IM_SLOT_REF.  (This is now handled in a smarter way in GOOPS.)
1999-12-18 03:19:06 +00:00
Mikael Djurfeldt
e1e11745b6 Code layout fixes 1999-12-18 03:18:35 +00:00
Mikael Djurfeldt
d19f1abcb0 *** empty log message *** 1999-12-17 22:36:29 +00:00
Mikael Djurfeldt
76189127e6 * tags.h (SCM_SLOPPY_NCONSP, SCM_SLOPPY_CONSP): New macros.
(SCM_ECONSP): Version which doesn't mix && and || without
parenthesis.
(SCM_NECONSP): Bugfree version.
1999-12-17 22:36:20 +00:00
Greg J. Badros
9fac976eda *** empty log message *** 1999-12-17 20:15:57 +00:00
Greg J. Badros
328ec30c52 * tests/c-api.test: Refine the list of files that are checked in
the seek-offset-test.  Was just using files that end in "c", but
that caught the new ".doc" files, too, so make sure that files end
in ".c" before requiring that they include unistd.h if they
reference SEEK_(SET|CUR|END).
1999-12-17 20:15:35 +00:00
Greg J. Badros
cfaba30ebd * tags.h (SCM_ECONSP, SCM_NECONSP): Fix these macros to have the
SCM_NIMP test integrated into an || clause that I'd missed before
and was causing a segfault in the regression tests.

* symbols.h (SCM_ROUCHARS): Make cast be to (unsigned char *), not
(char *);  fixes a problem reported by the regression test
ports.test.

* ports.c: Fixed a couple of arg/number mismatches in
SCM_VALIDATE_ macros.

Now passes the (not-comprehensive) guile-modules test-suite again!
1999-12-17 20:11:34 +00:00
Mikael Djurfeldt
f172c0b71d Some code layout fixes 1999-12-17 13:08:46 +00:00
Greg J. Badros
df850562d5 *** empty log message *** 1999-12-16 20:49:31 +00:00
Greg J. Badros
0c95b57d77 * coop-threads.c: Remove K&R function headers.
* scm_validate.h: Added SCM_VALIDATE_THREAD.

* *.c: Remove SCM_NIMP(X) when it is an extraneous pre-test given
that SCM_FOOP macros all now include SCM_NIMP in their expansion.
This simplifies lots of code, making it far more readable.
1999-12-16 20:48:05 +00:00
Greg J. Badros
9c24ff3e6c *** empty log message *** 1999-12-16 03:47:20 +00:00
Greg J. Badros
d3a6bc9484 * *.h: Use SCM_NIMP(X) && in all the FOOP macros.
* *.[ch]: Use do { ... } while (0) idiom in macros that expanded
to a bare block.
1999-12-16 03:46:42 +00:00
Gary Houston
f353a9e232 * slib.scm (library-vicinity, home-vicinity,
scheme-implementation-type, scheme-implemenation-version):
	use define-public to export from the module.
1999-12-15 18:12:44 +00:00
Greg J. Badros
e18a3a4d23 *** empty log message *** 1999-12-15 16:35:38 +00:00
Greg J. Badros
901f6de0a1 Search lots of different places, just to be safe, for now. 1999-12-15 16:35:07 +00:00
Greg J. Badros
e1442b1173 * doc.scm: Use `%library-dir', not the quickly defuncted
`library-dir' that I added before realizing the former existed.
Thanks Brad Knotwell!
1999-12-15 16:32:36 +00:00
Mikael Djurfeldt
5f6d07ad97 Changed unbound slot message 1999-12-14 21:47:42 +00:00
Mikael Djurfeldt
8f151b4264 Completed last change 1999-12-14 21:47:03 +00:00
Mikael Djurfeldt
904f5d528e Fix 1999-12-14 21:28:28 +00:00