main.c (102393) | main.c (103545) |
---|---|
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. --- 32 unchanged lines hidden (view full) --- 41#ifndef lint 42#if 0 43static char copyright[] = 44"@(#) Copyright (c) 1988, 1989, 1990, 1993\n\ 45 The Regents of the University of California. All rights reserved.\n"; 46#endif 47#endif /* not lint */ 48#include <sys/cdefs.h> | 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. --- 32 unchanged lines hidden (view full) --- 41#ifndef lint 42#if 0 43static char copyright[] = 44"@(#) Copyright (c) 1988, 1989, 1990, 1993\n\ 45 The Regents of the University of California. All rights reserved.\n"; 46#endif 47#endif /* not lint */ 48#include <sys/cdefs.h> |
49__FBSDID("$FreeBSD: head/usr.bin/make/main.c 102393 2002-08-25 02:45:04Z jmallett $"); | 49__FBSDID("$FreeBSD: head/usr.bin/make/main.c 103545 2002-09-18 16:13:03Z jmallett $"); |
50 51/*- 52 * main.c -- 53 * The main file for this entire program. Exit routines etc 54 * reside here. 55 * 56 * Utility functions defined in this file: 57 * Main_ParseArgLine Takes a line of arguments, breaks them and --- 1063 unchanged lines hidden (view full) --- 1121 break; 1122 } 1123 return res; 1124bad: 1125 res = emalloc(1); 1126 *res = '\0'; 1127 return res; 1128} | 50 51/*- 52 * main.c -- 53 * The main file for this entire program. Exit routines etc 54 * reside here. 55 * 56 * Utility functions defined in this file: 57 * Main_ParseArgLine Takes a line of arguments, breaks them and --- 1063 unchanged lines hidden (view full) --- 1121 break; 1122 } 1123 return res; 1124bad: 1125 res = emalloc(1); 1126 *res = '\0'; 1127 return res; 1128} |
1129 1130/*- 1131 * Debug -- 1132 * Print a debugging message given its format. 1133 * 1134 * Results: 1135 * None. 1136 * 1137 * Side Effects: 1138 * The message is printed. 1139 */ 1140/* VARARGS */ 1141void 1142Debug(const char *fmt, ...) 1143{ 1144 va_list ap; |
|
1129 | 1145 |
1146 va_start(ap, fmt); 1147 (void)vfprintf(stderr, fmt, ap); 1148 va_end(ap); 1149 (void)fflush(stderr); 1150} 1151 |
|
1130/*- 1131 * Error -- 1132 * Print an error message given its format. 1133 * 1134 * Results: 1135 * None. 1136 * 1137 * Side Effects: --- 208 unchanged lines hidden --- | 1152/*- 1153 * Error -- 1154 * Print an error message given its format. 1155 * 1156 * Results: 1157 * None. 1158 * 1159 * Side Effects: --- 208 unchanged lines hidden --- |