From 2b1133ff863172d669defea18761a84e4a343d80 Mon Sep 17 00:00:00 2001 From: "Sergio Luis O. B. Correia" Date: Mon, 23 Nov 2009 16:00:26 -0800 Subject: [PATCH] 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 --- src/cmd/cc/dpchk.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.50.0