aboutsummaryrefslogtreecommitdiff
path: root/make.h
diff options
context:
space:
mode:
authorSimon J. Gerraty <sjg@FreeBSD.org>2026-04-06 18:25:05 +0000
committerSimon J. Gerraty <sjg@FreeBSD.org>2026-04-06 18:25:05 +0000
commitfe271bdb43cf88ee129d94c0e286fe618fd28e89 (patch)
treef8a53c5b636b2af4eaa7ac94683cb00033588454 /make.h
parent638c66de4a0faa4c2e815e81cd4021c2387c7e0f (diff)
Diffstat (limited to 'make.h')
-rw-r--r--make.h16
1 files changed, 11 insertions, 5 deletions
diff --git a/make.h b/make.h
index 6b2b215592dd..882094e7f2b4 100644
--- a/make.h
+++ b/make.h
@@ -1,4 +1,4 @@
-/* $NetBSD: make.h,v 1.361 2025/07/06 07:11:31 rillig Exp $ */
+/* $NetBSD: make.h,v 1.365 2026/03/13 04:22:03 sjg Exp $ */
/*
* Copyright (c) 1988, 1989, 1990, 1993
@@ -419,6 +419,8 @@ typedef struct GNodeFlags {
bool fromDepend:1;
/* We do it once only */
bool doneAllsrc:1;
+ /* Have we checked for submake? */
+ bool doneSubmake:1;
/* Used by MakePrintStatus */
bool cycle:1;
/* Used by MakePrintStatus */
@@ -909,7 +911,7 @@ void Parse_End(void);
void PrintLocation(FILE *, bool, const GNode *);
const char *GetParentStackTrace(void);
char *GetStackTrace(bool);
-void PrintStackTrace(bool);
+void PrintStackTrace(FILE *, bool);
void Parse_Error(ParseErrorLevel, const char *, ...) MAKE_ATTR_PRINTFLIKE(2, 3);
bool Parse_VarAssign(const char *, bool, GNode *) MAKE_ATTR_USE;
void Parse_File(const char *, int);
@@ -995,14 +997,16 @@ typedef enum VarEvalMode {
VARE_EVAL,
/*
- * Parse and evaluate the expression. It is an error if a
- * subexpression evaluates to undefined.
+ * Only for Var_Parse, not for Var_Subst or Var_Expand: Parse and
+ * evaluate the expression. It is an error if the expression
+ * evaluates to undefined. Subexpressions or indirect expressions
+ * may evaluate to undefined, though.
*/
VARE_EVAL_DEFINED_LOUD,
/*
* Parse and evaluate the expression. It is a silent error if a
- * subexpression evaluates to undefined.
+ * top-level expression evaluates to undefined.
*/
VARE_EVAL_DEFINED,
@@ -1052,6 +1056,8 @@ typedef enum VarExportMode {
VEM_LITERAL
} VarExportMode;
+#define MAKE_SAVE_DOLLARS ".MAKE.SAVE_DOLLARS"
+
void Var_Delete(GNode *, const char *);
#ifdef CLEANUP
void Var_DeleteAll(GNode *scope);