summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMikael Djurfeldt <djurfeldt@nada.kth.se>1996-08-23 01:20:00 +0000
committerMikael Djurfeldt <djurfeldt@nada.kth.se>1996-08-23 01:20:00 +0000
commitfe90df5148912648f8ea5b7f1386d119077bc48e (patch)
tree968752fa44fc17bc104efc6a1939d05c13349ff1
parentcbff1d8959ffd94ec07393bbd35e104dc9986562 (diff)
downloadguile-fe90df5148912648f8ea5b7f1386d119077bc48e.tar.gz
* options.h, options.c: Options now have documentation strings.
Also added a long explanatory commentary.
-rw-r--r--libguile/options.h11
1 files changed, 7 insertions, 4 deletions
diff --git a/libguile/options.h b/libguile/options.h
index 8499f62a7..6b15d3088 100644
--- a/libguile/options.h
+++ b/libguile/options.h
@@ -55,19 +55,22 @@ typedef struct scm_option
{
int type;
char *name;
- int val;
- SCM sym;
+ unsigned long val;
+ char *doc;
} scm_option;
#define SCM_OPTION_BOOLEAN 0
#define SCM_OPTION_INTEGER 1
+#define SCM_OPTION_SCM 2
+
+extern SCM scm_yes_sym, scm_no_sym;
#ifdef __STDC__
-extern SCM scm_change_options (SCM new_mode, scm_option options[], int n, char *s);
+extern SCM scm_options (SCM new_mode, scm_option options[], int n, char *s);
extern void scm_init_opts (SCM (*func) (SCM), scm_option options[], int n);
extern void scm_init_options (void);
#else /* STDC */
-extern SCM scm_change_options ();
+extern SCM scm_options ();
extern void scm_init_opts ();
extern void scm_init_options ();
#endif /* STDC */