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): unexport For_Iterate



details:   https://anonhg.NetBSD.org/src/rev/6875f9f0bef1
branches:  trunk
changeset: 943479:6875f9f0bef1
user:      rillig <rillig%NetBSD.org@localhost>
date:      Fri Sep 04 17:35:00 2020 +0000

description:
make(1): unexport For_Iterate

By convention, exported functions have an underscore, and static
functions don't.

diffstat:

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

diffs (42 lines):

diff -r d5f6f13cdf24 -r 6875f9f0bef1 usr.bin/make/for.c
--- a/usr.bin/make/for.c        Fri Sep 04 17:09:03 2020 +0000
+++ b/usr.bin/make/for.c        Fri Sep 04 17:35:00 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: for.c,v 1.67 2020/08/30 19:56:02 rillig Exp $  */
+/*     $NetBSD: for.c,v 1.68 2020/09/04 17:35:00 rillig Exp $  */
 
 /*
  * Copyright (c) 1992, The Regents of the University of California.
@@ -30,14 +30,14 @@
  */
 
 #ifndef MAKE_NATIVE
-static char rcsid[] = "$NetBSD: for.c,v 1.67 2020/08/30 19:56:02 rillig Exp $";
+static char rcsid[] = "$NetBSD: for.c,v 1.68 2020/09/04 17:35:00 rillig Exp $";
 #else
 #include <sys/cdefs.h>
 #ifndef lint
 #if 0
 static char sccsid[] = "@(#)for.c      8.1 (Berkeley) 6/6/93";
 #else
-__RCSID("$NetBSD: for.c,v 1.67 2020/08/30 19:56:02 rillig Exp $");
+__RCSID("$NetBSD: for.c,v 1.68 2020/09/04 17:35:00 rillig Exp $");
 #endif
 #endif /* not lint */
 #endif
@@ -358,7 +358,7 @@
 }
 
 static char *
-For_Iterate(void *v_arg, size_t *ret_len)
+ForIterate(void *v_arg, size_t *ret_len)
 {
     For *arg = v_arg;
     int i;
@@ -463,5 +463,5 @@
        return;
     }
 
-    Parse_SetInput(NULL, lineno, -1, For_Iterate, arg);
+    Parse_SetInput(NULL, lineno, -1, ForIterate, arg);
 }



Home | Main Index | Thread Index | Old Index