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: remove redundant variable in ParseDepende...
details: https://anonhg.NetBSD.org/src/rev/e8074cb7cf38
branches: trunk
changeset: 359472:e8074cb7cf38
user: rillig <rillig%NetBSD.org@localhost>
date: Fri Jan 07 09:28:35 2022 +0000
description:
make: remove redundant variable in ParseDependencyTargetWord
No functional change.
diffstat:
usr.bin/make/parse.c | 17 +++++++----------
1 files changed, 7 insertions(+), 10 deletions(-)
diffs (38 lines):
diff -r a40c1fdf1620 -r e8074cb7cf38 usr.bin/make/parse.c
--- a/usr.bin/make/parse.c Fri Jan 07 09:19:43 2022 +0000
+++ b/usr.bin/make/parse.c Fri Jan 07 09:28:35 2022 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: parse.c,v 1.623 2022/01/07 09:19:43 rillig Exp $ */
+/* $NetBSD: parse.c,v 1.624 2022/01/07 09:28:35 rillig Exp $ */
/*
* Copyright (c) 1988, 1989, 1990, 1993
@@ -106,7 +106,7 @@
#include "pathnames.h"
/* "@(#)parse.c 8.3 (Berkeley) 3/19/94" */
-MAKE_RCSID("$NetBSD: parse.c,v 1.623 2022/01/07 09:19:43 rillig Exp $");
+MAKE_RCSID("$NetBSD: parse.c,v 1.624 2022/01/07 09:28:35 rillig Exp $");
/*
* Structure for a file being read ("included file")
@@ -884,14 +884,11 @@
* have been discovered in the initial Var_Subst and
* we wouldn't be here.
*/
- const char *nested_p = cp;
- FStr nested_val;
-
- (void)Var_Parse(&nested_p, SCOPE_CMDLINE,
- VARE_PARSE_ONLY, &nested_val);
- /* TODO: handle errors */
- FStr_Done(&nested_val);
- cp += nested_p - cp;
+ FStr val;
+
+ (void)Var_Parse(&cp, SCOPE_CMDLINE,
+ VARE_PARSE_ONLY, &val);
+ FStr_Done(&val);
} else
cp++;
}
Home |
Main Index |
Thread Index |
Old Index