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 loadfile to LoadFile



details:   https://anonhg.NetBSD.org/src/rev/076df09e4815
branches:  trunk
changeset: 366721:076df09e4815
user:      rillig <rillig%NetBSD.org@localhost>
date:      Fri Jun 10 22:42:47 2022 +0000

description:
make: rename loadfile to LoadFile

It was the only function in parse.c that had a lowercase name.

No functional change.

diffstat:

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

diffs (45 lines):

diff -r 09df81ecb6fe -r 076df09e4815 usr.bin/make/parse.c
--- a/usr.bin/make/parse.c      Fri Jun 10 22:35:05 2022 +0000
+++ b/usr.bin/make/parse.c      Fri Jun 10 22:42:47 2022 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: parse.c,v 1.674 2022/06/10 22:35:05 rillig Exp $       */
+/*     $NetBSD: parse.c,v 1.675 2022/06/10 22:42:47 rillig Exp $       */
 
 /*
  * Copyright (c) 1988, 1989, 1990, 1993
@@ -106,7 +106,7 @@
 #include "pathnames.h"
 
 /*     "@(#)parse.c    8.3 (Berkeley) 3/19/94" */
-MAKE_RCSID("$NetBSD: parse.c,v 1.674 2022/06/10 22:35:05 rillig Exp $");
+MAKE_RCSID("$NetBSD: parse.c,v 1.675 2022/06/10 22:42:47 rillig Exp $");
 
 /*
  * A file being read.
@@ -310,7 +310,7 @@
 }
 
 static Buffer
-loadfile(const char *path, int fd)
+LoadFile(const char *path, int fd)
 {
        ssize_t n;
        Buffer buf;
@@ -1207,7 +1207,7 @@
                return;
        }
 
-       buf = loadfile(fullname, fd);
+       buf = LoadFile(fullname, fd);
        (void)close(fd);
 
        Parse_PushInput(fullname, 1, 0, buf, NULL);
@@ -2864,7 +2864,7 @@
        char *line;
        Buffer buf;
 
-       buf = loadfile(name, fd != -1 ? fd : STDIN_FILENO);
+       buf = LoadFile(name, fd != -1 ? fd : STDIN_FILENO);
        if (fd != -1)
                (void)close(fd);
 



Home | Main Index | Thread Index | Old Index