nano

nano with my custom patches
git clone git://bsandro.tech/nano
Log | Files | Refs | README | LICENSE

commit 14bf80399fb476a28df7f3e2dc47a0a80d4f9a86
parent c7acf69cb21a3cc361704c112ec255de34f426ec
Author: David Lawrence Ramsey <pooka109@gmail.com>
Date:   Sat, 22 May 2004 20:19:15 +0000

add missing #ifdefs around prototypes


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1752 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

Diffstat:
MChangeLog | 2++
Msrc/proto.h | 4++++
2 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/ChangeLog b/ChangeLog @@ -149,6 +149,8 @@ CVS code - - proto.h: - Remove unused xpt() and add_marked_sameline() prototypes. (DLR) + - Add missing #ifdefs around the nstristr() and get_mouseinput() + prototypes. (DLR) - rcfile.c: - Move "rebinddelete" up in the list of options so that the list is in alphabetical order. (DLR) diff --git a/src/proto.h b/src/proto.h @@ -438,7 +438,9 @@ int nstricmp(const char *s1, const char *s2); #ifndef HAVE_STRNCASECMP int nstrnicmp(const char *s1, const char *s2, size_t n); #endif +#ifndef HAVE_STRCASESTR const char *nstristr(const char *haystack, const char *needle); +#endif #ifndef NANO_SMALL const char *revstrstr(const char *haystack, const char *needle, const char *rev_start); @@ -470,7 +472,9 @@ int get_ascii_kbinput(WINDOW *win, int kbinput); int get_escape_seq_kbinput(WINDOW *win, int *escape_seq, size_t escape_seq_len); int get_escape_seq_abcd(int kbinput); +#ifndef DISABLE_MOUSE int get_mouseinput(int *mouse_x, int *mouse_y, int shortcut); +#endif int do_first_line(void); int do_last_line(void); size_t xplustabs(void);