Commit 2b1133ff authored by Sergio Luis O. B. Correia's avatar Sergio Luis O. B. Correia Committed by Russ Cox

cmd/cc: change getquoted() to accept whitespaces.

getquoted() currently checks for whitespaces and returns nil
if it finds one. this prevents us from having go in a path
containing whitespaces, as the #pragma dynld directives are
processed through the said function.

this commit makes getquoted() accept whitespaces, and this is
also needed for solving issue #115.

R=rsc
https://golang.org/cl/157066
parent edf7485a
......@@ -214,7 +214,7 @@ getquoted(void)
fmtstrinit(&fmt);
for(;;) {
r = getr();
if(r == ' ' || r == '\n') {
if(r == '\n') {
free(fmtstrflush(&fmt));
return nil;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment