1
0
mirror of https://github.com/golang/go synced 2024-11-24 22:57:57 -07:00

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
This commit is contained in:
Sergio Luis O. B. Correia 2009-11-23 16:00:26 -08:00 committed by Russ Cox
parent edf7485a6e
commit 2b1133ff86

View File

@ -214,7 +214,7 @@ getquoted(void)
fmtstrinit(&fmt);
for(;;) {
r = getr();
if(r == ' ' || r == '\n') {
if(r == '\n') {
free(fmtstrflush(&fmt));
return nil;
}