Source-Changes-HG archive

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

[src/trunk]: src/usr.bin/make no need for v->name-- on JUNK vars anymore



details:   https://anonhg.NetBSD.org/src/rev/369be0f3c215
branches:  trunk
changeset: 487631:369be0f3c215
user:      sjg <sjg%NetBSD.org@localhost>
date:      Sat Jun 10 05:54:29 2000 +0000

description:
no need for v->name-- on JUNK vars anymore

diffstat:

 usr.bin/make/var.c |  11 +++--------
 1 files changed, 3 insertions(+), 8 deletions(-)

diffs (38 lines):

diff -r 928e90566147 -r 369be0f3c215 usr.bin/make/var.c
--- a/usr.bin/make/var.c        Sat Jun 10 05:39:16 2000 +0000
+++ b/usr.bin/make/var.c        Sat Jun 10 05:54:29 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: var.c,v 1.52 2000/06/10 04:51:00 mycroft Exp $ */
+/*     $NetBSD: var.c,v 1.53 2000/06/10 05:54:29 sjg Exp $     */
 
 /*
  * Copyright (c) 1988, 1989, 1990, 1993
@@ -39,14 +39,14 @@
  */
 
 #ifdef MAKE_BOOTSTRAP
-static char rcsid[] = "$NetBSD: var.c,v 1.52 2000/06/10 04:51:00 mycroft Exp $";
+static char rcsid[] = "$NetBSD: var.c,v 1.53 2000/06/10 05:54:29 sjg Exp $";
 #else
 #include <sys/cdefs.h>
 #ifndef lint
 #if 0
 static char sccsid[] = "@(#)var.c      8.3 (Berkeley) 3/19/94";
 #else
-__RCSID("$NetBSD: var.c,v 1.52 2000/06/10 04:51:00 mycroft Exp $");
+__RCSID("$NetBSD: var.c,v 1.53 2000/06/10 05:54:29 sjg Exp $");
 #endif
 #endif /* not lint */
 #endif
@@ -1903,11 +1903,6 @@
                    ++tstr;
                    if (v->flags & VAR_JUNK) {
                        /*
-                        * JUNK vars get name = &str[1]
-                        * we want the full name here.
-                        */
-                       v->name--;
-                       /*
                         * We need to strdup() it incase
                         * VarGetPattern() recurses.
                         */



Home | Main Index | Thread Index | Old Index