2020-11-08 00:31:07 +03:00
|
|
|
/* $NetBSD: nonints.h,v 1.156 2020/11/07 21:31:07 rillig Exp $ */
|
1995-06-14 19:18:37 +04:00
|
|
|
|
1993-03-21 12:45:37 +03:00
|
|
|
/*-
|
1996-11-06 20:58:58 +03:00
|
|
|
* Copyright (c) 1988, 1989, 1990, 1993
|
|
|
|
* The Regents of the University of California. All rights reserved.
|
2003-08-07 15:13:06 +04:00
|
|
|
*
|
|
|
|
* This code is derived from software contributed to Berkeley by
|
|
|
|
* Adam de Boor.
|
|
|
|
*
|
|
|
|
* Redistribution and use in source and binary forms, with or without
|
|
|
|
* modification, are permitted provided that the following conditions
|
|
|
|
* are met:
|
|
|
|
* 1. Redistributions of source code must retain the above copyright
|
|
|
|
* notice, this list of conditions and the following disclaimer.
|
|
|
|
* 2. Redistributions in binary form must reproduce the above copyright
|
|
|
|
* notice, this list of conditions and the following disclaimer in the
|
|
|
|
* documentation and/or other materials provided with the distribution.
|
|
|
|
* 3. Neither the name of the University nor the names of its contributors
|
|
|
|
* may be used to endorse or promote products derived from this software
|
|
|
|
* without specific prior written permission.
|
|
|
|
*
|
|
|
|
* THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
|
|
|
|
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
|
|
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
|
|
|
* ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
|
|
|
|
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
|
|
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
|
|
|
* OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
|
|
|
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
|
|
|
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
|
|
|
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
|
|
|
* SUCH DAMAGE.
|
|
|
|
*
|
|
|
|
* from: @(#)nonints.h 8.3 (Berkeley) 3/19/94
|
|
|
|
*/
|
|
|
|
|
|
|
|
/*-
|
1993-03-21 12:45:37 +03:00
|
|
|
* Copyright (c) 1989 by Berkeley Softworks
|
|
|
|
* All rights reserved.
|
|
|
|
*
|
|
|
|
* This code is derived from software contributed to Berkeley by
|
|
|
|
* Adam de Boor.
|
|
|
|
*
|
|
|
|
* Redistribution and use in source and binary forms, with or without
|
|
|
|
* modification, are permitted provided that the following conditions
|
|
|
|
* are met:
|
|
|
|
* 1. Redistributions of source code must retain the above copyright
|
|
|
|
* notice, this list of conditions and the following disclaimer.
|
|
|
|
* 2. Redistributions in binary form must reproduce the above copyright
|
|
|
|
* notice, this list of conditions and the following disclaimer in the
|
|
|
|
* documentation and/or other materials provided with the distribution.
|
|
|
|
* 3. All advertising materials mentioning features or use of this software
|
|
|
|
* must display the following acknowledgement:
|
|
|
|
* This product includes software developed by the University of
|
|
|
|
* California, Berkeley and its contributors.
|
|
|
|
* 4. Neither the name of the University nor the names of its contributors
|
|
|
|
* may be used to endorse or promote products derived from this software
|
|
|
|
* without specific prior written permission.
|
|
|
|
*
|
|
|
|
* THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
|
|
|
|
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
|
|
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
|
|
|
* ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
|
|
|
|
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
|
|
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
|
|
|
* OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
|
|
|
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
|
|
|
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
|
|
|
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
|
|
|
* SUCH DAMAGE.
|
|
|
|
*
|
1996-11-06 20:58:58 +03:00
|
|
|
* from: @(#)nonints.h 8.3 (Berkeley) 3/19/94
|
1993-03-21 12:45:37 +03:00
|
|
|
*/
|
|
|
|
|
1994-03-05 03:34:29 +03:00
|
|
|
/* arch.c */
|
2020-10-18 00:32:30 +03:00
|
|
|
void Arch_Init(void);
|
|
|
|
void Arch_End(void);
|
|
|
|
|
2020-09-22 07:05:41 +03:00
|
|
|
Boolean Arch_ParseArchive(char **, GNodeList *, GNode *);
|
2002-06-15 22:24:55 +04:00
|
|
|
void Arch_Touch(GNode *);
|
|
|
|
void Arch_TouchLib(GNode *);
|
|
|
|
time_t Arch_MTime(GNode *);
|
2020-11-07 02:59:21 +03:00
|
|
|
time_t Arch_MemberMTime(GNode *);
|
2020-09-22 07:05:41 +03:00
|
|
|
void Arch_FindLib(GNode *, SearchPath *);
|
2002-06-15 22:24:55 +04:00
|
|
|
Boolean Arch_LibOODate(GNode *);
|
2020-08-29 10:52:55 +03:00
|
|
|
Boolean Arch_IsLib(GNode *);
|
1993-03-21 12:45:37 +03:00
|
|
|
|
1994-03-05 03:34:29 +03:00
|
|
|
/* compat.c */
|
2020-09-27 14:37:19 +03:00
|
|
|
int Compat_RunCommand(const char *, GNode *);
|
2020-09-22 07:05:41 +03:00
|
|
|
void Compat_Run(GNodeList *);
|
2020-09-26 19:41:42 +03:00
|
|
|
void Compat_Make(GNode *, GNode *);
|
1994-03-05 03:34:29 +03:00
|
|
|
|
|
|
|
/* cond.c */
|
2020-09-13 16:50:27 +03:00
|
|
|
CondEvalResult Cond_EvalCondition(const char *, Boolean *);
|
|
|
|
CondEvalResult Cond_EvalLine(const char *);
|
2007-02-04 22:23:49 +03:00
|
|
|
void Cond_restore_depth(unsigned int);
|
|
|
|
unsigned int Cond_save_depth(void);
|
1994-03-05 03:34:29 +03:00
|
|
|
|
|
|
|
/* for.c */
|
2020-09-06 22:30:53 +03:00
|
|
|
int For_Eval(const char *);
|
2020-09-12 13:14:16 +03:00
|
|
|
Boolean For_Accum(const char *);
|
2004-03-06 06:57:07 +03:00
|
|
|
void For_Run(int);
|
1994-03-05 03:34:29 +03:00
|
|
|
|
2010-08-07 10:44:08 +04:00
|
|
|
/* job.c */
|
|
|
|
void JobReapChild(pid_t, int, Boolean);
|
|
|
|
|
1994-03-05 03:34:29 +03:00
|
|
|
/* main.c */
|
2009-01-13 21:22:34 +03:00
|
|
|
void Main_ParseArgLine(const char *);
|
2010-04-07 04:11:27 +04:00
|
|
|
void MakeMode(const char *);
|
2003-07-14 22:19:11 +04:00
|
|
|
char *Cmd_Exec(const char *, const char **);
|
2012-06-12 23:21:50 +04:00
|
|
|
void Error(const char *, ...) MAKE_ATTR_PRINTFLIKE(1, 2);
|
|
|
|
void Fatal(const char *, ...) MAKE_ATTR_PRINTFLIKE(1, 2) MAKE_ATTR_DEAD;
|
|
|
|
void Punt(const char *, ...) MAKE_ATTR_PRINTFLIKE(1, 2) MAKE_ATTR_DEAD;
|
|
|
|
void DieHorribly(void) MAKE_ATTR_DEAD;
|
|
|
|
void Finish(int) MAKE_ATTR_DEAD;
|
2002-06-15 22:24:55 +04:00
|
|
|
int eunlink(const char *);
|
2020-10-18 10:46:04 +03:00
|
|
|
void execDie(const char *, const char *);
|
2010-12-10 01:30:16 +03:00
|
|
|
char *getTmpdir(void);
|
2020-11-07 02:11:11 +03:00
|
|
|
Boolean ParseBoolean(const char *, Boolean);
|
2016-06-03 04:21:59 +03:00
|
|
|
char *cached_realpath(const char *, char *);
|
1994-03-05 03:34:29 +03:00
|
|
|
|
|
|
|
/* parse.c */
|
2020-10-18 00:32:30 +03:00
|
|
|
void Parse_Init(void);
|
|
|
|
void Parse_End(void);
|
2020-10-05 22:27:47 +03:00
|
|
|
|
|
|
|
typedef enum VarAssignOp {
|
|
|
|
VAR_NORMAL, /* = */
|
|
|
|
VAR_SUBST, /* := */
|
|
|
|
VAR_SHELL, /* != or :sh= */
|
|
|
|
VAR_APPEND, /* += */
|
|
|
|
VAR_DEFAULT /* ?= */
|
|
|
|
} VarAssignOp;
|
|
|
|
|
|
|
|
typedef struct VarAssign {
|
2020-10-18 23:14:27 +03:00
|
|
|
char *varname; /* unexpanded */
|
2020-10-05 22:27:47 +03:00
|
|
|
VarAssignOp op;
|
|
|
|
const char *value; /* unexpanded */
|
|
|
|
} VarAssign;
|
|
|
|
|
2020-10-20 02:43:55 +03:00
|
|
|
typedef char *(*NextBufProc)(void *, size_t *);
|
|
|
|
|
2020-10-23 23:04:56 +03:00
|
|
|
void Parse_Error(ParseErrorLevel, const char *, ...) MAKE_ATTR_PRINTFLIKE(2, 3);
|
2020-10-05 22:27:47 +03:00
|
|
|
Boolean Parse_IsVar(const char *, VarAssign *out_var);
|
|
|
|
void Parse_DoVar(VarAssign *, GNode *);
|
2020-10-02 02:44:36 +03:00
|
|
|
void Parse_AddIncludeDir(const char *);
|
2006-12-16 11:59:29 +03:00
|
|
|
void Parse_File(const char *, int);
|
2020-10-20 02:43:55 +03:00
|
|
|
void Parse_SetInput(const char *, int, int, NextBufProc, void *);
|
2020-09-22 07:05:41 +03:00
|
|
|
GNodeList *Parse_MainName(void);
|
2020-11-01 03:24:57 +03:00
|
|
|
int Parse_GetFatals(void);
|
1994-03-05 03:34:29 +03:00
|
|
|
|
|
|
|
/* str.c */
|
2020-09-25 18:54:50 +03:00
|
|
|
typedef struct Words {
|
2020-08-30 22:56:02 +03:00
|
|
|
char **words;
|
|
|
|
size_t len;
|
|
|
|
void *freeIt;
|
|
|
|
} Words;
|
|
|
|
|
|
|
|
Words Str_Words(const char *, Boolean);
|
2020-09-13 18:27:25 +03:00
|
|
|
static inline MAKE_ATTR_UNUSED void
|
2020-08-30 22:56:02 +03:00
|
|
|
Words_Free(Words w) {
|
|
|
|
free(w.words);
|
|
|
|
free(w.freeIt);
|
|
|
|
}
|
|
|
|
|
2020-08-10 22:53:19 +03:00
|
|
|
char *str_concat2(const char *, const char *);
|
|
|
|
char *str_concat3(const char *, const char *, const char *);
|
2020-08-11 21:41:46 +03:00
|
|
|
char *str_concat4(const char *, const char *, const char *, const char *);
|
2020-07-03 10:40:13 +03:00
|
|
|
Boolean Str_Match(const char *, const char *);
|
1994-03-05 03:34:29 +03:00
|
|
|
|
|
|
|
/* suff.c */
|
2020-10-18 00:32:30 +03:00
|
|
|
void Suff_Init(void);
|
|
|
|
void Suff_End(void);
|
|
|
|
|
2002-06-15 22:24:55 +04:00
|
|
|
void Suff_ClearSuffixes(void);
|
2020-09-25 22:50:04 +03:00
|
|
|
Boolean Suff_IsTransform(const char *);
|
|
|
|
GNode *Suff_AddTransform(const char *);
|
2020-09-12 18:21:25 +03:00
|
|
|
void Suff_EndTransform(GNode *);
|
2020-08-29 15:01:46 +03:00
|
|
|
void Suff_AddSuffix(const char *, GNode **);
|
2020-09-25 22:50:04 +03:00
|
|
|
SearchPath *Suff_GetPath(const char *);
|
2002-06-15 22:24:55 +04:00
|
|
|
void Suff_DoPaths(void);
|
2020-09-25 22:50:04 +03:00
|
|
|
void Suff_AddInclude(const char *);
|
2020-08-29 15:01:46 +03:00
|
|
|
void Suff_AddLib(const char *);
|
2002-06-15 22:24:55 +04:00
|
|
|
void Suff_FindDeps(GNode *);
|
2020-09-22 07:05:41 +03:00
|
|
|
SearchPath *Suff_FindPath(GNode *);
|
2020-09-25 22:50:04 +03:00
|
|
|
void Suff_SetNull(const char *);
|
2002-06-15 22:24:55 +04:00
|
|
|
void Suff_PrintAll(void);
|
1994-03-05 03:34:29 +03:00
|
|
|
|
|
|
|
/* targ.c */
|
2002-06-15 22:24:55 +04:00
|
|
|
void Targ_Init(void);
|
|
|
|
void Targ_End(void);
|
2020-10-18 00:32:30 +03:00
|
|
|
|
2020-07-20 21:12:48 +03:00
|
|
|
void Targ_Stats(void);
|
2020-09-22 07:05:41 +03:00
|
|
|
GNodeList *Targ_List(void);
|
2003-07-14 22:19:11 +04:00
|
|
|
GNode *Targ_NewGN(const char *);
|
2020-09-26 19:00:12 +03:00
|
|
|
GNode *Targ_FindNode(const char *);
|
|
|
|
GNode *Targ_GetNode(const char *);
|
|
|
|
GNode *Targ_NewInternalNode(const char *);
|
2020-09-23 06:06:38 +03:00
|
|
|
GNode *Targ_GetEndNode(void);
|
2020-09-26 19:00:12 +03:00
|
|
|
GNodeList *Targ_FindList(StringList *);
|
2002-06-15 22:24:55 +04:00
|
|
|
Boolean Targ_Ignore(GNode *);
|
|
|
|
Boolean Targ_Silent(GNode *);
|
|
|
|
Boolean Targ_Precious(GNode *);
|
|
|
|
void Targ_SetMain(GNode *);
|
2020-09-12 19:13:48 +03:00
|
|
|
void Targ_PrintCmds(GNode *);
|
2020-09-12 19:38:19 +03:00
|
|
|
void Targ_PrintNode(GNode *, int);
|
2020-09-22 07:05:41 +03:00
|
|
|
void Targ_PrintNodes(GNodeList *, int);
|
2002-06-15 22:24:55 +04:00
|
|
|
char *Targ_FmtTime(time_t);
|
2008-02-16 00:29:50 +03:00
|
|
|
void Targ_PrintType(int);
|
2002-06-15 22:24:55 +04:00
|
|
|
void Targ_PrintGraph(int);
|
|
|
|
void Targ_Propagate(void);
|
1994-03-05 03:34:29 +03:00
|
|
|
|
|
|
|
/* var.c */
|
2020-10-18 00:32:30 +03:00
|
|
|
void Var_Init(void);
|
|
|
|
void Var_End(void);
|
2020-07-02 18:14:38 +03:00
|
|
|
|
2020-10-18 20:19:54 +03:00
|
|
|
typedef enum VarEvalFlags {
|
2020-10-05 22:27:47 +03:00
|
|
|
VARE_NONE = 0,
|
2020-07-20 22:53:40 +03:00
|
|
|
/* Treat undefined variables as errors. */
|
2020-11-07 13:16:18 +03:00
|
|
|
VARE_UNDEFERR = 1 << 0,
|
2020-07-26 21:11:12 +03:00
|
|
|
/* Expand and evaluate variables during parsing. */
|
2020-11-07 13:16:18 +03:00
|
|
|
VARE_WANTRES = 1 << 1,
|
2020-10-05 22:27:47 +03:00
|
|
|
/* In an assignment using the ':=' operator, keep '$$' as '$$' instead
|
2020-11-07 16:13:19 +03:00
|
|
|
* of reducing it to a single '$'.
|
|
|
|
*
|
|
|
|
* See also preserveUndefined, which preserves subexpressions based on
|
|
|
|
* undefined variables; maybe that can be converted to a flag as well. */
|
2020-11-07 13:16:18 +03:00
|
|
|
VARE_ASSIGN = 1 << 2
|
2020-07-19 15:26:17 +03:00
|
|
|
} VarEvalFlags;
|
2020-07-02 18:14:38 +03:00
|
|
|
|
2020-11-08 00:31:07 +03:00
|
|
|
typedef enum VarSetFlags {
|
|
|
|
VAR_SET_NONE = 0,
|
|
|
|
|
2020-11-07 13:16:18 +03:00
|
|
|
/* do not export */
|
2020-11-08 00:31:07 +03:00
|
|
|
VAR_SET_NO_EXPORT = 1 << 0,
|
2020-11-07 13:16:18 +03:00
|
|
|
|
2020-08-23 12:28:52 +03:00
|
|
|
/* Make the variable read-only. No further modification is possible,
|
|
|
|
* except for another call to Var_Set with the same flag. */
|
2020-11-07 13:16:18 +03:00
|
|
|
VAR_SET_READONLY = 1 << 1
|
2020-11-07 03:02:54 +03:00
|
|
|
} VarSetFlags;
|
2020-08-22 22:30:58 +03:00
|
|
|
|
2020-09-13 21:27:39 +03:00
|
|
|
/* The state of error handling returned by Var_Parse.
|
|
|
|
*
|
|
|
|
* As of 2020-09-13, this bitset looks quite bloated,
|
|
|
|
* with all the constants doubled.
|
|
|
|
*
|
|
|
|
* Its purpose is to first document the existing behavior,
|
|
|
|
* and then migrate away from the SILENT constants, step by step,
|
|
|
|
* as these are not suited for reliable, consistent error handling
|
|
|
|
* and reporting. */
|
2020-10-18 20:19:54 +03:00
|
|
|
typedef enum VarParseResult {
|
2020-09-13 21:27:39 +03:00
|
|
|
|
|
|
|
/* Both parsing and evaluation succeeded. */
|
2020-09-22 09:06:18 +03:00
|
|
|
VPR_OK = 0x0000,
|
2020-09-13 21:27:39 +03:00
|
|
|
|
2020-09-21 08:28:26 +03:00
|
|
|
/* See if a message has already been printed for this error. */
|
2020-09-22 09:06:18 +03:00
|
|
|
VPR_ANY_MSG = 0x0001,
|
2020-09-13 21:27:39 +03:00
|
|
|
|
|
|
|
/* Parsing failed.
|
|
|
|
* No error message has been printed yet.
|
2020-09-22 09:06:18 +03:00
|
|
|
* Deprecated, migrate to VPR_PARSE_MSG instead. */
|
|
|
|
VPR_PARSE_SILENT = 0x0002,
|
2020-09-13 21:27:39 +03:00
|
|
|
|
2020-09-21 08:28:26 +03:00
|
|
|
/* Parsing failed.
|
2020-09-13 23:38:47 +03:00
|
|
|
* An error message has already been printed. */
|
2020-09-22 09:06:18 +03:00
|
|
|
VPR_PARSE_MSG = VPR_PARSE_SILENT | VPR_ANY_MSG,
|
2020-09-13 21:27:39 +03:00
|
|
|
|
|
|
|
/* Parsing succeeded.
|
|
|
|
* During evaluation, VARE_UNDEFERR was set and there was an undefined
|
|
|
|
* variable.
|
|
|
|
* No error message has been printed yet.
|
2020-09-22 09:06:18 +03:00
|
|
|
* Deprecated, migrate to VPR_UNDEF_MSG instead. */
|
|
|
|
VPR_UNDEF_SILENT = 0x0004,
|
2020-09-13 21:27:39 +03:00
|
|
|
|
|
|
|
/* Parsing succeeded.
|
2020-09-21 08:28:26 +03:00
|
|
|
* During evaluation, VARE_UNDEFERR was set and there was an undefined
|
|
|
|
* variable.
|
2020-09-13 23:38:47 +03:00
|
|
|
* An error message has already been printed. */
|
2020-09-22 09:06:18 +03:00
|
|
|
VPR_UNDEF_MSG = VPR_UNDEF_SILENT | VPR_ANY_MSG,
|
2020-09-13 21:27:39 +03:00
|
|
|
|
|
|
|
/* Parsing succeeded.
|
|
|
|
* Evaluation failed.
|
|
|
|
* No error message has been printed yet.
|
2020-09-22 09:06:18 +03:00
|
|
|
* Deprecated, migrate to VPR_EVAL_MSG instead. */
|
|
|
|
VPR_EVAL_SILENT = 0x0006,
|
2020-09-13 22:46:23 +03:00
|
|
|
|
2020-09-21 08:28:26 +03:00
|
|
|
/* Parsing succeeded.
|
|
|
|
* Evaluation failed.
|
|
|
|
* An error message has already been printed. */
|
2020-09-22 09:06:18 +03:00
|
|
|
VPR_EVAL_MSG = VPR_EVAL_SILENT | VPR_ANY_MSG,
|
2020-09-21 08:28:26 +03:00
|
|
|
|
|
|
|
/* The exact error handling status is not known yet.
|
2020-09-22 09:06:18 +03:00
|
|
|
* Deprecated, migrate to VPR_OK or any VPE_*_MSG instead. */
|
|
|
|
VPR_UNKNOWN = 0x0008
|
|
|
|
} VarParseResult;
|
2020-08-22 22:30:58 +03:00
|
|
|
|
2003-07-14 22:19:11 +04:00
|
|
|
void Var_Delete(const char *, GNode *);
|
2020-07-02 18:47:38 +03:00
|
|
|
void Var_Set(const char *, const char *, GNode *);
|
2020-11-07 03:06:13 +03:00
|
|
|
void Var_SetWithFlags(const char *, const char *, GNode *, VarSetFlags);
|
2003-07-14 22:19:11 +04:00
|
|
|
void Var_Append(const char *, const char *, GNode *);
|
|
|
|
Boolean Var_Exists(const char *, GNode *);
|
2020-10-30 23:30:44 +03:00
|
|
|
const char *Var_Value(const char *, GNode *, void **);
|
2020-10-31 14:54:33 +03:00
|
|
|
const char *Var_ValueDirect(const char *, GNode *);
|
2020-09-22 09:06:18 +03:00
|
|
|
VarParseResult Var_Parse(const char **, GNode *, VarEvalFlags,
|
2020-09-13 21:27:39 +03:00
|
|
|
const char **, void **);
|
2020-09-22 23:19:46 +03:00
|
|
|
VarParseResult Var_Subst(const char *, GNode *, VarEvalFlags, char **);
|
2020-07-20 21:12:48 +03:00
|
|
|
void Var_Stats(void);
|
2002-06-15 22:24:55 +04:00
|
|
|
void Var_Dump(GNode *);
|
2007-10-05 19:27:45 +04:00
|
|
|
void Var_ExportVars(void);
|
2020-08-09 16:05:04 +03:00
|
|
|
void Var_Export(const char *, Boolean);
|
2020-08-08 16:00:07 +03:00
|
|
|
void Var_UnExport(const char *);
|
2010-06-03 19:40:15 +04:00
|
|
|
|
|
|
|
/* util.c */
|
2020-09-12 19:46:24 +03:00
|
|
|
typedef void (*SignalProc)(int);
|
|
|
|
SignalProc bmake_signal(int, SignalProc);
|