From: Sergio Luis O. B. Correia Date: Tue, 24 Nov 2009 00:00:26 +0000 (-0800) Subject: cmd/cc: change getquoted() to accept whitespaces. X-Git-Tag: weekly.2009-12-07~153 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=2b1133ff863172d669defea18761a84e4a343d80;p=gostls13.git 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 --- diff --git a/src/cmd/cc/dpchk.c b/src/cmd/cc/dpchk.c index 5dcc82f2b7..452f39f09b 100644 --- a/src/cmd/cc/dpchk.c +++ b/src/cmd/cc/dpchk.c @@ -214,7 +214,7 @@ getquoted(void) fmtstrinit(&fmt); for(;;) { r = getr(); - if(r == ' ' || r == '\n') { + if(r == '\n') { free(fmtstrflush(&fmt)); return nil; }