]>
git.ipfire.org Git - thirdparty/systemd.git/blob - src/test/generate-sym-test.py
4 print('#include <stdio.h>')
5 for header
in sys
.argv
[2:]:
6 print('#include "{}"'.format(header
.split('/')[-1]))
9 void* functions[] = {''')
11 for line
in open(sys
.argv
[1]):
12 match
= re
.search('^ +([a-zA-Z0-9_]+);', line
)
14 print(' {},'.format(match
.group(1)))
20 for (i = 0; i < sizeof(functions)/sizeof(void*); i++)
21 printf("%p\\n", functions[i]);