summaryrefslogtreecommitdiff
path: root/libguile/procprop.h
diff options
context:
space:
mode:
authorAndy Wingo <wingo@pobox.com>2010-04-17 16:03:51 +0200
committerAndy Wingo <wingo@pobox.com>2010-04-17 16:03:51 +0200
commitcb2ce548441824fe1284fc80a3a95394a9fc03d0 (patch)
tree1b64e72c2ae227b03ea1b24a5033f67ba70744fe /libguile/procprop.h
parent1e23b461ecd25c582dd0b10ebb1d7fd22f5e5ec4 (diff)
downloadguile-cb2ce548441824fe1284fc80a3a95394a9fc03d0.tar.gz
add procedure_minimum_arity
* libguile/procprop.h: * libguile/procprop.c (scm_procedure_minimum_arity): New public function, will replace (procedure-property foo 'arity). * libguile/programs.c (scm_i_program_arity): Rework to always provide the most permissive arity.
Diffstat (limited to 'libguile/procprop.h')
-rw-r--r--libguile/procprop.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/libguile/procprop.h b/libguile/procprop.h
index 50f04b261..0f1fd8e36 100644
--- a/libguile/procprop.h
+++ b/libguile/procprop.h
@@ -3,7 +3,7 @@
#ifndef SCM_PROCPROP_H
#define SCM_PROCPROP_H
-/* Copyright (C) 1995,1996,1998,2000, 2006, 2008, 2009 Free Software Foundation, Inc.
+/* Copyright (C) 1995,1996,1998,2000, 2006, 2008, 2009, 2010 Free Software Foundation, Inc.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public License
@@ -34,6 +34,7 @@ SCM_API SCM scm_sym_system_procedure;
SCM_INTERNAL int scm_i_procedure_arity (SCM proc, int *req, int *opt, int *rest);
+SCM_API SCM scm_procedure_minimum_arity (SCM proc);
SCM_API SCM scm_procedure_properties (SCM proc);
SCM_API SCM scm_set_procedure_properties_x (SCM proc, SCM alist);
SCM_API SCM scm_procedure_property (SCM proc, SCM key);