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

5705 commits

Author SHA1 Message Date
Greg J. Badros
5a237c9d5d * snarf.h (SCM_ASSERT): Give new definition of SCM_ASSERT when in
snarfing mode to output a lexically-identifiable sequence that the
guile-snarf.awk script uses to verify argument/position matching.
2000-01-05 18:19:54 +00:00
Greg J. Badros
53fc463692 *** empty log message *** 2000-01-05 16:41:28 +00:00
Greg J. Badros
60a740c41c * paths.scm: Use HOME envvar to find guile-modules (this at least
lets people use a symlink in their home directory to point at
guile-modules, instead of Jim's hard-coded path.
2000-01-05 16:41:12 +00:00
Greg J. Badros
868d52a463 * guile-doc-snarf.awk.in: Removed -- guile-snarf.awk.in is the
current version of the same functionality; it writes the .x output
to stdout instead of directly into the file.
2000-01-05 16:37:28 +00:00
Greg J. Badros
368cf54d89 * unif.c, symbols.c, strings.c, stacks.c, random.c, print.c,
posix.c:  Eliminated a bunch of SCM_NIMP(..)s that are now
redundant with the safer macros.  Patch from Dirk Hermann applied
by hand. Thanks Dirk!

* scm_validate.h: Added SCM_VALIDATE_VECTOR_OR_DVECTOR for some
uses in random.c.

* ramap.c: whitespace change.
2000-01-05 16:16:57 +00:00
Greg J. Badros
339999c72e Moved old ChangeLog text to ChangeLog-1996-1999 (added that file)
and made new ChangeLog with the entries from the new year only.
2000-01-05 01:44:04 +00:00
Greg J. Badros
3b5345d934 *** empty log message *** 2000-01-04 22:24:10 +00:00
Greg J. Badros
0b5f3f34c2 * options.c, objects.c, keywords.c, gc.c: Some redundant SCM_NIMP
removals from Dirk Hermann.

* alist.c: Rename formals to match the parameter names in the
documentation, updates to documentation.  Thanks Dirk Hermann!
2000-01-04 22:23:42 +00:00
Mikael Djurfeldt
db62436ece *** empty log message *** 2000-01-04 17:50:22 +00:00
Mikael Djurfeldt
169aec6538 *** empty log message *** 2000-01-04 17:43:30 +00:00
Mikael Djurfeldt
6f13f9cb90 * eval.c (SCM_CEVAL): Optimization: Reverse order of
scm_stack_checking_enabled_p and SCM_STACK_OVERFLOW_P => speed
gain 4-6% for eval1 benchmark on one machine.  (Thanks to Brad
Knotwell.)
2000-01-04 17:43:18 +00:00
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