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