Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/bin/sh #ifdef a variable decl/setting with it's use.



details:   https://anonhg.NetBSD.org/src/rev/be1c0280812c
branches:  trunk
changeset: 790996:be1c0280812c
user:      mrg <mrg%NetBSD.org@localhost>
date:      Wed Oct 30 08:38:40 2013 +0000

description:
#ifdef a variable decl/setting with it's use.

diffstat:

 bin/sh/input.c |  10 ++++++++--
 1 files changed, 8 insertions(+), 2 deletions(-)

diffs (48 lines):

diff -r 27cee2ef59ba -r be1c0280812c bin/sh/input.c
--- a/bin/sh/input.c    Wed Oct 30 08:27:01 2013 +0000
+++ b/bin/sh/input.c    Wed Oct 30 08:38:40 2013 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: input.c,v 1.45 2012/03/28 20:11:25 christos Exp $      */
+/*     $NetBSD: input.c,v 1.46 2013/10/30 08:38:40 mrg Exp $   */
 
 /*-
  * Copyright (c) 1991, 1993
@@ -37,7 +37,7 @@
 #if 0
 static char sccsid[] = "@(#)input.c    8.3 (Berkeley) 6/9/95";
 #else
-__RCSID("$NetBSD: input.c,v 1.45 2012/03/28 20:11:25 christos Exp $");
+__RCSID("$NetBSD: input.c,v 1.46 2013/10/30 08:38:40 mrg Exp $");
 #endif
 #endif /* not lint */
 
@@ -238,7 +238,9 @@
 {
        char *p, *q;
        int more;
+#ifndef SMALL
        int something;
+#endif
        char savec;
 
        if (parsefile->strpush) {
@@ -262,7 +264,9 @@
        q = p = parsenextc;
 
        /* delete nul characters */
+#ifndef SMALL
        something = 0;
+#endif
        for (more = 1; more;) {
                switch (*p) {
                case '\0':
@@ -279,7 +283,9 @@
                        break;
 
                default:
+#ifndef SMALL
                        something = 1;
+#endif
                        break;
                }
 



Home | Main Index | Thread Index | Old Index