Convert make(1) to use ANSI style function declarations. Variable
[dragonfly.git] / usr.bin / make / nonints.h
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 $
40  * $DragonFly: src/usr.bin/make/Attic/nonints.h,v 1.10 2004/11/12 22:57:04 dillon Exp $
41  */
42
43 /* arch.c */
44 ReturnStatus Arch_ParseArchive(char **, Lst, GNode *);
45 void Arch_Touch(GNode *);
46 void Arch_TouchLib(GNode *);
47 int Arch_MTime(GNode *);
48 int Arch_MemMTime(GNode *);
49 void Arch_FindLib(GNode *, Lst);
50 Boolean Arch_LibOODate(GNode *);
51 void Arch_Init(void);
52 void Arch_End(void);
53
54 /* compat.c */
55 void Compat_Run(Lst);
56
57 /* cond.c */
58 int Cond_Eval(char *);
59 void Cond_End(void);
60
61 /* for.c */
62 int For_Eval(char *);
63 void For_Run (void);
64
65 /* main.c */
66 void Main_ParseArgLine(char *);
67 int main(int, char **);
68 char *Cmd_Exec(char *, char **);
69 void Debug(const char *, ...);
70 void Error(const char *, ...);
71 void Fatal(const char *, ...);
72 void Punt(const char *, ...);
73 void DieHorribly(void);
74 int PrintAddr(void *, void *);
75 void Finish(int);
76 char *estrdup(const char *);
77 void *emalloc(size_t);
78 void *erealloc(void *, size_t);
79 void enomem(void);
80 int eunlink(const char *);
81
82 /* parse.c */
83 void Parse_Error(int, const char *, ...);
84 Boolean Parse_AnyExport(void);
85 Boolean Parse_IsVar(char *);
86 void Parse_DoVar(char *, GNode *);
87 void Parse_AddIncludeDir(char *);
88 void Parse_File(char *, FILE *);
89 void Parse_Init(void);
90 void Parse_End(void);
91 void Parse_FromString(char *);
92 Lst Parse_MainName(void);
93
94 /* str.c */
95 void str_init(void);
96 void str_end(void);
97 char *str_concat(const char *, char *, int);
98 char **brk_string(char *, int *, Boolean);
99 char *Str_FindSubstring(char *, char *);
100 int Str_Match(char *, char *);
101 char *Str_SYSVMatch(char *, char *, int *len);
102 void Str_SYSVSubst(Buffer, char *, char *, int);
103
104 /* suff.c */
105 void Suff_ClearSuffixes(void);
106 Boolean Suff_IsTransform(char *);
107 GNode *Suff_AddTransform(char *);
108 int Suff_EndTransform(void *, void *);
109 void Suff_AddSuffix(char *);
110 Lst Suff_GetPath(char *);
111 void Suff_DoPaths(void);
112 void Suff_AddInclude(char *);
113 void Suff_AddLib(char *);
114 void Suff_FindDeps(GNode *);
115 void Suff_SetNull(char *);
116 void Suff_Init(void);
117 void Suff_End(void);
118 void Suff_PrintAll(void);
119
120 /* targ.c */
121 void Targ_Init(void);
122 void Targ_End(void);
123 GNode *Targ_NewGN(char *);
124 GNode *Targ_FindNode(char *, int);
125 Lst Targ_FindList(Lst, int);
126 Boolean Targ_Ignore(GNode *);
127 Boolean Targ_Silent(GNode *);
128 Boolean Targ_Precious(GNode *);
129 void Targ_SetMain(GNode *);
130 int Targ_PrintCmd(void *, void *);
131 char *Targ_FmtTime(time_t);
132 void Targ_PrintType(int);
133 void Targ_PrintGraph(int);
134
135 /* var.c */
136 void Var_Delete(char *, GNode *);
137 void Var_Set(char *, char *, GNode *);
138 void Var_SetEnv(char *, GNode *);
139 void Var_Append(char *, char *, GNode *);
140 Boolean Var_Exists(char *, GNode *);
141 char *Var_Value(char *, GNode *, char **);
142 char *Var_Parse(char *, GNode *, Boolean, int *, Boolean *);
143 char *Var_Subst(char *, char *, GNode *, Boolean);
144 char *Var_GetTail(char *);
145 char *Var_GetHead(char *);
146 void Var_Init(void);
147 void Var_End(void);
148 void Var_Dump(GNode *);