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

3084 commits

Author SHA1 Message Date
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
Greg J. Badros
5416c39014 *** empty log message *** 1999-12-14 18:55:09 +00:00
Greg J. Badros
9b1594fd19 * snarf.h: Put SCM_PROC and SCM_PROC1 back in for
backward-compatibility of packages that use Guile.  Internally
Guile should not use them, though.  (Maybe enforce this with a new
-DBUILDING_GUILE compile-time flag?).
1999-12-14 18:54:31 +00:00
Greg J. Badros
8496a851e3 *** empty log message *** 1999-12-14 18:16:57 +00:00
Greg J. Badros
dceef6be43 *** empty log message *** 1999-12-14 17:42:51 +00:00
Greg J. Badros
12b4f7e944 * configure.in: Make it be guile-snarf.awk, since we'll be
switching names for guile-doc-snarf.  (I wouldn't have changed
this, but I was getting ready to commit this way when the below
change was committed).
1999-12-14 17:42:16 +00:00
Greg J. Badros
e8e9b690b4 * backtrace.c (scm_set_print_params_x): Renamed from
set_print_params_x.

* guile-doc-snarf.in: Use guile-snarf.awk, not
guile-doc-snarf.awk.  Pass the basename of $filename

* load.h: Added prototypes for scm_sys_library_dir,
scm_sys_site_dir.

* load.c (scm_sys_library_dir, scm_sys_site_dir):  Added these
functions, and took out the old scm_library_dir, scm_site_dir,
scm_pkgdata_dir.  Now the primitives are %package-data-dir
(already existed), %library-dir, and %site-dir.

* debug.c: Use SCM_MISC_ERROR when possible instead of using
s_scm_* in a scm_misc_error() call.

* Makefile.am: Use guile-snarf.awk, not guile-doc-snarf.awk.  Make
using guile-doc-snarf send stdout to $@ to create the .x file like
guile-snarf does.

* guile-snarf.awk.in: Added.
1999-12-14 17:41:59 +00:00
Mikael Djurfeldt
5623a9b459 * guile-doc-snarf.awk: Removed.
* guile-doc-snarf.awk.in: Added.

* ports.c (s_scm_pt_member): Fixed validation.

* guile-doc-snarf.in (filename): Use basename in order to strip
away path.

* debug.c (scm_make_iloc, s_scm_proc_to_mem): Added missing
semicolon.
(scm_memcons, scm_memcons, mem_to_proc): Renamed function name
strings to new form.

* backtrace.c (set_print_params_x): Fixed GUILE_PROC macro.

* tags.h (SCM_UNBOUND): New iflag which is needed for some time to
mark the unboundness of a GOOPS slot.  (Added now in order to
correct a oversight.  Should probably be removed again and
replaced with SCM_UNDEFINED when the corresponding code in GOOPS
is rewritten.)

* print.c (scm_isymnames): Added printed representation for
SCM_UNBOUND.

* eval.c (SCM_CEVAL): Bugfix: Added check for unbound slot in
SCM_IM_SLOT_REF.
1999-12-14 17:08:25 +00:00
Mikael Djurfeldt
763a67161f *** empty log message *** 1999-12-14 17:05:43 +00:00
Mikael Djurfeldt
e000b4d741 * configure.in: Create guile-doc-snarf.awk. 1999-12-14 17:05:34 +00:00
Greg J. Badros
93e6656878 *** empty log message *** 1999-12-14 01:24:19 +00:00