From 025553769ecf0befd6e9f41bdd83c6728af4de82 Mon Sep 17 00:00:00 2001 From: Benno Schulenberg Date: Thu, 18 Jun 2015 19:07:56 +0000 Subject: [PATCH] Deleting two unused things, and adding two comments. git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5257 35c25a1d-7b9e-4130-9fde-d3aeb78583b8 --- ChangeLog | 1 + src/nano.h | 12 ++++-------- 2 files changed, 5 insertions(+), 8 deletions(-) diff --git a/ChangeLog b/ChangeLog index f2b26976..4a898b29 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,6 +1,7 @@ 2015-06-17 Benno Schulenberg * src/rcfile.c: Allow a tiny nano's ~/.nanorc to enable search and position histories. Also sort the options more strictly. + * src/nano.h: Delete two unused things, and add two comments. 2015-06-17 Benno Schulenberg * src/text.c (do_undo, add_undo): When undoing a Backspace at the tail diff --git a/src/nano.h b/src/nano.h index 15ad67b0..3355b427 100644 --- a/src/nano.h +++ b/src/nano.h @@ -192,6 +192,7 @@ typedef enum { JOIN, PASTE, INSERT, ENTER, OTHER } undo_type; +/* Structure types. */ typedef struct color_pair { int pairnum; /* The color pair number used for this foreground color and @@ -272,7 +273,7 @@ typedef struct lintstruct { /* Previous error. */ } lintstruct; - +/* Flags that indicate how a multiline regex applies to a line. */ #define CNONE (1<<1) /* Yay, regex doesn't apply to this line at all! */ #define CBEGINBEFORE (1<<2) @@ -283,13 +284,9 @@ typedef struct lintstruct { /* Whole line engulfed by the regex, start < me, end > me. */ #define CSTARTENDHERE (1<<5) /* Regex starts and ends within this line. */ -#define CWTF (1<<6) - /* Something else. */ - #endif /* !DISABLE_COLOR */ - -/* Structure types. */ +/* More structure types. */ typedef struct filestruct { char *data; /* The text of this line. */ @@ -572,8 +569,7 @@ enum /* An imaginary key for when we get a SIGWINCH (window resize). */ #define KEY_WINCH -2 -/* Extra bits for the undo function. */ -#define UNdel_del (1<<0) +/* Some extra bits for the undo function. */ #define UNdel_backspace (1<<1) #define UNcut_marked_forward (1<<2) #define UNcut_cutline (1<<3) -- 2.39.5