]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/cc: change getquoted() to accept whitespaces.
authorSergio Luis O. B. Correia <sergio@larces.uece.br>
Tue, 24 Nov 2009 00:00:26 +0000 (16:00 -0800)
committerRuss Cox <rsc@golang.org>
Tue, 24 Nov 2009 00:00:26 +0000 (16:00 -0800)
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

src/cmd/cc/dpchk.c

index 5dcc82f2b7a294402f419e987f05800094d66d41..452f39f09b812476eafb38fec268b383f33f3475 100644 (file)
@@ -214,7 +214,7 @@ getquoted(void)
        fmtstrinit(&fmt);
        for(;;) {
                r = getr();
-               if(r == ' ' || r == '\n') {
+               if(r == '\n') {
                        free(fmtstrflush(&fmt));
                        return nil;
                }