summaryrefslogtreecommitdiff
path: root/usr.bin/make/extern.h
blob: 195104511b09573531b053ac305f82668bc66660 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
/*	$OpenBSD: extern.h,v 1.30 2000/09/14 13:32:06 espie Exp $	*/
/*	$NetBSD: nonints.h,v 1.12 1996/11/06 17:59:19 christos Exp $	*/

/*-
 * Copyright (c) 1988, 1989, 1990, 1993
 *	The Regents of the University of California.  All rights reserved.
 * Copyright (c) 1989 by Berkeley Softworks
 * All rights reserved.
 *
 * This code is derived from software contributed to Berkeley by
 * Adam de Boor.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions
 * are met:
 * 1. Redistributions of source code must retain the above copyright
 *    notice, this list of conditions and the following disclaimer.
 * 2. Redistributions in binary form must reproduce the above copyright
 *    notice, this list of conditions and the following disclaimer in the
 *    documentation and/or other materials provided with the distribution.
 * 3. All advertising materials mentioning features or use of this software
 *    must display the following acknowledgement:
 *	This product includes software developed by the University of
 *	California, Berkeley and its contributors.
 * 4. Neither the name of the University nor the names of its contributors
 *    may be used to endorse or promote products derived from this software
 *    without specific prior written permission.
 *
 * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
 * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
 * SUCH DAMAGE.
 *
 *	from: @(#)nonints.h	8.3 (Berkeley) 3/19/94
 */

/* arch.c */
extern ReturnStatus Arch_ParseArchive __P((char **, Lst, SymTable *));
extern void Arch_Touch __P((GNode *));
extern void Arch_TouchLib __P((GNode *));
extern Boolean Arch_MTime __P((GNode *));
extern Boolean Arch_MemMTime __P((GNode *));
extern void Arch_FindLib __P((GNode *, Lst));
extern Boolean Arch_LibOODate __P((GNode *));
extern void Arch_Init __P((void));
extern void Arch_End __P((void));
extern int Arch_IsLib __P((GNode *));

/* compat.c */
extern void Compat_Run __P((Lst));

/* cond.c */
extern int Cond_Eval __P((char *));
extern void Cond_End __P((void));

#include "error.h"

/* for.c */
typedef struct For_ For;
extern For *For_Eval __P((char *));
extern Boolean For_Accumulate __P((For *, const char *));
extern void For_Run  __P((For *));

/* main.c */
extern void Main_ParseArgLine __P((char *));
extern char *Cmd_Exec __P((char *, char **));
extern void Error __P((char *, ...));
extern void Fatal __P((char *, ...));
extern void Punt __P((char *, ...));
extern void DieHorribly __P((void));
extern void PrintAddr __P((void *));
extern void Finish __P((int));

/* make.c */
extern void Make_TimeStamp __P((GNode *, GNode *));
extern Boolean Make_OODate __P((GNode *));
extern void Make_HandleUse __P((GNode *, GNode *));
extern void Make_Update __P((GNode *));
extern void Make_DoAllVar __P((GNode *));
extern Boolean Make_Run __P((Lst));

/* parse.c */
extern void Parse_Error __P((int, char *, ...));
extern Boolean Parse_AnyExport __P((void));
extern Boolean Parse_IsVar __P((char *));
extern void Parse_DoVar __P((char *, GSymT *));
extern void Parse_AddIncludeDir __P((char *));
extern void Parse_File __P((char *, FILE *));
extern void Parse_Init __P((void));
extern void Parse_End __P((void));
extern void Parse_FromString __P((char *, unsigned long));
extern void Parse_MainName __P((Lst));
extern unsigned long Parse_Getlineno __P((void));
extern const char *Parse_Getfilename __P((void));

/* str.c */
extern void str_init __P((void));
extern void str_end __P((void));
extern char *str_concat __P((const char *, const char *, char));
extern char **brk_string __P((const char *, int *, Boolean, char **));
extern int Str_Match __P((const char *, const char *));
extern const char *Str_SYSVMatch __P((const char *, const char *, size_t *len));
extern void Str_SYSVSubst __P((Buffer, const char *, const char *, size_t));
extern char *interval_dup __P((const char *begin, const char *end));

/* suff.c */
extern void Suff_ClearSuffixes __P((void));
extern Boolean Suff_IsTransform __P((char *));
extern GNode *Suff_AddTransform __P((char *));
extern void Suff_EndTransform __P((void *));
extern void Suff_AddSuffix __P((char *));
extern Lst Suff_GetPath __P((char *));
extern void Suff_DoPaths __P((void));
extern void Suff_AddInclude __P((char *));
extern void Suff_AddLib __P((char *));
extern void Suff_FindDeps __P((GNode *));
extern void Suff_SetNull __P((char *));
extern void Suff_Init __P((void));
extern void Suff_End __P((void));
extern void Suff_PrintAll __P((void));

/* targ.c */
extern void Targ_Init __P((void));
extern void Targ_End __P((void));
extern GNode *Targ_NewGN __P((char *));
extern GNode *Targ_FindNode __P((char *, int));
extern void Targ_FindList __P((Lst, Lst));
extern Boolean Targ_Ignore __P((GNode *));
extern Boolean Targ_Silent __P((GNode *));
extern Boolean Targ_Precious __P((GNode *));
extern void Targ_SetMain __P((GNode *));
extern void Targ_PrintCmd __P((void *));
extern char *Targ_FmtTime __P((time_t));
extern void Targ_PrintType __P((int));
extern void Targ_PrintGraph __P((int));

/* var.c */
extern void Var_Delete __P((const char *, GSymT *));
extern void Var_Set __P((const char *, const char *, GSymT *));
extern void Varq_Set __P((int, const char *, GNode *));
extern void Var_Append __P((const char *, const char *, GSymT *));
extern void Varq_Append __P((int, const char *, GNode *));
extern Boolean Var_Exists __P((const char *, GSymT *));
extern Boolean Varq_Exists __P((int, GNode *));
extern char *Var_Value __P((const char *, GSymT *));
extern char *Varq_Value __P((int,  GNode *));
extern char *Var_Parse __P((char *, SymTable *, Boolean, size_t *, Boolean *));
extern char *Var_Subst __P((char *, SymTable *, Boolean));
extern void Var_SubstVar __P((Buffer, char *, const char *, GSymT *));
extern char *Var_GetTail __P((char *));
extern char *Var_GetHead __P((char *));
extern void Var_Init __P((void));
extern void Var_End __P((void));
extern void Var_Dump __P((GSymT *));
extern void SymTable_Init __P((SymTable *));
extern void SymTable_Destroy __P((SymTable *));
extern void Var_AddCmdline __P((const char *));