repo.or.cz
/
turbovm.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Initial import.
[turbovm.git]
/
src
/
make-opcodes-h
blob
ea3e0c786a7980349612cc95a91ece0f02c8abdc
1
#! /bin/sh
2
3
cat
<<EOT > opcodes.h
4
#ifndef OPCODES_H
5
#define OPCODES_H
6
7
EOT
8
9
sed
's/#.*//'
<
opcodes.dat |
tr
a-z A-Z |
awk
'
$0
!= "" { print "#define TVM_OP_"
$1
" 0x"
$2
}'
>>
opcodes.h
10
11
cat
<<EOT >> opcodes.h
12
13
#endif /* ndef OPCODES_H */
14
EOT