Commit 8039683c authored by Anthony Martin's avatar Anthony Martin

gc: use octal escapes in mkopnames

Plan 9's tr(1) doesn't accept the C-style escapes
for tab and newline characters.  I was going to use
the \xFF hexadecimal escapes but GNU tr(1) doesn't
accept those.  It seems octal is the least common
denominator.

R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/5576079
parent cc777490
......@@ -14,8 +14,8 @@ echo '{'
sed -n '/OXXX/,/OEND/p' go.h |
cpp |
sed 's!//.*!!; /^#/d' |
tr ' ' '\n' |
tr -d ' \t,' |
tr ' ' '\012' |
tr -d ' \011,' |
grep . |
sort |
grep -v '^OEND$' |
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment