mirror of
https://github.com/golang/go
synced 2024-09-05 16:04:50 +00:00
include/plan9: make mklibc.rc compatible with 9atom
Since there is no Runemask constant in UTF-8 enum in 9atom, removing the other constants leads to an empty enum, which is illegal. Thus, we remove enum entirely. LGTM=r R=golang-codereviews, r CC=golang-codereviews https://golang.org/cl/82660044
This commit is contained in:
parent
6e8c7f5bb2
commit
09aeca5c04
|
@ -1,13 +1,8 @@
|
|||
#!/bin/rc
|
||||
|
||||
pattern='/umuldiv/d
|
||||
/UTFmax/d
|
||||
/Runesync/d
|
||||
/Runeself/d
|
||||
/Runeerror/d
|
||||
/Runemax/d
|
||||
/rune routines/,/^\/\*/d
|
||||
/print routines/,/^\/\*/d
|
||||
/error string for/,/^\/\*/d'
|
||||
|
||||
sed -e $pattern /sys/include/libc.h
|
||||
sed -e $pattern /sys/include/libc.h | awk '/^enum/ && !n++, /^};/ {next}1'
|
||||
|
|
Loading…
Reference in a new issue