* validate.h (SCM_VALIDATE_OPOUTSTRPORT): New macro.
[bpt/guile.git] / libguile / options.h
index d0462af..7b36fc2 100644 (file)
@@ -2,7 +2,7 @@
 
 #ifndef OPTIONSH
 #define OPTIONSH
-/*     Copyright (C) 1995,1996 Mikael Djurfeldt
+/*     Copyright (C) 1995,1996, 2000 Free Software Foundation
  * 
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
@@ -16,7 +16,8 @@
  * 
  * You should have received a copy of the GNU General Public License
  * along with this software; see the file COPYING.  If not, write to
- * the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
+ * the Free Software Foundation, Inc., 59 Temple Place, Suite 330,
+ * Boston, MA 02111-1307 USA
  *
  * As a special exception, the Free Software Foundation gives permission
  * for additional uses of the text contained in its release of GUILE.
@@ -43,8 +44,7 @@
  * If you do not wish that, delete this exception notice.
  *
  * The author can be reached at djurfeldt@nada.kth.se
- * Mikael Djurfeldt, SANS/NADA KTH, 10044 STOCKHOLM, SWEDEN
- */
+ * Mikael Djurfeldt, SANS/NADA KTH, 10044 STOCKHOLM, SWEDEN */
 \f
 
 #include "libguile/__scm.h"
@@ -55,7 +55,12 @@ typedef struct scm_option
 {
   int type;
   char *name;
+
+  /*
+    schizophrenic use: both SCM and int
+   */
   unsigned long val;
+  /* SCM val */
   char *doc;
 } scm_option;
 
@@ -63,16 +68,15 @@ typedef struct scm_option
 #define SCM_OPTION_INTEGER 1
 #define SCM_OPTION_SCM     2
 
-extern SCM scm_yes_sym, scm_no_sym;
 
-#ifdef __STDC__
-extern SCM scm_options (SCM new_mode, scm_option options[], int n, char *s);
+extern SCM scm_options (SCM new_mode, scm_option options[], int n, const 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_options ();
-extern void scm_init_opts ();
-extern void scm_init_options ();
-#endif /* STDC */
 
 #endif /* OPTIONSH */
+
+/*
+  Local Variables:
+  c-file-style: "gnu"
+  End:
+*/