summaryrefslogtreecommitdiff
path: root/read.c
diff options
context:
space:
mode:
authorPaul Smith <psmith@gnu.org>2013-05-22 02:14:19 -0400
committerPaul Smith <psmith@gnu.org>2013-05-22 02:14:19 -0400
commit058c1c8d9c4667c25818d525eade78307c0ed4d2 (patch)
treeaf49e5ee41be22237d9eb21ecf95a81795f833aa /read.c
parent9237d716e9a05f797c104fb2bad9a82a65705ff0 (diff)
downloadmake-058c1c8d9c4667c25818d525eade78307c0ed4d2.tar.gz
Make MFLAGS and MAKEFLAGS more reliable and predictable.
Ensure all simple flags are kept in the initial batch of flags. Do not allow any flags with options in that batch. If there are only non-simple flags ensure MAKEFLAGS begins with " ". Don't let MFLAGS start with "- ".
Diffstat (limited to 'read.c')
-rw-r--r--read.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/read.c b/read.c
index 613480ce..87cd5548 100644
--- a/read.c
+++ b/read.c
@@ -456,7 +456,10 @@ eval_buffer (char *buffer, const gmk_floc *floc)
else if (reading_file)
ebuf.floc = *reading_file;
else
- ebuf.floc.filenm = NULL;
+ {
+ ebuf.floc.filenm = NULL;
+ ebuf.floc.lineno = 1;
+ }
curfile = reading_file;
reading_file = &ebuf.floc;