1
0
mirror of https://github.com/golang/go synced 2024-11-18 16:44:43 -07:00
go/include/plan9/mklibc.rc
David du Colombier 09aeca5c04 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
2014-04-19 09:55:09 +02:00

9 lines
190 B
Bash
Executable File

#!/bin/rc
pattern='/umuldiv/d
/rune routines/,/^\/\*/d
/print routines/,/^\/\*/d
/error string for/,/^\/\*/d'
sed -e $pattern /sys/include/libc.h | awk '/^enum/ && !n++, /^};/ {next}1'