Annotation of src/usr.bin/make/extern.h, Revision 1.23
1.23 ! espie 1: /* $OpenBSD: extern.h,v 1.22 2000/06/10 01:41:05 espie Exp $ */
1.6 millert 2: /* $NetBSD: nonints.h,v 1.12 1996/11/06 17:59:19 christos Exp $ */
1.1 deraadt 3:
4: /*-
1.6 millert 5: * Copyright (c) 1988, 1989, 1990, 1993
6: * The Regents of the University of California. All rights reserved.
1.1 deraadt 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: *
1.6 millert 41: * from: @(#)nonints.h 8.3 (Berkeley) 3/19/94
1.1 deraadt 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 *));
1.19 espie 48: Boolean Arch_MTime __P((GNode *));
49: Boolean Arch_MemMTime __P((GNode *));
1.1 deraadt 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));
1.6 millert 54: int Arch_IsLib __P((GNode *));
1.1 deraadt 55:
56: /* compat.c */
57: void Compat_Run __P((Lst));
58:
59: /* cond.c */
60: int Cond_Eval __P((char *));
61: void Cond_End __P((void));
62:
1.15 espie 63: #include "error.h"
64:
1.1 deraadt 65: /* for.c */
1.16 espie 66: typedef struct For_ For;
67: For *For_Eval __P((char *));
68: Boolean For_Accumulate __P((For *, const char *));
69: void For_Run __P((For *));
1.1 deraadt 70:
71: /* main.c */
72: void Main_ParseArgLine __P((char *));
1.5 briggs 73: char *Cmd_Exec __P((char *, char **));
1.1 deraadt 74: void Error __P((char *, ...));
75: void Fatal __P((char *, ...));
76: void Punt __P((char *, ...));
77: void DieHorribly __P((void));
1.22 espie 78: void PrintAddr __P((void *));
1.1 deraadt 79: void Finish __P((int));
1.8 espie 80:
81: /* make.c */
1.21 espie 82: void Make_TimeStamp __P((GNode *, GNode *));
1.8 espie 83: Boolean Make_OODate __P((GNode *));
1.21 espie 84: void Make_HandleUse __P((GNode *, GNode *));
1.8 espie 85: void Make_Update __P((GNode *));
86: void Make_DoAllVar __P((GNode *));
87: Boolean Make_Run __P((Lst));
1.1 deraadt 88:
89: /* parse.c */
90: void Parse_Error __P((int, char *, ...));
91: Boolean Parse_AnyExport __P((void));
92: Boolean Parse_IsVar __P((char *));
93: void Parse_DoVar __P((char *, GNode *));
94: void Parse_AddIncludeDir __P((char *));
95: void Parse_File __P((char *, FILE *));
96: void Parse_Init __P((void));
97: void Parse_End __P((void));
1.10 espie 98: void Parse_FromString __P((char *, unsigned long));
1.23 ! espie 99: void Parse_MainName __P((Lst));
1.10 espie 100: unsigned long Parse_Getlineno __P((void));
1.20 espie 101: const char *Parse_Getfilename __P((void));
1.1 deraadt 102:
103: /* str.c */
104: void str_init __P((void));
105: void str_end __P((void));
106: char *str_concat __P((char *, char *, int));
1.7 espie 107: char **brk_string __P((char *, int *, Boolean, char **));
1.1 deraadt 108: int Str_Match __P((char *, char *));
109: char *Str_SYSVMatch __P((char *, char *, int *len));
110: void Str_SYSVSubst __P((Buffer, char *, char *, int));
1.12 espie 111: char *interval_dup __P((const char *begin, const char *end));
1.1 deraadt 112:
113: /* suff.c */
114: void Suff_ClearSuffixes __P((void));
115: Boolean Suff_IsTransform __P((char *));
116: GNode *Suff_AddTransform __P((char *));
1.22 espie 117: void Suff_EndTransform __P((void *));
1.1 deraadt 118: void Suff_AddSuffix __P((char *));
119: Lst Suff_GetPath __P((char *));
120: void Suff_DoPaths __P((void));
121: void Suff_AddInclude __P((char *));
122: void Suff_AddLib __P((char *));
123: void Suff_FindDeps __P((GNode *));
124: void Suff_SetNull __P((char *));
125: void Suff_Init __P((void));
126: void Suff_End __P((void));
127: void Suff_PrintAll __P((void));
128:
129: /* targ.c */
130: void Targ_Init __P((void));
131: void Targ_End __P((void));
132: GNode *Targ_NewGN __P((char *));
133: GNode *Targ_FindNode __P((char *, int));
1.23 ! espie 134: void Targ_FindList __P((Lst, Lst));
1.1 deraadt 135: Boolean Targ_Ignore __P((GNode *));
136: Boolean Targ_Silent __P((GNode *));
137: Boolean Targ_Precious __P((GNode *));
138: void Targ_SetMain __P((GNode *));
1.22 espie 139: void Targ_PrintCmd __P((void *));
1.1 deraadt 140: char *Targ_FmtTime __P((time_t));
141: void Targ_PrintType __P((int));
142: void Targ_PrintGraph __P((int));
143:
144: /* var.c */
145: void Var_Delete __P((char *, GNode *));
146: void Var_Set __P((char *, char *, GNode *));
147: void Var_Append __P((char *, char *, GNode *));
148: Boolean Var_Exists __P((char *, GNode *));
1.13 espie 149: char *Var_Value __P((char *, GNode *));
1.18 espie 150: char *Var_Parse __P((char *, GNode *, Boolean, size_t *, Boolean *));
1.17 espie 151: char *Var_Subst __P((char *, GNode *, Boolean));
152: void Var_SubstVar __P((Buffer, char *, const char *, GNode *));
1.1 deraadt 153: char *Var_GetTail __P((char *));
154: char *Var_GetHead __P((char *));
155: void Var_Init __P((void));
156: void Var_End __P((void));
157: void Var_Dump __P((GNode *));