summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDavid du Colombier <0intro@gmail.com>2014-04-19 09:55:09 +0200
committerDavid du Colombier <0intro@gmail.com>2014-04-19 09:55:09 +0200
commit1e3a2f98f5491ee02545e78bb5388c2847f59d4d (patch)
tree6c240407d9b636c4fc253de315e83a00a852d417 /include
parentcac7e092097d6177d8a04710932ffcdcfe11fa80 (diff)
downloadgo-1e3a2f98f5491ee02545e78bb5388c2847f59d4d.tar.gz
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://codereview.appspot.com/82660044
Diffstat (limited to 'include')
-rwxr-xr-xinclude/plan9/mklibc.rc7
1 files changed, 1 insertions, 6 deletions
diff --git a/include/plan9/mklibc.rc b/include/plan9/mklibc.rc
index 460ef1ce4..449e15fdf 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'