Deleted Added
full compact
parse.c (102178) parse.c (103503)
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.

--- 25 unchanged lines hidden (view full) ---

34 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
35 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
36 * SUCH DAMAGE.
37 *
38 * @(#)parse.c 8.3 (Berkeley) 3/19/94
39 */
40
41#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.

--- 25 unchanged lines hidden (view full) ---

34 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
35 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
36 * SUCH DAMAGE.
37 *
38 * @(#)parse.c 8.3 (Berkeley) 3/19/94
39 */
40
41#include <sys/cdefs.h>
42__FBSDID("$FreeBSD: head/usr.bin/make/parse.c 102178 2002-08-20 12:50:32Z ru $");
42__FBSDID("$FreeBSD: head/usr.bin/make/parse.c 103503 2002-09-17 21:29:06Z jmallett $");
43
44/*-
45 * parse.c --
46 * Functions to parse a makefile.
47 *
48 * One function, Parse_Init, must be called before any functions
49 * in this module are used. After that, the function Parse_File is the
50 * main entry point and controls most of the other functions in this

--- 1203 unchanged lines hidden (view full) ---

1254 */
1255Boolean
1256Parse_IsVar (line)
1257 char *line; /* the line to check */
1258{
1259 Boolean wasSpace = FALSE; /* set TRUE if found a space */
1260 Boolean haveName = FALSE; /* Set TRUE if have a variable name */
1261 int level = 0;
43
44/*-
45 * parse.c --
46 * Functions to parse a makefile.
47 *
48 * One function, Parse_Init, must be called before any functions
49 * in this module are used. After that, the function Parse_File is the
50 * main entry point and controls most of the other functions in this

--- 1203 unchanged lines hidden (view full) ---

1254 */
1255Boolean
1256Parse_IsVar (line)
1257 char *line; /* the line to check */
1258{
1259 Boolean wasSpace = FALSE; /* set TRUE if found a space */
1260 Boolean haveName = FALSE; /* Set TRUE if have a variable name */
1261 int level = 0;
1262#define ISEQOPERATOR(c) \
1262#define ISEQOPERATOR(c) \
1263 (((c) == '+') || ((c) == ':') || ((c) == '?') || ((c) == '!'))
1264
1265 /*
1266 * Skip to variable name
1267 */
1268 for (;(*line == ' ') || (*line == '\t'); line++)
1269 continue;
1270

--- 1389 unchanged lines hidden ---
1263 (((c) == '+') || ((c) == ':') || ((c) == '?') || ((c) == '!'))
1264
1265 /*
1266 * Skip to variable name
1267 */
1268 for (;(*line == ' ') || (*line == '\t'); line++)
1269 continue;
1270

--- 1389 unchanged lines hidden ---