Commit 9953c48d authored by Russ Cox's avatar Russ Cox

missed in last checkin

R=ken
OCL=32581
CL=32581
parent a2b8e387
#!/bin/sh
# Copyright 2009 The Go Authors. All rights reserved.
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.
echo '// auto generated by mkopnames'
echo 'static char*'
echo 'opnames[] = '
echo '{'
sed -n '/OXXX/,/OEND/p' go.h |
cpp |
sed 's!//.*!!; /^#/d' |
tr ' ' '\n' |
tr -d ' \t,' |
grep . |
sort |
grep -v '^OEND$' |
sed 's/O//; s/.*/ [O&] = "&",/'
echo '};'
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