sbr/r1bindex.h \
sbr/read_line.h \
sbr/read_switch.h \
+ sbr/read_switch_multiword.h \
sbr/read_yes_or_no_if_tty.h \
sbr/readconfig.h \
sbr/refile.h \
struct msgs_array;
-/*
- * Print null-terminated PROMPT to and flush standard output. Read multi-word
- * answers from standard input until a first word matches an entry in SWITCHES.
- * When one matches, return a pointer to an array of pointers to the words.
- * Return NULL on EOF, interrupt, or other error.
- */
-char **read_switch_multiword(const char *PROMPT, const struct swit *SWITCHES);
-
/*
* Same as read_switch_multiword but using readline(3) for input.
*/
*/
#include "h/mh.h"
+#include "read_switch_multiword.h"
#include "smatch.h"
#include "brkstring.h"
#include "ambigsw.h"
--- /dev/null
+/* read_switch_multiword.h -- get an answer from the user and return a string array
+ *
+ * This code is Copyright (c) 2017, by the authors of nmh. See the
+ * COPYRIGHT file in the root directory of the nmh distribution for
+ * complete copyright information. */
+
+/*
+ * Print null-terminated PROMPT to and flush standard output. Read multi-word
+ * answers from standard input until a first word matches an entry in SWITCHES.
+ * When one matches, return a pointer to an array of pointers to the words.
+ * Return NULL on EOF, interrupt, or other error.
+ */
+char **read_switch_multiword(const char *, const struct swit *);
*/
#include "h/mh.h"
+#include "sbr/read_switch_multiword.h"
#include "sbr/seq_setprev.h"
#include "sbr/seq_save.h"
#include "sbr/showfile.h"
*/
#include "h/mh.h"
+#include "sbr/read_switch_multiword.h"
#include "sbr/seq_setprev.h"
#include "sbr/seq_setcur.h"
#include "sbr/seq_save.h"
*/
#include "h/mh.h"
+#include "sbr/read_switch_multiword.h"
#include "sbr/seq_setprev.h"
#include "sbr/seq_setcur.h"
#include "sbr/seq_save.h"
*/
#include "h/mh.h"
+#include "sbr/read_switch_multiword.h"
#include "sbr/concat.h"
#include "sbr/smatch.h"
#include "sbr/r1bindex.h"
*/
#include "h/mh.h"
+#include "sbr/read_switch_multiword.h"
#include "sbr/concat.h"
#include "sbr/seq_setprev.h"
#include "sbr/seq_setcur.h"
*/
#include "h/mh.h"
+#include "sbr/read_switch_multiword.h"
#include "sbr/concat.h"
#include "sbr/seq_setprev.h"
#include "sbr/seq_save.h"