1997-09-24 01:15:07 +04:00
|
|
|
/* $NetBSD: nonints.h,v 1.14 1997/09/23 21:15:09 fair Exp $ */
|
1995-06-14 19:18:37 +04:00
|
|
|
|
1993-03-21 12:45:37 +03:00
|
|
|
/*-
|
1996-11-06 20:58:58 +03:00
|
|
|
* Copyright (c) 1988, 1989, 1990, 1993
|
|
|
|
* The Regents of the University of California. All rights reserved.
|
1993-03-21 12:45:37 +03:00
|
|
|
* 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.
|
|
|
|
*
|
1996-11-06 20:58:58 +03:00
|
|
|
* from: @(#)nonints.h 8.3 (Berkeley) 3/19/94
|
1993-03-21 12:45:37 +03:00
|
|
|
*/
|
|
|
|
|
1994-03-05 03:34:29 +03:00
|
|
|
/* arch.c */
|
|
|
|
ReturnStatus Arch_ParseArchive __P((char **, Lst, GNode *));
|
|
|
|
void Arch_Touch __P((GNode *));
|
|
|
|
void Arch_TouchLib __P((GNode *));
|
1997-09-24 01:15:07 +04:00
|
|
|
time_t Arch_MTime __P((GNode *));
|
|
|
|
time_t Arch_MemMTime __P((GNode *));
|
1994-03-05 03:34:29 +03:00
|
|
|
void Arch_FindLib __P((GNode *, Lst));
|
|
|
|
Boolean Arch_LibOODate __P((GNode *));
|
|
|
|
void Arch_Init __P((void));
|
1994-06-07 02:45:17 +04:00
|
|
|
void Arch_End __P((void));
|
1996-11-06 20:58:58 +03:00
|
|
|
int Arch_IsLib __P((GNode *));
|
1993-03-21 12:45:37 +03:00
|
|
|
|
1994-03-05 03:34:29 +03:00
|
|
|
/* compat.c */
|
|
|
|
void Compat_Run __P((Lst));
|
|
|
|
|
|
|
|
/* cond.c */
|
|
|
|
int Cond_Eval __P((char *));
|
|
|
|
void Cond_End __P((void));
|
|
|
|
|
|
|
|
/* for.c */
|
|
|
|
int For_Eval __P((char *));
|
|
|
|
void For_Run __P((void));
|
|
|
|
|
|
|
|
/* main.c */
|
|
|
|
void Main_ParseArgLine __P((char *));
|
|
|
|
int main __P((int, char **));
|
1996-05-29 03:34:35 +04:00
|
|
|
char *Cmd_Exec __P((char *, char **));
|
1994-03-05 03:34:29 +03:00
|
|
|
void Error __P((char *, ...));
|
|
|
|
void Fatal __P((char *, ...));
|
|
|
|
void Punt __P((char *, ...));
|
|
|
|
void DieHorribly __P((void));
|
1994-06-07 02:45:17 +04:00
|
|
|
int PrintAddr __P((ClientData, ClientData));
|
1994-03-05 03:34:29 +03:00
|
|
|
void Finish __P((int));
|
1996-08-13 20:42:00 +04:00
|
|
|
char *estrdup __P((const char *));
|
1996-04-01 01:30:05 +04:00
|
|
|
void *emalloc __P((size_t));
|
|
|
|
void *erealloc __P((void *, size_t));
|
1994-03-05 03:34:29 +03:00
|
|
|
void enomem __P((void));
|
1995-11-03 02:54:35 +03:00
|
|
|
int eunlink __P((const char *));
|
1994-03-05 03:34:29 +03:00
|
|
|
|
|
|
|
/* parse.c */
|
|
|
|
void Parse_Error __P((int, char *, ...));
|
|
|
|
Boolean Parse_AnyExport __P((void));
|
|
|
|
Boolean Parse_IsVar __P((char *));
|
|
|
|
void Parse_DoVar __P((char *, GNode *));
|
|
|
|
void Parse_AddIncludeDir __P((char *));
|
|
|
|
void Parse_File __P((char *, FILE *));
|
|
|
|
void Parse_Init __P((void));
|
1994-06-07 02:45:17 +04:00
|
|
|
void Parse_End __P((void));
|
1994-03-05 03:34:29 +03:00
|
|
|
void Parse_FromString __P((char *));
|
|
|
|
Lst Parse_MainName __P((void));
|
|
|
|
|
|
|
|
/* str.c */
|
1994-06-07 02:45:17 +04:00
|
|
|
void str_init __P((void));
|
|
|
|
void str_end __P((void));
|
1994-03-05 03:34:29 +03:00
|
|
|
char *str_concat __P((char *, char *, int));
|
1994-06-16 22:50:16 +04:00
|
|
|
char **brk_string __P((char *, int *, Boolean));
|
1994-03-05 03:34:29 +03:00
|
|
|
char *Str_FindSubstring __P((char *, char *));
|
|
|
|
int Str_Match __P((char *, char *));
|
|
|
|
char *Str_SYSVMatch __P((char *, char *, int *len));
|
|
|
|
void Str_SYSVSubst __P((Buffer, char *, char *, int));
|
|
|
|
|
|
|
|
/* suff.c */
|
|
|
|
void Suff_ClearSuffixes __P((void));
|
|
|
|
Boolean Suff_IsTransform __P((char *));
|
|
|
|
GNode *Suff_AddTransform __P((char *));
|
1994-06-07 02:45:17 +04:00
|
|
|
int Suff_EndTransform __P((ClientData, ClientData));
|
1997-05-02 18:24:27 +04:00
|
|
|
void Suff_AddSuffix __P((char *, GNode **));
|
1994-03-05 03:34:29 +03:00
|
|
|
Lst Suff_GetPath __P((char *));
|
|
|
|
void Suff_DoPaths __P((void));
|
|
|
|
void Suff_AddInclude __P((char *));
|
|
|
|
void Suff_AddLib __P((char *));
|
|
|
|
void Suff_FindDeps __P((GNode *));
|
|
|
|
void Suff_SetNull __P((char *));
|
|
|
|
void Suff_Init __P((void));
|
1994-06-07 02:45:17 +04:00
|
|
|
void Suff_End __P((void));
|
1994-03-05 03:34:29 +03:00
|
|
|
void Suff_PrintAll __P((void));
|
|
|
|
|
|
|
|
/* targ.c */
|
|
|
|
void Targ_Init __P((void));
|
1994-06-07 02:45:17 +04:00
|
|
|
void Targ_End __P((void));
|
1997-05-02 18:24:27 +04:00
|
|
|
Lst Targ_List __P((void));
|
1994-03-05 03:34:29 +03:00
|
|
|
GNode *Targ_NewGN __P((char *));
|
|
|
|
GNode *Targ_FindNode __P((char *, int));
|
|
|
|
Lst Targ_FindList __P((Lst, int));
|
|
|
|
Boolean Targ_Ignore __P((GNode *));
|
|
|
|
Boolean Targ_Silent __P((GNode *));
|
|
|
|
Boolean Targ_Precious __P((GNode *));
|
|
|
|
void Targ_SetMain __P((GNode *));
|
1994-06-07 02:45:17 +04:00
|
|
|
int Targ_PrintCmd __P((ClientData, ClientData));
|
1994-03-05 03:34:29 +03:00
|
|
|
char *Targ_FmtTime __P((time_t));
|
|
|
|
void Targ_PrintType __P((int));
|
|
|
|
void Targ_PrintGraph __P((int));
|
|
|
|
|
|
|
|
/* var.c */
|
|
|
|
void Var_Delete __P((char *, GNode *));
|
|
|
|
void Var_Set __P((char *, char *, GNode *));
|
|
|
|
void Var_Append __P((char *, char *, GNode *));
|
|
|
|
Boolean Var_Exists __P((char *, GNode *));
|
1994-06-07 02:45:17 +04:00
|
|
|
char *Var_Value __P((char *, GNode *, char **));
|
1994-03-05 03:34:29 +03:00
|
|
|
char *Var_Parse __P((char *, GNode *, Boolean, int *, Boolean *));
|
|
|
|
char *Var_Subst __P((char *, char *, GNode *, Boolean));
|
|
|
|
char *Var_GetTail __P((char *));
|
|
|
|
char *Var_GetHead __P((char *));
|
|
|
|
void Var_Init __P((void));
|
1994-06-07 02:45:17 +04:00
|
|
|
void Var_End __P((void));
|
1994-03-05 03:34:29 +03:00
|
|
|
void Var_Dump __P((GNode *));
|