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): add const for Parse_IsVar
details: https://anonhg.NetBSD.org/src/rev/3eaf1accbc86
branches: trunk
changeset: 954574:3eaf1accbc86
user: rillig <rillig%NetBSD.org@localhost>
date: Sun Sep 06 19:34:36 2020 +0000
description:
make(1): add const for Parse_IsVar
diffstat:
usr.bin/make/nonints.h | 4 ++--
usr.bin/make/parse.c | 8 ++++----
2 files changed, 6 insertions(+), 6 deletions(-)
diffs (53 lines):
diff -r bae14aa6b925 -r 3eaf1accbc86 usr.bin/make/nonints.h
--- a/usr.bin/make/nonints.h Sun Sep 06 19:30:53 2020 +0000
+++ b/usr.bin/make/nonints.h Sun Sep 06 19:34:36 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: nonints.h,v 1.105 2020/09/06 19:30:53 rillig Exp $ */
+/* $NetBSD: nonints.h,v 1.106 2020/09/06 19:34:36 rillig Exp $ */
/*-
* Copyright (c) 1988, 1989, 1990, 1993
@@ -124,7 +124,7 @@
/* parse.c */
void Parse_Error(int, const char *, ...) MAKE_ATTR_PRINTFLIKE(2, 3);
-Boolean Parse_IsVar(char *);
+Boolean Parse_IsVar(const char *);
void Parse_DoVar(char *, GNode *);
void Parse_AddIncludeDir(char *);
void Parse_File(const char *, int);
diff -r bae14aa6b925 -r 3eaf1accbc86 usr.bin/make/parse.c
--- a/usr.bin/make/parse.c Sun Sep 06 19:30:53 2020 +0000
+++ b/usr.bin/make/parse.c Sun Sep 06 19:34:36 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: parse.c,v 1.285 2020/09/05 19:11:16 rillig Exp $ */
+/* $NetBSD: parse.c,v 1.286 2020/09/06 19:34:36 rillig Exp $ */
/*
* Copyright (c) 1988, 1989, 1990, 1993
@@ -69,14 +69,14 @@
*/
#ifndef MAKE_NATIVE
-static char rcsid[] = "$NetBSD: parse.c,v 1.285 2020/09/05 19:11:16 rillig Exp $";
+static char rcsid[] = "$NetBSD: parse.c,v 1.286 2020/09/06 19:34:36 rillig Exp $";
#else
#include <sys/cdefs.h>
#ifndef lint
#if 0
static char sccsid[] = "@(#)parse.c 8.3 (Berkeley) 3/19/94";
#else
-__RCSID("$NetBSD: parse.c,v 1.285 2020/09/05 19:11:16 rillig Exp $");
+__RCSID("$NetBSD: parse.c,v 1.286 2020/09/06 19:34:36 rillig Exp $");
#endif
#endif /* not lint */
#endif
@@ -1751,7 +1751,7 @@
*---------------------------------------------------------------------
*/
Boolean
-Parse_IsVar(char *line)
+Parse_IsVar(const char *line)
{
Boolean wasSpace = FALSE; /* set TRUE if found a space */
char ch;
Home |
Main Index |
Thread Index |
Old Index