summaryrefslogtreecommitdiff
path: root/read.c
diff options
context:
space:
mode:
authorRoland McGrath <roland@redhat.com>1993-01-06 22:57:21 +0000
committerRoland McGrath <roland@redhat.com>1993-01-06 22:57:21 +0000
commitc8d4d2305d23bee5c909a037a7a12fa74fae2bcb (patch)
tree7f139d55b75740a6fb972b4a614c76d9a23d6bf1 /read.c
parentf341a61976da1d6adb577edca1927df68ea15340 (diff)
downloadgunmake-c8d4d2305d23bee5c909a037a7a12fa74fae2bcb.tar.gz
Formerly read.c.~49~
Diffstat (limited to 'read.c')
-rw-r--r--read.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/read.c b/read.c
index 02a4ffb..d9a1b4e 100644
--- a/read.c
+++ b/read.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 1988, 1989, 1990, 1991, 1992 Free Software Foundation, Inc.
+/* Copyright (C) 1988, 1989, 1990, 1991, 1992, 1993 Free Software Foundation, Inc.
This file is part of GNU Make.
GNU Make is free software; you can redistribute it and/or modify
@@ -350,9 +350,9 @@ read_makefile (filename, type)
#define word1eq(s, l) (!strncmp (s, p, l) \
&& (p[l] == '\0' || isblank (p[l])))
if (!in_ignored_define
- && word1eq ("ifdef", 5) || word1eq ("ifndef", 6)
- || word1eq ("ifeq", 4) || word1eq ("ifneq", 5)
- || word1eq ("else", 4) || word1eq ("endif", 5))
+ && (word1eq ("ifdef", 5) || word1eq ("ifndef", 6)
+ || word1eq ("ifeq", 4) || word1eq ("ifneq", 5)
+ || word1eq ("else", 4) || word1eq ("endif", 5)))
{
int i = conditional_line (p, filename, lineno);
if (i >= 0)
@@ -714,7 +714,7 @@ do_define (name, namelen, origin, lineno, infile, filename)
register char *p;
/* Expand the variable name. */
- char *var = alloca (namelen + 1);
+ char *var = (char *) alloca (namelen + 1);
bcopy (name, var, namelen);
var[namelen] = '\0';
var = variable_expand (var);