xref: /original-bsd/usr.bin/make/nonints.h (revision 7bd6ee9e)
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  * %sccs.include.redist.c%
11  *
12  *	@(#)nonints.h	8.3 (Berkeley) 03/19/94
13  */
14 
15 /* arch.c */
16 ReturnStatus Arch_ParseArchive __P((char **, Lst, GNode *));
17 void Arch_Touch __P((GNode *));
18 void Arch_TouchLib __P((GNode *));
19 int Arch_MTime __P((GNode *));
20 int Arch_MemMTime __P((GNode *));
21 void Arch_FindLib __P((GNode *, Lst));
22 Boolean Arch_LibOODate __P((GNode *));
23 void Arch_Init __P((void));
24 
25 /* compat.c */
26 void Compat_Run __P((Lst));
27 
28 /* cond.c */
29 int Cond_Eval __P((char *));
30 void Cond_End __P((void));
31 
32 /* for.c */
33 int For_Eval __P((char *));
34 void For_Run  __P((void));
35 
36 /* main.c */
37 void Main_ParseArgLine __P((char *));
38 int main __P((int, char **));
39 void Error __P((const char *, ...));
40 void Fatal __P((const char *, ...));
41 void Punt __P((const char *, ...));
42 void DieHorribly __P((void));
43 void Finish __P((int));
44 char *emalloc __P((u_int));
45 void enomem __P((void));
46 
47 /* parse.c */
48 void Parse_Error __P((int, const char *, ...));
49 Boolean Parse_AnyExport __P((void));
50 Boolean Parse_IsVar __P((char *));
51 void Parse_DoVar __P((char *, GNode *));
52 void Parse_AddIncludeDir __P((char *));
53 void Parse_File __P((char *, FILE *));
54 void Parse_Init __P((void));
55 void Parse_FromString __P((char *));
56 Lst Parse_MainName __P((void));
57 
58 /* str.c */
59 char *str_concat __P((char *, char *, int));
60 char **brk_string __P((char *, int *));
61 char *Str_FindSubstring __P((char *, char *));
62 int Str_Match __P((char *, char *));
63 char *Str_SYSVMatch __P((char *, char *, int *len));
64 void Str_SYSVSubst __P((Buffer, char *, char *, int));
65 
66 /* suff.c */
67 void Suff_ClearSuffixes __P((void));
68 Boolean Suff_IsTransform __P((char *));
69 GNode *Suff_AddTransform __P((char *));
70 int Suff_EndTransform __P((GNode *));
71 void Suff_AddSuffix __P((char *));
72 Lst Suff_GetPath __P((char *));
73 void Suff_DoPaths __P((void));
74 void Suff_AddInclude __P((char *));
75 void Suff_AddLib __P((char *));
76 void Suff_FindDeps __P((GNode *));
77 void Suff_SetNull __P((char *));
78 void Suff_Init __P((void));
79 void Suff_PrintAll __P((void));
80 
81 /* targ.c */
82 void Targ_Init __P((void));
83 GNode *Targ_NewGN __P((char *));
84 GNode *Targ_FindNode __P((char *, int));
85 Lst Targ_FindList __P((Lst, int));
86 Boolean Targ_Ignore __P((GNode *));
87 Boolean Targ_Silent __P((GNode *));
88 Boolean Targ_Precious __P((GNode *));
89 void Targ_SetMain __P((GNode *));
90 int Targ_PrintCmd __P((char *));
91 char *Targ_FmtTime __P((time_t));
92 void Targ_PrintType __P((int));
93 void Targ_PrintGraph __P((int));
94 
95 /* var.c */
96 void Var_Delete __P((char *, GNode *));
97 void Var_Set __P((char *, char *, GNode *));
98 void Var_Append __P((char *, char *, GNode *));
99 Boolean Var_Exists __P((char *, GNode *));
100 char *Var_Value __P((char *, GNode *));
101 char *Var_Parse __P((char *, GNode *, Boolean, int *, Boolean *));
102 char *Var_Subst __P((char *, char *, GNode *, Boolean));
103 char *Var_GetTail __P((char *));
104 char *Var_GetHead __P((char *));
105 void Var_Init __P((void));
106 void Var_Dump __P((GNode *));
107