]> Cypherpunks repositories - gostls13.git/commit
cmd/cc: Fix -I switch to handle a path with blankspaces correctly
authorSergio Luis O. B. Correia <sergio@larces.uece.br>
Tue, 17 Nov 2009 17:02:47 +0000 (09:02 -0800)
committerRuss Cox <rsc@golang.org>
Tue, 17 Nov 2009 17:02:47 +0000 (09:02 -0800)
commitbae4f5085ea1e6db89c7df8e2075eab44d9c512e
tree14d826454bd471125ef2daa1f7e6eeed5abfa85a
parent27c3147676ae373cc8b9fc0ba982163fcc4d7f48
cmd/cc: Fix -I switch to handle a path with blankspaces correctly

Currently, -I switch can't deal with a path containing spaces.
This commit simplify setinclude(), by removing the special case
of a string that had spaces. After this change, setinclude() will
merely add the given directories to the include path, if it does
not yet exist, and this approach works.

Will be needed for solving issue 115.

R=agl1, rsc, iant2, r
https://golang.org/cl/155059
src/cmd/cc/lex.c