mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
json/parser/prereq.mk: use enum
* ext/json/parser/prereq.mk (parser.c): use `enum` instead of `static const int` to get rid of unused-const-variable warnings. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45356 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
77f3da02a0
commit
d90075cb10
2 changed files with 34 additions and 33 deletions
|
|
@ -4,6 +4,7 @@ RAGEL = ragel
|
|||
|
||||
.rl.c:
|
||||
$(RAGEL) -G2 $<
|
||||
$(BASERUBY) -pli -e '$$_.sub!(/[ \t]+$$/, "")' $@
|
||||
$(BASERUBY) -pli -e '$$_.sub!(/[ \t]+$$/, "")' \
|
||||
-e '$$_.sub!(/^static const int (JSON_.*=.*);$$/, "enum {\\1};")' $@
|
||||
|
||||
parser.c:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue