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): make parameter of Cond_Eval and Cond_E...
details: https://anonhg.NetBSD.org/src/rev/9e964bd7928c
branches: trunk
changeset: 938174:9e964bd7928c
user: rillig <rillig%NetBSD.org@localhost>
date: Thu Sep 03 16:02:02 2020 +0000
description:
make(1): make parameter of Cond_Eval and Cond_EvalExpression const
diffstat:
usr.bin/make/cond.c | 10 +++++-----
usr.bin/make/nonints.h | 7 ++++---
2 files changed, 9 insertions(+), 8 deletions(-)
diffs (65 lines):
diff -r 0b06cb8aaeb9 -r 9e964bd7928c usr.bin/make/cond.c
--- a/usr.bin/make/cond.c Thu Sep 03 15:38:17 2020 +0000
+++ b/usr.bin/make/cond.c Thu Sep 03 16:02:02 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: cond.c,v 1.106 2020/08/29 13:38:48 rillig Exp $ */
+/* $NetBSD: cond.c,v 1.107 2020/09/03 16:02:02 rillig Exp $ */
/*
* Copyright (c) 1988, 1989, 1990 The Regents of the University of California.
@@ -70,14 +70,14 @@
*/
#ifndef MAKE_NATIVE
-static char rcsid[] = "$NetBSD: cond.c,v 1.106 2020/08/29 13:38:48 rillig Exp $";
+static char rcsid[] = "$NetBSD: cond.c,v 1.107 2020/09/03 16:02:02 rillig Exp $";
#else
#include <sys/cdefs.h>
#ifndef lint
#if 0
static char sccsid[] = "@(#)cond.c 8.2 (Berkeley) 1/2/94";
#else
-__RCSID("$NetBSD: cond.c,v 1.106 2020/08/29 13:38:48 rillig Exp $");
+__RCSID("$NetBSD: cond.c,v 1.107 2020/09/03 16:02:02 rillig Exp $");
#endif
#endif /* not lint */
#endif
@@ -1043,7 +1043,7 @@
*-----------------------------------------------------------------------
*/
CondEvalResult
-Cond_EvalExpression(const struct If *info, char *line, Boolean *value,
+Cond_EvalExpression(const struct If *info, const char *line, Boolean *value,
int eprint, Boolean strictLHS)
{
static const struct If *dflt_info;
@@ -1108,7 +1108,7 @@
*-----------------------------------------------------------------------
*/
CondEvalResult
-Cond_Eval(char *line)
+Cond_Eval(const char *line)
{
enum { MAXIF = 128 }; /* maximum depth of .if'ing */
enum { MAXIF_BUMP = 32 }; /* how much to grow by */
diff -r 0b06cb8aaeb9 -r 9e964bd7928c usr.bin/make/nonints.h
--- a/usr.bin/make/nonints.h Thu Sep 03 15:38:17 2020 +0000
+++ b/usr.bin/make/nonints.h Thu Sep 03 16:02:02 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: nonints.h,v 1.102 2020/08/30 19:56:02 rillig Exp $ */
+/* $NetBSD: nonints.h,v 1.103 2020/09/03 16:02:02 rillig Exp $ */
/*-
* Copyright (c) 1988, 1989, 1990, 1993
@@ -91,8 +91,9 @@
/* cond.c */
struct If;
-CondEvalResult Cond_EvalExpression(const struct If *, char *, Boolean *, int, Boolean);
-CondEvalResult Cond_Eval(char *);
+CondEvalResult Cond_EvalExpression(const struct If *, const char *,
+ Boolean *, int, Boolean);
+CondEvalResult Cond_Eval(const char *);
void Cond_restore_depth(unsigned int);
unsigned int Cond_save_depth(void);
Home |
Main Index |
Thread Index |
Old Index