Source-Changes-HG archive

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

[src/trunk]: src/usr.bin/make make the code look like to 1.266



details:   https://anonhg.NetBSD.org/src/rev/0af7d8c939a6
branches:  trunk
changeset: 354513:0af7d8c939a6
user:      christos <christos%NetBSD.org@localhost>
date:      Mon Jun 19 15:49:21 2017 +0000

description:
make the code look like to 1.266

diffstat:

 usr.bin/make/main.c |  12 ++++--------
 1 files changed, 4 insertions(+), 8 deletions(-)

diffs (47 lines):

diff -r 27750bda5a86 -r 0af7d8c939a6 usr.bin/make/main.c
--- a/usr.bin/make/main.c       Mon Jun 19 14:59:06 2017 +0000
+++ b/usr.bin/make/main.c       Mon Jun 19 15:49:21 2017 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: main.c,v 1.270 2017/06/19 14:59:06 christos Exp $      */
+/*     $NetBSD: main.c,v 1.271 2017/06/19 15:49:21 christos Exp $      */
 
 /*
  * Copyright (c) 1988, 1989, 1990, 1993
@@ -69,7 +69,7 @@
  */
 
 #ifndef MAKE_NATIVE
-static char rcsid[] = "$NetBSD: main.c,v 1.270 2017/06/19 14:59:06 christos Exp $";
+static char rcsid[] = "$NetBSD: main.c,v 1.271 2017/06/19 15:49:21 christos Exp $";
 #else
 #include <sys/cdefs.h>
 #ifndef lint
@@ -81,7 +81,7 @@
 #if 0
 static char sccsid[] = "@(#)main.c     8.3 (Berkeley) 3/19/94";
 #else
-__RCSID("$NetBSD: main.c,v 1.270 2017/06/19 14:59:06 christos Exp $");
+__RCSID("$NetBSD: main.c,v 1.271 2017/06/19 15:49:21 christos Exp $");
 #endif
 #endif /* not lint */
 #endif
@@ -862,10 +862,6 @@
                char *var = (char *)Lst_Datum(ln);
                char *value;
                char *p1;
-               Boolean noExpand;
-
-               if ((noExpand = (*var == '\\'))) 
-                       var++;
                
                if (strchr(var, '$')) {
                        value = p1 = Var_Subst(NULL, var, VAR_GLOBAL,
@@ -880,7 +876,7 @@
                        value = p1 = Var_Subst(NULL, tmp, VAR_GLOBAL,
                            VARF_WANTRES);
                } else {
-                       value = p1 = Var_Value(var, VAR_GLOBAL, &p1);
+                       value = Var_Value(var, VAR_GLOBAL, &p1);
                }
                printf("%s\n", value ? value : "");
                free(p1);



Home | Main Index | Thread Index | Old Index