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(1): improve local variable name in EvalNot...



details:   https://anonhg.NetBSD.org/src/rev/889fa76a54e7
branches:  trunk
changeset: 1016137:889fa76a54e7
user:      rillig <rillig%NetBSD.org@localhost>
date:      Sun Nov 08 22:44:05 2020 +0000

description:
make(1): improve local variable name in EvalNotEmpty

diffstat:

 usr.bin/make/cond.c |  10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diffs (37 lines):

diff -r 5a72cdd0d6f5 -r 889fa76a54e7 usr.bin/make/cond.c
--- a/usr.bin/make/cond.c       Sun Nov 08 22:41:40 2020 +0000
+++ b/usr.bin/make/cond.c       Sun Nov 08 22:44:05 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: cond.c,v 1.191 2020/11/08 22:41:40 rillig Exp $        */
+/*     $NetBSD: cond.c,v 1.192 2020/11/08 22:44:05 rillig Exp $        */
 
 /*
  * Copyright (c) 1988, 1989, 1990 The Regents of the University of California.
@@ -93,7 +93,7 @@
 #include "dir.h"
 
 /*     "@(#)cond.c     8.2 (Berkeley) 1/2/94"  */
-MAKE_RCSID("$NetBSD: cond.c,v 1.191 2020/11/08 22:41:40 rillig Exp $");
+MAKE_RCSID("$NetBSD: cond.c,v 1.192 2020/11/08 22:44:05 rillig Exp $");
 
 /*
  * The parsing of conditional expressions is based on this grammar:
@@ -534,15 +534,15 @@
 static Boolean
 EvalNotEmpty(CondParser *par, const char *value, Boolean quoted)
 {
-    double left;
+    double num;
 
     /* For .ifxxx "...", check for non-empty string. */
     if (quoted)
        return value[0] != '\0';
 
     /* For .ifxxx <number>, compare against zero */
-    if (TryParseNumber(value, &left))
-       return left != 0.0;
+    if (TryParseNumber(value, &num))
+       return num != 0.0;
 
     /* For .if ${...}, check for non-empty string (defProc is ifdef). */
     if (par->if_info->form[0] == '\0')



Home | Main Index | Thread Index | Old Index