1994-05-27 12:33:43 +00:00
|
|
|
/*-
|
|
|
|
* Copyright (c) 1988, 1989, 1990, 1993
|
|
|
|
* The Regents of the University of California. All rights reserved.
|
|
|
|
* 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.
|
|
|
|
*
|
2002-04-13 10:57:56 +00:00
|
|
|
* @(#)nonints.h 8.4 (Berkeley) 4/28/95
|
1999-08-28 01:08:13 +00:00
|
|
|
* $FreeBSD$
|
1994-05-27 12:33:43 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
/* arch.c */
|
2004-12-07 13:49:13 +00:00
|
|
|
ReturnStatus Arch_ParseArchive(char **, Lst *, GNode *);
|
2002-03-22 01:33:25 +00:00
|
|
|
void Arch_Touch(GNode *);
|
|
|
|
void Arch_TouchLib(GNode *);
|
|
|
|
int Arch_MTime(GNode *);
|
|
|
|
int Arch_MemMTime(GNode *);
|
2004-12-07 13:49:13 +00:00
|
|
|
void Arch_FindLib(GNode *, Lst *);
|
2002-03-22 01:33:25 +00:00
|
|
|
Boolean Arch_LibOODate(GNode *);
|
|
|
|
void Arch_Init(void);
|
1995-01-23 21:03:17 +00:00
|
|
|
|
1994-05-27 12:33:43 +00:00
|
|
|
/* compat.c */
|
2004-12-07 13:49:13 +00:00
|
|
|
void Compat_Run(Lst *);
|
2004-07-29 14:29:23 +00:00
|
|
|
int Compat_RunCommand(void *, void *);
|
1994-05-27 12:33:43 +00:00
|
|
|
|
|
|
|
/* cond.c */
|
2002-03-22 01:33:25 +00:00
|
|
|
int Cond_Eval(char *);
|
|
|
|
void Cond_End(void);
|
1994-05-27 12:33:43 +00:00
|
|
|
|
|
|
|
/* for.c */
|
2002-03-22 01:33:25 +00:00
|
|
|
int For_Eval(char *);
|
2004-03-10 21:51:06 +00:00
|
|
|
void For_Run(int);
|
1994-05-27 12:33:43 +00:00
|
|
|
|
|
|
|
/* main.c */
|
2002-03-22 01:33:25 +00:00
|
|
|
void Main_ParseArgLine(char *);
|
|
|
|
char *Cmd_Exec(char *, char **);
|
2002-09-18 16:13:03 +00:00
|
|
|
void Debug(const char *, ...);
|
2002-06-12 04:11:01 +00:00
|
|
|
void Error(const char *, ...);
|
|
|
|
void Fatal(const char *, ...);
|
|
|
|
void Punt(const char *, ...);
|
2002-03-22 01:33:25 +00:00
|
|
|
void DieHorribly(void);
|
|
|
|
int PrintAddr(void *, void *);
|
|
|
|
void Finish(int);
|
|
|
|
char *estrdup(const char *);
|
|
|
|
void *emalloc(size_t);
|
|
|
|
void *erealloc(void *, size_t);
|
|
|
|
void enomem(void);
|
|
|
|
int eunlink(const char *);
|
1994-05-27 12:33:43 +00:00
|
|
|
|
|
|
|
/* parse.c */
|
2002-06-12 04:11:01 +00:00
|
|
|
void Parse_Error(int, const char *, ...);
|
2002-03-22 01:33:25 +00:00
|
|
|
Boolean Parse_AnyExport(void);
|
|
|
|
Boolean Parse_IsVar(char *);
|
|
|
|
void Parse_DoVar(char *, GNode *);
|
|
|
|
void Parse_AddIncludeDir(char *);
|
|
|
|
void Parse_File(char *, FILE *);
|
|
|
|
void Parse_Init(void);
|
2004-03-10 21:51:06 +00:00
|
|
|
void Parse_FromString(char *, int);
|
2004-12-16 16:14:16 +00:00
|
|
|
void Parse_MainName(Lst *);
|
1994-05-27 12:33:43 +00:00
|
|
|
|
|
|
|
/* str.c */
|
2002-03-22 01:33:25 +00:00
|
|
|
void str_init(void);
|
2004-12-08 08:11:59 +00:00
|
|
|
char *str_concat(const char *, const char *, int);
|
2002-03-22 01:33:25 +00:00
|
|
|
char **brk_string(char *, int *, Boolean);
|
2002-10-28 23:33:57 +00:00
|
|
|
int Str_Match(const char *, const char *);
|
|
|
|
const char *Str_SYSVMatch(const char *, const char *, int *);
|
|
|
|
void Str_SYSVSubst(Buffer, const char *, const char *, int);
|
1994-05-27 12:33:43 +00:00
|
|
|
|
|
|
|
/* suff.c */
|
2002-03-22 01:33:25 +00:00
|
|
|
void Suff_ClearSuffixes(void);
|
|
|
|
Boolean Suff_IsTransform(char *);
|
|
|
|
GNode *Suff_AddTransform(char *);
|
|
|
|
int Suff_EndTransform(void *, void *);
|
|
|
|
void Suff_AddSuffix(char *);
|
2004-12-07 13:49:13 +00:00
|
|
|
Lst *Suff_GetPath(char *);
|
2002-03-22 01:33:25 +00:00
|
|
|
void Suff_DoPaths(void);
|
|
|
|
void Suff_AddInclude(char *);
|
|
|
|
void Suff_AddLib(char *);
|
|
|
|
void Suff_FindDeps(GNode *);
|
|
|
|
void Suff_SetNull(char *);
|
|
|
|
void Suff_Init(void);
|
|
|
|
void Suff_PrintAll(void);
|
1994-05-27 12:33:43 +00:00
|
|
|
|
|
|
|
/* targ.c */
|
2002-03-22 01:33:25 +00:00
|
|
|
void Targ_Init(void);
|
|
|
|
GNode *Targ_NewGN(char *);
|
|
|
|
GNode *Targ_FindNode(char *, int);
|
2004-12-16 16:14:16 +00:00
|
|
|
void Targ_FindList(Lst *, Lst *, int);
|
2002-03-22 01:33:25 +00:00
|
|
|
Boolean Targ_Ignore(GNode *);
|
|
|
|
Boolean Targ_Silent(GNode *);
|
|
|
|
Boolean Targ_Precious(GNode *);
|
|
|
|
void Targ_SetMain(GNode *);
|
|
|
|
int Targ_PrintCmd(void *, void *);
|
|
|
|
char *Targ_FmtTime(time_t);
|
|
|
|
void Targ_PrintType(int);
|
|
|
|
void Targ_PrintGraph(int);
|
1994-05-27 12:33:43 +00:00
|
|
|
|
|
|
|
/* var.c */
|
2002-03-22 01:33:25 +00:00
|
|
|
void Var_Delete(char *, GNode *);
|
|
|
|
void Var_Set(char *, char *, GNode *);
|
|
|
|
void Var_Append(char *, char *, GNode *);
|
|
|
|
Boolean Var_Exists(char *, GNode *);
|
|
|
|
char *Var_Value(char *, GNode *, char **);
|
2004-08-12 11:49:55 +00:00
|
|
|
char *Var_Quote(const char *);
|
2004-12-03 12:55:57 +00:00
|
|
|
char *Var_Parse(char *, GNode *, Boolean, size_t *, Boolean *);
|
2002-03-22 01:33:25 +00:00
|
|
|
char *Var_Subst(char *, char *, GNode *, Boolean);
|
|
|
|
char *Var_GetTail(char *);
|
|
|
|
char *Var_GetHead(char *);
|
|
|
|
void Var_Init(void);
|
|
|
|
void Var_Dump(GNode *);
|