parse.c (236769) | parse.c (237578) |
---|---|
1/* $NetBSD: parse.c,v 1.184 2012/04/24 20:12:16 sjg Exp $ */ | 1/* $NetBSD: parse.c,v 1.185 2012/06/12 19:21:51 joerg Exp $ */ |
2 3/* 4 * Copyright (c) 1988, 1989, 1990, 1993 5 * The Regents of the University of California. All rights reserved. 6 * 7 * This code is derived from software contributed to Berkeley by 8 * Adam de Boor. 9 * --- 54 unchanged lines hidden (view full) --- 64 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 65 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 66 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 67 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 68 * SUCH DAMAGE. 69 */ 70 71#ifndef MAKE_NATIVE | 2 3/* 4 * Copyright (c) 1988, 1989, 1990, 1993 5 * The Regents of the University of California. All rights reserved. 6 * 7 * This code is derived from software contributed to Berkeley by 8 * Adam de Boor. 9 * --- 54 unchanged lines hidden (view full) --- 64 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 65 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 66 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 67 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 68 * SUCH DAMAGE. 69 */ 70 71#ifndef MAKE_NATIVE |
72static char rcsid[] = "$NetBSD: parse.c,v 1.184 2012/04/24 20:12:16 sjg Exp $"; | 72static char rcsid[] = "$NetBSD: parse.c,v 1.185 2012/06/12 19:21:51 joerg Exp $"; |
73#else 74#include <sys/cdefs.h> 75#ifndef lint 76#if 0 77static char sccsid[] = "@(#)parse.c 8.3 (Berkeley) 3/19/94"; 78#else | 73#else 74#include <sys/cdefs.h> 75#ifndef lint 76#if 0 77static char sccsid[] = "@(#)parse.c 8.3 (Berkeley) 3/19/94"; 78#else |
79__RCSID("$NetBSD: parse.c,v 1.184 2012/04/24 20:12:16 sjg Exp $"); | 79__RCSID("$NetBSD: parse.c,v 1.185 2012/06/12 19:21:51 joerg Exp $"); |
80#endif 81#endif /* not lint */ 82#endif 83 84/*- 85 * parse.c -- 86 * Functions to parse a makefile. 87 * --- 254 unchanged lines hidden (view full) --- 342{ ".WAIT", Wait, 0 }, 343}; 344 345//////////////////////////////////////////////////////////// 346// local functions 347 348static int ParseIsEscaped(const char *, const char *); 349static void ParseErrorInternal(const char *, size_t, int, const char *, ...) | 80#endif 81#endif /* not lint */ 82#endif 83 84/*- 85 * parse.c -- 86 * Functions to parse a makefile. 87 * --- 254 unchanged lines hidden (view full) --- 342{ ".WAIT", Wait, 0 }, 343}; 344 345//////////////////////////////////////////////////////////// 346// local functions 347 348static int ParseIsEscaped(const char *, const char *); 349static void ParseErrorInternal(const char *, size_t, int, const char *, ...) |
350 __attribute__((__format__(__printf__, 4, 5))); | 350 MAKE_ATTR_PRINTFLIKE(4,5); |
351static void ParseVErrorInternal(FILE *, const char *, size_t, int, const char *, va_list) | 351static void ParseVErrorInternal(FILE *, const char *, size_t, int, const char *, va_list) |
352 __attribute__((__format__(__printf__, 5, 0))); | 352 MAKE_ATTR_PRINTFLIKE(5, 0); |
353static int ParseFindKeyword(const char *); 354static int ParseLinkSrc(void *, void *); 355static int ParseDoOp(void *, void *); 356static void ParseDoSrc(int, const char *); 357static int ParseFindMain(void *, void *); 358static int ParseAddDir(void *, void *); 359static int ParseClearPath(void *, void *); 360static void ParseDoDependency(char *); --- 2762 unchanged lines hidden --- | 353static int ParseFindKeyword(const char *); 354static int ParseLinkSrc(void *, void *); 355static int ParseDoOp(void *, void *); 356static void ParseDoSrc(int, const char *); 357static int ParseFindMain(void *, void *); 358static int ParseAddDir(void *, void *); 359static int ParseClearPath(void *, void *); 360static void ParseDoDependency(char *); --- 2762 unchanged lines hidden --- |