new version, different interface
This commit is contained in:
25
modules/src/read_em/m_C_funcs
Executable file
25
modules/src/read_em/m_C_funcs
Executable file
@@ -0,0 +1,25 @@
|
||||
EM_TABLE=../../../etc/em_table
|
||||
ed - $EM_TABLE << EOF
|
||||
1,/^\$/d
|
||||
1,/^\$/d
|
||||
1,\$s/^\(...\).*/int C_\\1();/
|
||||
w blabla1
|
||||
q
|
||||
EOF
|
||||
ed - $EM_TABLE << A
|
||||
1,/^\$/d
|
||||
1,/^\$/d
|
||||
/^\$/d
|
||||
1,\$s/^\(...\).*/C_\\1,/
|
||||
\$a
|
||||
};
|
||||
.
|
||||
1i
|
||||
static int (*C_funcs[])() = {
|
||||
0,
|
||||
.
|
||||
w blabla2
|
||||
q
|
||||
A
|
||||
cat blabla1 blabla2 > C_funcs
|
||||
rm blabla1 blabla2
|
||||
Reference in New Issue
Block a user