]>
git.ipfire.org Git - thirdparty/systemd.git/blob - tools/generate-gperfs.py
2 # SPDX-License-Identifier: LGPL-2.1+
5 Generate %-from-name.gperf from %-list.txt
10 name
, prefix
, input = sys
.argv
[1:]
15 _Pragma("GCC diagnostic ignored \\"-Wimplicit-fallthrough\\"")
19 struct {}_name {{ const char* name; int id; }};
23 for line
in open(input):
24 print("{0}, {1}{0}".format(line
.rstrip(), prefix
))