nano

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

commit 24ae56cd4b369452f792200c9a02e655411b619d
parent 60b942c64f3781d6b28aba6dcde05300809e0fb6
Author: David Lawrence Ramsey <pooka109@gmail.com>
Date:   Fri, 27 Feb 2004 03:06:28 +0000

a few minor cleanups


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

Diffstat:
MChangeLog | 4++++
Msrc/nano.c | 2--
Msrc/nano.h | 6+++---
3 files changed, 7 insertions(+), 5 deletions(-)

diff --git a/ChangeLog b/ChangeLog @@ -73,6 +73,10 @@ CVS code - - Add more descriptive comments explaining the termios and curses setup routines, and turn the keypad on before setting the input mode. (DLR) + - Remove stray HAVE_GETOPT_LONG $ifdefs. (DLR) +- nano.h: + - Move the NANO_H include guard up before the first #include. + (DLR) - search.c: regexp_cleanup() - Only do anything if REGEXP_COMPILED is set. (David Benbennick) diff --git a/src/nano.c b/src/nano.c @@ -3268,8 +3268,6 @@ int main(int argc, char *argv[]) #endif case 'p': SET(PRESERVE); -#ifdef HAVE_GETOPT_LONG -#endif break; #ifndef DISABLE_WRAPJUSTIFY case 'r': diff --git a/src/nano.h b/src/nano.h @@ -19,13 +19,13 @@ * * **************************************************************************/ +#ifndef NANO_H +#define NANO_H 1 + #ifdef HAVE_LIMITS_H #include <limits.h> #endif -#ifndef NANO_H -#define NANO_H 1 - /* Macros for the flags int... */ #define SET(bit) flags |= bit #define UNSET(bit) flags &= ~bit