* * feature.c (scm_set_program_arguments): New function.
authorJim Blandy <jimb@red-bean.com>
Wed, 23 Oct 1996 02:14:09 +0000 (02:14 +0000)
committerJim Blandy <jimb@red-bean.com>
Wed, 23 Oct 1996 02:14:09 +0000 (02:14 +0000)
* feature.h: New declaration for the above.

libguile/feature.c
libguile/feature.h

index 5bf986f..f147b8d 100644 (file)
@@ -62,14 +62,24 @@ scm_add_feature(str)
 
 
 \f
-
 SCM_PROC(s_program_arguments, "program-arguments", 0, 0, 0, scm_program_arguments);
+
 SCM 
 scm_program_arguments ()
 {
   return scm_progargs;
 }
 
+/* Set the value returned by program-arguments, given a normal
+   argc/argv array.  */
+void
+scm_set_program_arguments (argc, argv)
+     int argc;
+     char **argv;
+{
+  scm_progargs = scm_makfromstrs (argc, argv);
+}
+
 
 \f
 
index 5371d37..64a42b8 100644 (file)
@@ -48,6 +48,7 @@
 
 extern void scm_add_feature SCM_P((char* str));
 extern SCM scm_program_arguments  SCM_P((void));
+extern void scm_set_program_arguments SCM_P ((int argc, char **argv));
 extern void scm_init_feature SCM_P((void));
 
 #endif  /* FEATUREH */