From: Ralph Corderoy Date: Sat, 11 Nov 2017 14:30:21 +0000 (+0000) Subject: geteditor.c: Move interface to own file. X-Git-Url: https://diplodocus.org/git/nmh/commitdiff_plain/8bdb2b459f2cca31774bd29dc971b2a6242421d0?ds=inline;hp=6fdc3cdb023a8bf4e86e292ba3a748c6e7de788f geteditor.c: Move interface to own file. --- diff --git a/Makefile.am b/Makefile.am index 90c3c25a..5e3d092e 100644 --- a/Makefile.am +++ b/Makefile.am @@ -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 \ diff --git a/h/prototypes.h b/h/prototypes.h index 465940a7..8d855ea0 100644 --- a/h/prototypes.h +++ b/h/prototypes.h @@ -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; diff --git a/sbr/geteditor.c b/sbr/geteditor.c index 693d2d77..3b472ec1 100644 --- a/sbr/geteditor.c +++ b/sbr/geteditor.c @@ -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 index 00000000..d2b1c3da --- /dev/null +++ b/sbr/geteditor.h @@ -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); diff --git a/uip/whatnowproc.c b/uip/whatnowproc.c index f61f5b7f..6ea65d4c 100644 --- a/uip/whatnowproc.c +++ b/uip/whatnowproc.c @@ -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" diff --git a/uip/whatnowsbr.c b/uip/whatnowsbr.c index 407a529f..ffbcfbf0 100644 --- a/uip/whatnowsbr.c +++ b/uip/whatnowsbr.c @@ -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"