summaryrefslogtreecommitdiff
path: root/read.c
diff options
context:
space:
mode:
authorPaul Smith <psmith@gnu.org>2002-09-23 22:16:40 +0000
committerPaul Smith <psmith@gnu.org>2002-09-23 22:16:40 +0000
commit74c43eb2fccec266815b95f4ee25c805a590ed90 (patch)
tree140284a79872e800ce2e6468d9b517f1ac2209fe /read.c
parent409bba5e12839284da6c0eff2744ac63a45fc18b (diff)
downloadmake-74c43eb2fccec266815b95f4ee25c805a590ed90.tar.gz
Fix a bug handling target/prerequisite names containing comment
characters.
Diffstat (limited to 'read.c')
-rw-r--r--read.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/read.c b/read.c
index c135acca..0ac59e12 100644
--- a/read.c
+++ b/read.c
@@ -62,7 +62,7 @@ struct ebuffer
enum make_word_type
{
w_bogus, w_eol, w_static, w_variable, w_colon, w_dcolon, w_semicolon,
- w_comment, w_varassign
+ w_varassign
};
@@ -2620,7 +2620,6 @@ readline (ebuf)
w_colon A colon
w_dcolon A double-colon
w_semicolon A semicolon
- w_comment A comment character
w_varassign A variable assignment operator (=, :=, +=, or ?=)
Note that this function is only used when reading certain parts of the
@@ -2650,10 +2649,6 @@ get_next_mword (buffer, delim, startp, length)
wtype = w_eol;
break;
- case '#':
- wtype = w_comment;
- break;
-
case ';':
wtype = w_semicolon;
break;
@@ -2717,7 +2712,6 @@ get_next_mword (buffer, delim, startp, length)
case ' ':
case '\t':
case '=':
- case '#':
goto done_word;
case ':':