]> 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 90c3c25acca0319c62bd957bf8a130ad5a03427e..5e3d092eb90e3cf27cf1fe9d711a977d380dfa37 100644 (file)
@@ -384,6 +384,7 @@ noinst_HEADERS = \
     sbr/folder_pack.h \
     sbr/folder_read.h \
     sbr/folder_realloc.h \
     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 \
     sbr/lock_file.h \
     sbr/m_maildir.h \
     sbr/m_mktemp.h \
index 465940a7a7e62c1cd131829f834aa6ffc342d091..8d855ea0956da456062acd03bbd609338e616ff8 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);
 
 /* 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;
 char *getfolder(int) PURE;
 
 int m_atoi (char *) PURE;
index 693d2d777309404e862ae56514d0f36a75c053db..3b472ec1233aeba79b4471cf30c6d764cb5c3a1b 100644 (file)
@@ -6,6 +6,7 @@
  */
 
 #include "h/mh.h"
  */
 
 #include "h/mh.h"
+#include "geteditor.h"
 #include "context_find.h"
 #include "h/utils.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 f61f5b7fda13dfb41801769039072d8f6c7fbb49..6ea65d4c6354ac657f63fcece6e0b29089839bb5 100644 (file)
@@ -6,6 +6,7 @@
  */
 
 #include "h/mh.h"
  */
 
 #include "h/mh.h"
+#include "sbr/geteditor.h"
 #include "sbr/context_save.h"
 #include "sbr/error.h"
 #include "h/done.h"
 #include "sbr/context_save.h"
 #include "sbr/error.h"
 #include "h/done.h"
index 407a529f1609181ab96e6fbe230e007b2a706e30..ffbcfbf008393d73bc7b9118558a123a09f2f5f9 100644 (file)
@@ -38,6 +38,7 @@
  */
 
 #include "h/mh.h"
  */
 
 #include "h/mh.h"
+#include "sbr/geteditor.h"
 #include "sbr/context_save.h"
 #include "sbr/context_find.h"
 #include "sbr/brkstring.h"
 #include "sbr/context_save.h"
 #include "sbr/context_find.h"
 #include "sbr/brkstring.h"