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 parameter of ApplySingle...



details:   https://anonhg.NetBSD.org/src/rev/6e5282110a13
branches:  trunk
changeset: 959748:6e5282110a13
user:      rillig <rillig%NetBSD.org@localhost>
date:      Tue Feb 23 15:07:58 2021 +0000

description:
make: remove redundant parameter of ApplySingleModifier

diffstat:

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

diffs (40 lines):

diff -r 5f74a0eb6cdb -r 6e5282110a13 usr.bin/make/var.c
--- a/usr.bin/make/var.c        Tue Feb 23 15:07:32 2021 +0000
+++ b/usr.bin/make/var.c        Tue Feb 23 15:07:58 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: var.c,v 1.849 2021/02/23 15:03:56 rillig Exp $ */
+/*     $NetBSD: var.c,v 1.850 2021/02/23 15:07:58 rillig Exp $ */
 
 /*
  * Copyright (c) 1988, 1989, 1990, 1993
@@ -140,7 +140,7 @@
 #include "metachar.h"
 
 /*     "@(#)var.c      8.3 (Berkeley) 3/19/94" */
-MAKE_RCSID("$NetBSD: var.c,v 1.849 2021/02/23 15:03:56 rillig Exp $");
+MAKE_RCSID("$NetBSD: var.c,v 1.850 2021/02/23 15:07:58 rillig Exp $");
 
 typedef enum VarFlags {
        VFL_NONE        = 0,
@@ -3701,10 +3701,10 @@
 }
 
 static ApplyModifierResult
-ApplySingleModifier(ApplyModifiersState *st, const char *mod, char endc,
-                   const char **pp)
+ApplySingleModifier(const char **pp, char endc, ApplyModifiersState *st)
 {
        ApplyModifierResult res;
+       const char *mod = *pp;
        const char *p = *pp;
 
        if (DEBUG(VAR))
@@ -3811,7 +3811,7 @@
 
                mod = p;
 
-               res = ApplySingleModifier(&st, mod, endc, &p);
+               res = ApplySingleModifier(&p, endc, &st);
                if (res == AMR_CLEANUP)
                        goto cleanup;
                if (res == AMR_BAD)



Home | Main Index | Thread Index | Old Index