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: rename function for parsing command line ...
details: https://anonhg.NetBSD.org/src/rev/bef9cd41b4fa
branches: trunk
changeset: 373706:bef9cd41b4fa
user: rillig <rillig%NetBSD.org@localhost>
date: Sat Feb 25 00:07:08 2023 +0000
description:
make: rename function for parsing command line options
No binary change.
diffstat:
usr.bin/make/main.c | 8 ++++----
usr.bin/make/unit-tests/opt.mk | 4 ++--
2 files changed, 6 insertions(+), 6 deletions(-)
diffs (54 lines):
diff -r 720942833884 -r bef9cd41b4fa usr.bin/make/main.c
--- a/usr.bin/make/main.c Fri Feb 24 19:18:50 2023 +0000
+++ b/usr.bin/make/main.c Sat Feb 25 00:07:08 2023 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: main.c,v 1.591 2023/02/15 06:52:58 rillig Exp $ */
+/* $NetBSD: main.c,v 1.592 2023/02/25 00:07:08 rillig Exp $ */
/*
* Copyright (c) 1988, 1989, 1990, 1993
@@ -111,7 +111,7 @@
#include "trace.h"
/* "@(#)main.c 8.3 (Berkeley) 3/19/94" */
-MAKE_RCSID("$NetBSD: main.c,v 1.591 2023/02/15 06:52:58 rillig Exp $");
+MAKE_RCSID("$NetBSD: main.c,v 1.592 2023/02/25 00:07:08 rillig Exp $");
#if defined(MAKE_NATIVE) && !defined(lint)
__COPYRIGHT("@(#) Copyright (c) 1988, 1989, 1990, 1993 "
"The Regents of the University of California. "
@@ -432,7 +432,7 @@
}
static bool
-MainParseArg(char c, const char *argvalue)
+MainParseOption(char c, const char *argvalue)
{
switch (c) {
case '\0':
@@ -624,7 +624,7 @@
dashDash = true;
break;
default:
- if (!MainParseArg(c, argvalue))
+ if (!MainParseOption(c, argvalue))
goto noarg;
}
argv += arginc;
diff -r 720942833884 -r bef9cd41b4fa usr.bin/make/unit-tests/opt.mk
--- a/usr.bin/make/unit-tests/opt.mk Fri Feb 24 19:18:50 2023 +0000
+++ b/usr.bin/make/unit-tests/opt.mk Sat Feb 25 00:07:08 2023 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: opt.mk,v 1.6 2020/11/18 01:06:59 sjg Exp $
+# $NetBSD: opt.mk,v 1.7 2023/02/25 00:07:08 rillig Exp $
#
# Tests for the command line options.
@@ -7,7 +7,7 @@
all: .IGNORE
# The options from the top-level make are passed to the sub-makes via
# the environment variable MAKEFLAGS. This is where the " -r -k -d 0"
- # comes from. See MainParseArg.
+ # comes from. See MainParseOption.
${MAKE} -r -f /dev/null -V MAKEFLAGS
@echo
Home |
Main Index |
Thread Index |
Old Index