diff options
author | Andy Wingo <wingo@pobox.com> | 2010-04-17 15:02:56 +0200 |
---|---|---|
committer | Andy Wingo <wingo@pobox.com> | 2010-04-17 15:21:08 +0200 |
commit | 07e424b753b31702bdee9a2f144af8dd407abfaf (patch) | |
tree | 6abb585285a30776f4d48209b362f0dffc672f7d /libguile/procs.c | |
parent | 90fa152c1d2cf2e57050ac0f9da7eba1449bbc26 (diff) | |
download | guile-07e424b753b31702bdee9a2f144af8dd407abfaf.tar.gz |
scm_i_program_properties is internal; just use procedure-properties
* libguile/programs.h:
* libguile/programs.c (scm_i_program_properties): Make internal.
(scm_program_name): Use scm_i_program_properties.
* libguile/procprop.c (scm_procedure_properties): Use
scm_i_program_properties, for programs.
* libguile/procs.c (scm_procedure_documentation): Use procedure-property
to get to 'documentation, not program-property.
* module/system/vm/program.scm (program-properties, program-property):
Remove from the exports list.
(program-documentation): Use procedure-property.
* module/texinfo/reflection.scm (macro-arguments)
(macro-additional-stexi)
(object-stexi-documentation): Use procedure-property, not
program-property.
Diffstat (limited to 'libguile/procs.c')
-rw-r--r-- | libguile/procs.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/libguile/procs.c b/libguile/procs.c index 10ae8855f..c6fab7214 100644 --- a/libguile/procs.c +++ b/libguile/procs.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1995,1996,1997,1999,2000,2001, 2006, 2008, 2009 Free Software Foundation, Inc. +/* Copyright (C) 1995,1996,1997,1999,2000,2001, 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 @@ -86,10 +86,7 @@ SCM_DEFINE (scm_procedure_documentation, "procedure-documentation", 1, 0, 0, #define FUNC_NAME s_scm_procedure_documentation { SCM_VALIDATE_PROC (SCM_ARG1, proc); - if (SCM_PROGRAM_P (proc)) - return scm_assq_ref (scm_program_properties (proc), sym_documentation); - else - return SCM_BOOL_F; + return scm_procedure_property (proc, sym_documentation); } #undef FUNC_NAME |