commit 769e81c7c3f94824eaef57bd88c26c497d74733f
parent 0d5e732793e27f003e4305b51d22cc3223fb229b
Author: Benno Schulenberg <bensberg@justemail.net>
Date: Tue, 27 May 2014 12:34:43 +0000
Make tiny nano a tiny bit tinier.
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@4914 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
Diffstat:
2 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/ChangeLog b/ChangeLog
@@ -1,6 +1,7 @@
2014-05-27 Benno Schulenberg <bensberg@justemail.net>
* src/global.c (shortcut_init): Improve the arrangement of help items
under certain compilation conditions.
+ * src/global.c (strtosc): Make tiny nano a bit tinier.
2014-05-26 Benno Schulenberg <bensberg@justemail.net>
* src/cut.c (cut_line): Fix compilation with --enable-tiny.
diff --git a/src/global.c b/src/global.c
@@ -1470,6 +1470,7 @@ sc *strtosc(char *input)
else if (!strcasecmp(input, "casesens")) {
s->scfunc = case_sens_void;
s->execute = FALSE;
+#ifndef NANO_TINY
} else if (!strcasecmp(input, "regexp") ||
!strcasecmp(input, "regex")) {
s->scfunc = regexp_void;
@@ -1477,6 +1478,7 @@ sc *strtosc(char *input)
} else if (!strcasecmp(input, "backwards")) {
s->scfunc = backwards_void;
s->execute = FALSE;
+#endif
} else if (!strcasecmp(input, "dontreplace")) {
s->scfunc = no_replace_void;
s->execute = FALSE;