Debian Codegraph @

ext/json/parser/prereq.mk

raw
1 RAGEL = ragel
2
3 .SUFFIXES: .rl
4
5 .rl.c:
6 $(RAGEL) -G2 $<
7 $(BASERUBY) -pli -e '$$_.sub!(/[ \t]+$$/, "")' \
8 -e '$$_.sub!(/^static const int (JSON_.*=.*);$$/, "enum {\\1};")' \
9 -e '$$_.sub!(/^(static const char) (_JSON(?:_\w+)?_nfa_\w+)(?=\[\] =)/, "\\1 MAYBE_UNUSED(\\2)")' \
10 -e '$$_.sub!(/0 <= ([\( ]+\*[\( ]*p\)+) && \1 <= 31/, "0 <= (signed char)(*(p)) && (*(p)) <= 31")' \
11 -e '$$_ = "/* This file is automatically generated from parser.rl by using ragel */\n" + $$_ if $$. == 1' $@
12
13 parser.c: