summaryrefslogtreecommitdiff
path: root/src/core/load-fragment-gperf-nulstr.awk
blob: a1b7d1c6c414bdf1dc9c7873412be2f146634d3b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# SPDX-License-Identifier: LGPL-2.1-or-later

BEGIN{
        keywords=0 ; FS="," ;
        print "extern const char load_fragment_gperf_nulstr[];" ;
        print "const char load_fragment_gperf_nulstr[] ="
}
keyword==1 {
        print "\"" $1 "\\0\""
}
/%%/ {
        keyword=1
}
END {
        print ";"
}