summaryrefslogtreecommitdiff
path: root/src/cmd/cc/dpchk.c
diff options
context:
space:
mode:
authorSergio Luis O. B. Correia <sergio@larces.uece.br>2009-11-23 16:00:26 -0800
committerSergio Luis O. B. Correia <sergio@larces.uece.br>2009-11-23 16:00:26 -0800
commit60c09d05acbb176013a749977f7b047930822a07 (patch)
treeea6e51c720cb1c67c2fa2102d21a212c67bf6311 /src/cmd/cc/dpchk.c
parent02c8b926e12ec16c2beedc269cc553fae9360244 (diff)
downloadgolang-60c09d05acbb176013a749977f7b047930822a07.tar.gz
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 http://codereview.appspot.com/157066 Committer: Russ Cox <rsc@golang.org>
Diffstat (limited to 'src/cmd/cc/dpchk.c')
-rw-r--r--src/cmd/cc/dpchk.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cmd/cc/dpchk.c b/src/cmd/cc/dpchk.c
index 5dcc82f2b..452f39f09 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;
}