Add copyright comment to start of read_line.c whilst there.
sbr/makedir.h \
sbr/message_id.h \
sbr/mime_type.h \
+ sbr/read_line.h \
sbr/terminal.h \
sbr/unquote.h \
thirdparty/jsmn/jsmn.h \
struct msgs *folder_realloc (struct msgs *, int, int);
-/*
- * Flush standard output, read a line from standard input into a static buffer,
- * zero out the newline, and return a pointer to the buffer.
- * On error, return NULL.
- */
-const char *read_line(void);
-
/*
* Print null-terminated PROMPT to and flush standard output. Read answers from
* standard input until one matches an entry in SWITCHES. When one matches,
+/* read_line.c -- read a possibly incomplete line from stdin.
+ *
+ * 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.
+ */
+
#include <h/mh.h>
#include <h/utils.h>
+#include "read_line.h"
+/*
+ * Flush standard output, read a line from standard input into a static buffer,
+ * zero out the newline, and return a pointer to the buffer.
+ * On error, return NULL.
+ */
const char *
read_line(void)
{
--- /dev/null
+/* read_line.h -- read a possibly incomplete line from stdin.
+ *
+ * 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.
+ */
+
+const char *read_line(void);
#include "makedir.h"
#include <fcntl.h>
#include <limits.h>
+#include "read_line.h"
extern char *mhdocdir;
#include "../sbr/m_maildir.h"
#include "../sbr/makedir.h"
#include <pwd.h> /* structure for getpwuid() results */
+#include "../sbr/read_line.h"
#define INSTALLMH_SWITCHES \
X("auto", 0, AUTOSW) \