BSD 4_4_Lite1 release
[unix-history] / usr / src / usr.bin / make / nonints.h
CommitLineData
822a00a4 1/*-
8db0b741
KB
2 * Copyright (c) 1988, 1989, 1990, 1993
3 * The Regents of the University of California. All rights reserved.
822a00a4
KB
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 *
ad787160
C
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.
8c8a5b54 25 *
ad787160
C
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 *
ed554bc5 38 * @(#)nonints.h 8.3 (Berkeley) 3/19/94
822a00a4
KB
39 */
40
27a78130
CZ
41/* arch.c */
42ReturnStatus Arch_ParseArchive __P((char **, Lst, GNode *));
43void Arch_Touch __P((GNode *));
44void Arch_TouchLib __P((GNode *));
45int Arch_MTime __P((GNode *));
46int Arch_MemMTime __P((GNode *));
47void Arch_FindLib __P((GNode *, Lst));
48Boolean Arch_LibOODate __P((GNode *));
49void Arch_Init __P((void));
50
51/* compat.c */
52void Compat_Run __P((Lst));
fa942a09 53
27a78130
CZ
54/* cond.c */
55int Cond_Eval __P((char *));
56void Cond_End __P((void));
57
58/* for.c */
59int For_Eval __P((char *));
60void For_Run __P((void));
61
62/* main.c */
63void Main_ParseArgLine __P((char *));
64int main __P((int, char **));
65void Error __P((const char *, ...));
66void Fatal __P((const char *, ...));
67void Punt __P((const char *, ...));
68void DieHorribly __P((void));
69void Finish __P((int));
70char *emalloc __P((u_int));
71void enomem __P((void));
72
73/* parse.c */
74void Parse_Error __P((int, const char *, ...));
75Boolean Parse_AnyExport __P((void));
76Boolean Parse_IsVar __P((char *));
77void Parse_DoVar __P((char *, GNode *));
78void Parse_AddIncludeDir __P((char *));
79void Parse_File __P((char *, FILE *));
80void Parse_Init __P((void));
81void Parse_FromString __P((char *));
82Lst Parse_MainName __P((void));
83
84/* str.c */
85char *str_concat __P((char *, char *, int));
86char **brk_string __P((char *, int *));
87char *Str_FindSubstring __P((char *, char *));
88int Str_Match __P((char *, char *));
89char *Str_SYSVMatch __P((char *, char *, int *len));
90void Str_SYSVSubst __P((Buffer, char *, char *, int));
91
92/* suff.c */
93void Suff_ClearSuffixes __P((void));
94Boolean Suff_IsTransform __P((char *));
95GNode *Suff_AddTransform __P((char *));
96int Suff_EndTransform __P((GNode *));
97void Suff_AddSuffix __P((char *));
98Lst Suff_GetPath __P((char *));
99void Suff_DoPaths __P((void));
100void Suff_AddInclude __P((char *));
101void Suff_AddLib __P((char *));
102void Suff_FindDeps __P((GNode *));
103void Suff_SetNull __P((char *));
104void Suff_Init __P((void));
105void Suff_PrintAll __P((void));
106
107/* targ.c */
108void Targ_Init __P((void));
109GNode *Targ_NewGN __P((char *));
110GNode *Targ_FindNode __P((char *, int));
111Lst Targ_FindList __P((Lst, int));
112Boolean Targ_Ignore __P((GNode *));
113Boolean Targ_Silent __P((GNode *));
114Boolean Targ_Precious __P((GNode *));
115void Targ_SetMain __P((GNode *));
116int Targ_PrintCmd __P((char *));
117char *Targ_FmtTime __P((time_t));
118void Targ_PrintType __P((int));
119void Targ_PrintGraph __P((int));
120
121/* var.c */
122void Var_Delete __P((char *, GNode *));
123void Var_Set __P((char *, char *, GNode *));
124void Var_Append __P((char *, char *, GNode *));
125Boolean Var_Exists __P((char *, GNode *));
126char *Var_Value __P((char *, GNode *));
127char *Var_Parse __P((char *, GNode *, Boolean, int *, Boolean *));
128char *Var_Subst __P((char *, char *, GNode *, Boolean));
129char *Var_GetTail __P((char *));
130char *Var_GetHead __P((char *));
131void Var_Init __P((void));
132void Var_Dump __P((GNode *));