Andy Wingo
6f294ecc75
Devolve more validate macros
...
* libguile.h: Add chooks.h.
* libguile/Makefile.am: Add chooks.h and chooks.c.
* libguile/chooks.c:
* libguile/chooks.h: New files, for the C implementation of hooks.
Broken out to avoid cycles in gc.h includes.
* libguile/gc.h:
* libguile/gc.c (scm_i_gc_admin_mutex, scm_i_sweep_mutex): Remove unused
mutexes. Include chooks instead of hooks in the main header.
* libguile/deprecated.h (scm_gc_running_p): Deprecate this macro always
defined to 0.
(SCM_VALIDATE_VECTOR_OR_DVECTOR): Deprecate this weird one too.
* libguile/array-map.c: Add procs.h include.
* libguile/threads.h:
* libguile/vm.c:
* libguile/r6rs-ports.c: Add smob.h include.
* libguile/atomic.h (SCM_VALIDATE_ATOMIC_BOX): Devolve.
* libguile/deprecation.c (scm_c_issue_deprecation_warning): Remove use
of scm_gc_running_p.
* libguile/error.c (scm_error_scm): Remove use of scm_gc_running_p.
* libguile/filesys.h (SCM_VALIDATE_DIR)
* libguile/fluids.h (SCM_VALIDATE_FLUID)
* libguile/fports.h (SCM_VALIDATE_FPORT, SCM_VALIDATE_OPFPORT)
* libguile/generalized-arrays.h (SCM_VALIDATE_ARRAY)
* libguile/hooks.h (SCM_VALIDATE_HOOK)
* libguile/keywords.h (SCM_VALIDATE_KEYWORD)
* libguile/ports.h (SCM_VALIDATE_PORT, SCM_VALIDATE_INPUT_PORT)
(SCM_VALIDATE_OUTPUT_PORT, SCM_VALIDATE_OPINPORT)
(SCM_VALIDATE_OPENPORT, SCM_VALIDATE_OPPORT, SCM_VALIDATE_OPOUTPORT)
* libguile/procs.h (SCM_VALIDATE_PROC)
* libguile/random.h (SCM_VALIDATE_RSTATE)
* libguile/regex-posix.h (SCM_VALIDATE_RGXP)
* libguile/stacks.h (SCM_VALIDATE_STACK, SCM_VALIDATE_FRAME)
* libguile/strports.h (SCM_VALIDATE_OPOUTSTRPORT)
* libguile/struct.h (SCM_VALIDATE_STRUCT SCM_VALIDATE_VTABLE)
* libguile/symbols.h (SCM_VALIDATE_SYMBOL)
* libguile/variable.h (SCM_VALIDATE_VARIABLE)
* libguile/vectors.h (SCM_VALIDATE_VECTOR SCM_VALIDATE_VECTOR_LEN):
Devolve.
* libguile/validate.h: It's empty now!
hooks squish
2018-06-18 10:50:17 +02:00
Andy Wingo
86fd6dff2a
add scm_call_n, scm_c_run_hookn
...
* libguile/eval.h:
* libguile/eval.c (scm_call_n): New function, applies a function to an
array of args.
* libguile/hooks.h:
* libguile/hooks.c (scm_c_run_hookn): New function, runs a hook with an
array of args.
2009-12-21 21:06:27 +01:00
Neil Jerram
53befeb700
Change Guile license to LGPLv3+
...
(Not quite finished, the following will be done tomorrow.
module/srfi/*.scm
module/rnrs/*.scm
module/scripts/*.scm
testsuite/*.scm
guile-readline/*
)
2009-06-17 00:22:09 +01:00
Ludovic Courtès
102dbb6f6c
Add `SCM_INTERNAL' macro, use it.
2008-05-31 23:21:02 +02:00
Neil Jerram
5c004b6d6a
* gc.c (mark_gc_async): Change "func_data" to "fn_data", to avoid
...
clash with AIX header file.
* hooks.c (scm_c_hook_add, scm_c_hook_remove): Same again.
* hooks.h (scm_t_c_hook_function, scm_c_hook_add,
scm_c_hook_remove): Same again.
2007-12-29 01:35:33 +00:00
Kevin Ryde
2b829bbb3d
merge from 1.8 branch
2006-04-17 00:05:42 +00:00
Marius Vollmer
92205699d0
The FSF has a new address.
2005-05-23 19:57:22 +00:00
Marius Vollmer
f5710d53b1
Use SCM_SMOB_* instead of SCM_CELL_* as appropriate. Use
...
SCM_SMOB_FLAGS and SCM_SET_SMOB_FLAGS instead of accessing the
zeroth word directly. Use SCM_SMOB_PREDICATE as appropriate.
2004-05-06 16:43:14 +00:00
Marius Vollmer
73be1d9e8e
Changed license terms to the plain LGPL thru-out.
2003-04-05 19:15:35 +00:00
Neil Jerram
387d418c55
* Manual updates on hooks and features.
...
* Fix scm_t_c_hookype_t corruption.
2002-03-16 00:27:25 +00:00
Marius Vollmer
33b001fd89
Prefixed each each exported symbol with SCM_API.
2001-11-02 00:19:12 +00:00
Dirk Herrmann
dee01b012c
* Removed deprecated stuff.
...
* Some more renamings to SCM_<filename>_H.
2001-08-31 12:13:50 +00:00
Thien-Thi Nguyen
a06e3a75b2
Remove "face-lift" comment.
2001-07-09 07:36:48 +00:00
Marius Vollmer
92c2555f69
replace "scm_*_t" with "scm_t_*".
2001-06-14 19:50:43 +00:00
Michael Livshin
fde504077b
* hooks.c (scm_create_hook): deprecated.
...
(make_hook): deleted.
(scm_make_hook): all the hook creation code is now here.
* gc.c (scm_init_gc): don't call `scm_create_hook'. instead make
a hook, make it permanent, and do a `scm_c_define' on it.
2001-05-28 14:18:35 +00:00
Dirk Herrmann
56e55ac7cf
* Removed deprecated hook names.
...
* Fix use of SCM_FLOBUFLEN.
2001-05-08 10:23:17 +00:00
Keisuke Nishida
e841c3e0c0
Smob-related creanup.
2000-12-08 17:32:56 +00:00
Dirk Herrmann
e11f8b42f2
* The name property of hooks is deprecated.
2000-05-26 16:31:22 +00:00
Dirk Herrmann
47457e8a43
* Replace SCM_UNPACK_CAR appropriately.
...
* Only access cons cells via SCM_{SET}?C[AD]R.
* gc.c: Remove unused struct member variable 'valid'.
2000-05-25 09:21:06 +00:00
Mikael Djurfeldt
abd95148aa
* hooks.c, hooks.h (scm_make_hook_with_name): Removed deprecated
...
function.
* hooks.c, hooks.h: New files.
2000-04-21 23:13:26 +00:00