Sign in
qemu
/
meson
/
1e2e30bbcfea876e05ce5b863579dc7eb71b5fb3
/
.
/
test cases
/
common
/
169 source in dep
/
generated
/
genheader.py
blob: 489db23d3c11d0809ada6394a6cbd2d88cf908eb [
file
] [
log
] [
blame
]
#!/usr/bin/env python3
import
sys
ifile
=
sys
.
argv
[
1
]
ofile
=
sys
.
argv
[
2
]
templ
=
'''#pragma once
int %s(void) {
return 42;
}
'''
funname
=
open
(
ifile
).
readline
().
strip
()
open
(
ofile
,
'w'
).
write
(
templ
%
funname
)