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: fix order of parameters in function comments



details:   https://anonhg.NetBSD.org/src/rev/6c3c1530f4e7
branches:  trunk
changeset: 989870:6c3c1530f4e7
user:      rillig <rillig%NetBSD.org@localhost>
date:      Sun Oct 17 18:40:14 2021 +0000

description:
make: fix order of parameters in function comments

No functional change.

diffstat:

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

diffs (61 lines):

diff -r d9cd5e890081 -r 6c3c1530f4e7 usr.bin/make/var.c
--- a/usr.bin/make/var.c        Sun Oct 17 18:13:00 2021 +0000
+++ b/usr.bin/make/var.c        Sun Oct 17 18:40:14 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: var.c,v 1.952 2021/09/23 22:54:09 rillig Exp $ */
+/*     $NetBSD: var.c,v 1.953 2021/10/17 18:40:14 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.952 2021/09/23 22:54:09 rillig Exp $");
+MAKE_RCSID("$NetBSD: var.c,v 1.953 2021/10/17 18:40:14 rillig Exp $");
 
 /*
  * Variables are defined using one of the VAR=value assignments.  Their
@@ -1057,9 +1057,9 @@
  * Otherwise the new value overwrites and replaces the old value.
  *
  * Input:
+ *     scope           scope in which to set it
  *     name            name of the variable to set, is expanded once
  *     val             value to give to the variable
- *     scope           scope in which to set it
  */
 void
 Var_SetExpand(GNode *scope, const char *name, const char *val)
@@ -1135,9 +1135,9 @@
  * concatenated, with a space in between.
  *
  * Input:
+ *     scope           scope in which this should occur
  *     name            name of the variable to modify, is expanded once
  *     val             string to append to it
- *     scope           scope in which this should occur
  *
  * Notes:
  *     Only if the variable is being sought in the global scope is the
@@ -1196,8 +1196,8 @@
  * fallback scopes.
  *
  * Input:
- *     name            Variable to find, is expanded once
- *     scope           Scope in which to start search
+ *     scope           scope in which to start search
+ *     name            name of the variable to find, is expanded once
  */
 bool
 Var_ExistsExpand(GNode *scope, const char *name)
@@ -1222,8 +1222,8 @@
  * or the usual scopes.
  *
  * Input:
+ *     scope           scope in which to search for it
  *     name            name to find, is not expanded any further
- *     scope           scope in which to search for it
  *
  * Results:
  *     The value if the variable exists, NULL if it doesn't.



Home | Main Index | Thread Index | Old Index