summaryrefslogtreecommitdiff
path: root/libguile/procprop.h
diff options
context:
space:
mode:
authorAndy Wingo <wingo@pobox.com>2010-04-17 16:28:52 +0200
committerAndy Wingo <wingo@pobox.com>2010-04-17 16:28:52 +0200
commit3fc7e2c12370f4c6386dafe127640f1ef1c6d76b (patch)
treefa98054a196d1515704c3c9a40093e31c83b1e84 /libguile/procprop.h
parentcb2ce548441824fe1284fc80a3a95394a9fc03d0 (diff)
downloadguile-3fc7e2c12370f4c6386dafe127640f1ef1c6d76b.tar.gz
deprecate arity access via (procedure-properties proc 'arity)
* libguile/procprop.h (scm_sym_arity): Deprecate. I didn't move it to deprecated.h though, because that might have some boot implications -- though I didn't check. * libguile/procprop.c (scm_procedure_properties) (scm_set_procedure_properties_x, scm_procedure_property) (scm_set_procedure_property_x): Deprecate access to a procedure's arity via procedure-properties. Users should use procedure-minimum-arity. * module/ice-9/channel.scm (eval): * module/ice-9/session.scm (arity): * module/language/tree-il/analyze.scm (validate-arity): Fix up instances of (procedure-property x 'arity) to use procedure-minimum-arity.
Diffstat (limited to 'libguile/procprop.h')
-rw-r--r--libguile/procprop.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/libguile/procprop.h b/libguile/procprop.h
index 0f1fd8e36..c8c156a25 100644
--- a/libguile/procprop.h
+++ b/libguile/procprop.h
@@ -28,7 +28,9 @@
SCM_API SCM scm_sym_name;
-SCM_API SCM scm_sym_arity;
+#if (SCM_ENABLE_DEPRECATED == 1)
+SCM_DEPRECATED SCM scm_sym_arity;
+#endif
SCM_API SCM scm_sym_system_procedure;