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
commitae003efd6114af0c9a8750034182b883183500a7 (patch)
tree140284a79872e800ce2e6468d9b517f1ac2209fe /read.c
parentebd05dbeb31dbc09c496d76e802d9b68bd848e9a (diff)
downloadgunmake-ae003efd6114af0c9a8750034182b883183500a7.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 c135acc..0ac59e1 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 ':':