]> diplodocus.org Git - nmh/commitdiff
geteditor.c: Move interface to own file.
authorRalph Corderoy <ralph@inputplus.co.uk>
Sat, 11 Nov 2017 14:30:21 +0000 (14:30 +0000)
committerRalph Corderoy <ralph@inputplus.co.uk>
Sun, 12 Nov 2017 12:25:29 +0000 (12:25 +0000)
Makefile.am
h/prototypes.h
sbr/geteditor.c
sbr/geteditor.h [new file with mode: 0644]
uip/whatnowproc.c
uip/whatnowsbr.c

index 90c3c25..5e3d092 100644 (file)
@@ -384,6 +384,7 @@ noinst_HEADERS = \
     sbr/folder_pack.h \
     sbr/folder_read.h \
     sbr/folder_realloc.h \
+    sbr/geteditor.h \
     sbr/lock_file.h \
     sbr/m_maildir.h \
     sbr/m_mktemp.h \
index 465940a..8d855ea 100644 (file)
@@ -113,7 +113,6 @@ char *get_charset(void);
 /* Return malloc'd copy of str, or of "" if NULL, exit on failure. */
 char *getcpy(const char *str);
 
-char *get_default_editor(void);
 char *getfolder(int) PURE;
 
 int m_atoi (char *) PURE;
index 693d2d7..3b472ec 100644 (file)
@@ -6,6 +6,7 @@
  */
 
 #include "h/mh.h"
+#include "geteditor.h"
 #include "context_find.h"
 #include "h/utils.h"
 
diff --git a/sbr/geteditor.h b/sbr/geteditor.h
new file mode 100644 (file)
index 0000000..d2b1c3d
--- /dev/null
@@ -0,0 +1,7 @@
+/* geteditor.h -- Determine the default editor to use
+ *
+ * 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. */
+
+char *get_default_editor(void);
index f61f5b7..6ea65d4 100644 (file)
@@ -6,6 +6,7 @@
  */
 
 #include "h/mh.h"
+#include "sbr/geteditor.h"
 #include "sbr/context_save.h"
 #include "sbr/error.h"
 #include "h/done.h"
index 407a529..ffbcfbf 100644 (file)
@@ -38,6 +38,7 @@
  */
 
 #include "h/mh.h"
+#include "sbr/geteditor.h"
 #include "sbr/context_save.h"
 #include "sbr/context_find.h"
 #include "sbr/brkstring.h"