]> git.wh0rd.org Git - nano.git/commitdiff
Make tiny nano a tiny bit tinier.
authorBenno Schulenberg <bensberg@justemail.net>
Tue, 27 May 2014 12:34:43 +0000 (12:34 +0000)
committerBenno Schulenberg <bensberg@justemail.net>
Tue, 27 May 2014 12:34:43 +0000 (12:34 +0000)
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@4914 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

ChangeLog
src/global.c

index 4a2f402a6654e663c4bdb9d373747bf60ccae0ff..c79b29133ac88a893f6ab6c99d251d7a5e6ac556 100644 (file)
--- 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.
index ddeb06d6a7ffc835dff3f8eab4382c525e039364..97f504f29094737dd719c25179f6433dfb7df7b4 100644 (file)
@@ -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;