summaryrefslogtreecommitdiff
path: root/libguile/options.h
diff options
context:
space:
mode:
authorHan-Wen Nienhuys <hanwen@lilypond.org>2007-01-19 19:35:36 +0000
committerHan-Wen Nienhuys <hanwen@lilypond.org>2007-01-19 19:35:36 +0000
commit03347a975b726f4b645339660156f62aba1f27ec (patch)
tree540449204d6516103eae2037f7b7f7c8e3847694 /libguile/options.h
parentb0763985c406ea86dde87854cfaabc175c293eb1 (diff)
downloadguile-03347a975b726f4b645339660156f62aba1f27ec.tar.gz
* options.c (scm_options_try): new function. This allows error
reporting before changing options in a critical section. * options.c: remove n (for length) from scm_option_X functions. Detect option list length by looking for NULL name.
Diffstat (limited to 'libguile/options.h')
-rw-r--r--libguile/options.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/libguile/options.h b/libguile/options.h
index 71761245e..5b9664958 100644
--- a/libguile/options.h
+++ b/libguile/options.h
@@ -40,6 +40,7 @@ typedef struct scm_t_option
#define SCM_OPTION_SCM 2
+SCM_API SCM scm_options_try (SCM args, scm_t_option options[], const char *s, int dry_run);
SCM_API SCM scm_options (SCM, scm_t_option [], const char*);
SCM_API void scm_init_opts (SCM (*) (SCM), scm_t_option []);
SCM_API void scm_init_options (void);