]>
git.ipfire.org Git - thirdparty/systemd.git/blob - src/resolve/generate-dns_type-gperf.py
3 """Generate %-from-name.gperf from %-list.txt
8 name
, prefix
, input = sys
.argv
[1:]
13 _Pragma("GCC diagnostic ignored \\"-Wimplicit-fallthrough\\"")
17 struct {}_name {{ const char* name; int id; }};
21 for line
in open(input):
23 s
= line
.replace('_', '-')
24 print("{}, {}{}".format(s
, prefix
, line
))