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
commita674abe702cc0c017209a3186c32df050ff21f41 (patch)
treeaf49e5ee41be22237d9eb21ecf95a81795f833aa /read.c
parent80183457adaca8dd3a013370f79a22b62c915c43 (diff)
downloadgunmake-a674abe702cc0c017209a3186c32df050ff21f41.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 613480c..87cd554 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;