diff options
| author | rillig <rillig@NetBSD.org> | 2022-06-12 13:37:32 +0000 |
|---|---|---|
| committer | rillig <rillig@NetBSD.org> | 2022-06-12 13:37:32 +0000 |
| commit | 1d197c216da66ea3635a7d5acdf69022077f4dd7 (patch) | |
| tree | 4788787230d850a3c9423a93f0627c7f6cdd13cd /usr.bin/make/make.h | |
| parent | 9dfdfc01c573d2971a15e7e1f93d48c8b20e29df (diff) | |
make: reorganize Parse_Error
Determining the location where the error occurred is now done by
ParseVErrorInternal. This frees the remaining code from keeping the
filename and the line number together. It also makes Parse_Error short
enough that it might be worth providing a separate function for each of
the 3 log levels.
No functional change.
Diffstat (limited to 'usr.bin/make/make.h')
| -rw-r--r-- | usr.bin/make/make.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/make/make.h b/usr.bin/make/make.h index 38e4e5914dc..00a89409164 100644 --- a/usr.bin/make/make.h +++ b/usr.bin/make/make.h @@ -1,4 +1,4 @@ -/* $NetBSD: make.h,v 1.302 2022/05/07 17:49:47 rillig Exp $ */ +/* $NetBSD: make.h,v 1.303 2022/06/12 13:37:32 rillig Exp $ */ /* * Copyright (c) 1988, 1989, 1990, 1993 @@ -852,7 +852,7 @@ bool GetBooleanExpr(const char *, bool); void Parse_Init(void); void Parse_End(void); -void PrintLocation(FILE *, bool, const char *, unsigned); +void PrintLocation(FILE *, bool, const GNode *); void PrintStackTrace(bool); void Parse_Error(ParseErrorLevel, const char *, ...) MAKE_ATTR_PRINTFLIKE(2, 3); bool Parse_VarAssign(const char *, bool, GNode *) MAKE_ATTR_USE; |
