diff options
author | David du Colombier <0intro@gmail.com> | 2014-04-19 09:55:09 +0200 |
---|---|---|
committer | David du Colombier <0intro@gmail.com> | 2014-04-19 09:55:09 +0200 |
commit | 09aeca5c04a6a6775e91857459e05888721d6999 (patch) | |
tree | f981453bb524eb13f671ba1c086abc4732944702 | |
parent | 6e8c7f5bb241852f052a9b4a2f20f3e33d0ec7b2 (diff) | |
download | go-09aeca5c04a6a6775e91857459e05888721d6999.tar.gz go-09aeca5c04a6a6775e91857459e05888721d6999.zip |
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
-rwxr-xr-x | include/plan9/mklibc.rc | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/include/plan9/mklibc.rc b/include/plan9/mklibc.rc index 460ef1ce4b..449e15fdff 100755 --- a/include/plan9/mklibc.rc +++ b/include/plan9/mklibc.rc @@ -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' |