Remove __P macros from src/usr.bin and src/usr.sbin.
[dragonfly.git] / usr.bin / make / nonints.h
CommitLineData
984263bc
MD
1/*-
2 * Copyright (c) 1988, 1989, 1990, 1993
3 * The Regents of the University of California. All rights reserved.
4 * Copyright (c) 1989 by Berkeley Softworks
5 * All rights reserved.
6 *
7 * This code is derived from software contributed to Berkeley by
8 * Adam de Boor.
9 *
10 * Redistribution and use in source and binary forms, with or without
11 * modification, are permitted provided that the following conditions
12 * are met:
13 * 1. Redistributions of source code must retain the above copyright
14 * notice, this list of conditions and the following disclaimer.
15 * 2. Redistributions in binary form must reproduce the above copyright
16 * notice, this list of conditions and the following disclaimer in the
17 * documentation and/or other materials provided with the distribution.
18 * 3. All advertising materials mentioning features or use of this software
19 * must display the following acknowledgement:
20 * This product includes software developed by the University of
21 * California, Berkeley and its contributors.
22 * 4. Neither the name of the University nor the names of its contributors
23 * may be used to endorse or promote products derived from this software
24 * without specific prior written permission.
25 *
26 * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
27 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
28 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
29 * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
30 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
31 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
32 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
33 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
34 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
35 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
36 * SUCH DAMAGE.
37 *
38 * from: @(#)nonints.h 8.3 (Berkeley) 3/19/94
39 * $FreeBSD: src/usr.bin/make/nonints.h,v 1.8 1999/08/28 01:03:35 peter Exp $
2d8a3be7 40 * $DragonFly: src/usr.bin/make/Attic/nonints.h,v 1.3 2003/11/03 19:31:30 eirikn Exp $
984263bc
MD
41 */
42
43/* arch.c */
2d8a3be7
EN
44ReturnStatus Arch_ParseArchive(char **, Lst, GNode *);
45void Arch_Touch(GNode *);
46void Arch_TouchLib(GNode *);
47int Arch_MTime(GNode *);
48int Arch_MemMTime(GNode *);
49void Arch_FindLib(GNode *, Lst);
50Boolean Arch_LibOODate(GNode *);
51void Arch_Init(void);
52void Arch_End(void);
984263bc
MD
53
54/* compat.c */
2d8a3be7 55void Compat_Run(Lst);
984263bc
MD
56
57/* cond.c */
2d8a3be7
EN
58int Cond_Eval(char *);
59void Cond_End(void);
984263bc
MD
60
61/* for.c */
2d8a3be7
EN
62int For_Eval(char *);
63void For_Run (void);
984263bc
MD
64
65/* main.c */
2d8a3be7
EN
66void Main_ParseArgLine(char *);
67int main(int, char **);
68char *Cmd_Exec(char *, char **);
69void Error(char *, ...);
70void Fatal(char *, ...);
71void Punt(char *, ...);
72void DieHorribly(void);
73int PrintAddr(ClientData, ClientData);
74void Finish(int);
75char *estrdup(const char *);
76void *emalloc(size_t);
984263bc
MD
77/* efree(x) works when x==NULL. STDC behavior, may need some different
78 * definition for cross-builds on deficient systems */
79#define efree free
2d8a3be7
EN
80void *erealloc(void *, size_t);
81void enomem(void);
82int eunlink(const char *);
984263bc
MD
83
84/* parse.c */
2d8a3be7
EN
85void Parse_Error(int, char *, ...);
86Boolean Parse_AnyExport(void);
87Boolean Parse_IsVar(char *);
88void Parse_DoVar(char *, GNode *);
89void Parse_AddIncludeDir(char *);
90void Parse_File(char *, FILE *);
91void Parse_Init(void);
92void Parse_End(void);
93void Parse_FromString(char *);
94Lst Parse_MainName(void);
984263bc
MD
95
96/* str.c */
2d8a3be7
EN
97void str_init(void);
98void str_end(void);
99char *str_concat(char *, char *, int);
100char **brk_string(char *, int *, Boolean);
101char *Str_FindSubstring(char *, char *);
102int Str_Match(char *, char *);
103char *Str_SYSVMatch(char *, char *, int *len);
104void Str_SYSVSubst(Buffer, char *, char *, int);
984263bc
MD
105
106/* suff.c */
2d8a3be7
EN
107void Suff_ClearSuffixes(void);
108Boolean Suff_IsTransform(char *);
109GNode *Suff_AddTransform(char *);
110int Suff_EndTransform(ClientData, ClientData);
111void Suff_AddSuffix(char *);
112Lst Suff_GetPath(char *);
113void Suff_DoPaths(void);
114void Suff_AddInclude(char *);
115void Suff_AddLib(char *);
116void Suff_FindDeps(GNode *);
117void Suff_SetNull(char *);
118void Suff_Init(void);
119void Suff_End(void);
120void Suff_PrintAll(void);
984263bc
MD
121
122/* targ.c */
2d8a3be7
EN
123void Targ_Init(void);
124void Targ_End(void);
125GNode *Targ_NewGN(char *);
126GNode *Targ_FindNode(char *, int);
127Lst Targ_FindList(Lst, int);
128Boolean Targ_Ignore(GNode *);
129Boolean Targ_Silent(GNode *);
130Boolean Targ_Precious(GNode *);
131void Targ_SetMain(GNode *);
132int Targ_PrintCmd(ClientData, ClientData);
133char *Targ_FmtTime(time_t);
134void Targ_PrintType(int);
135void Targ_PrintGraph(int);
984263bc
MD
136
137/* var.c */
2d8a3be7
EN
138void Var_Delete(char *, GNode *);
139void Var_Set(char *, char *, GNode *);
140void Var_Append(char *, char *, GNode *);
141Boolean Var_Exists(char *, GNode *);
142char *Var_Value(char *, GNode *, char **);
143char *Var_Parse(char *, GNode *, Boolean, int *, Boolean *);
144char *Var_Subst(char *, char *, GNode *, Boolean);
145char *Var_GetTail(char *);
146char *Var_GetHead(char *);
147void Var_Init(void);
148void Var_End(void);
149void Var_Dump(GNode *);