From f1b49b7bb9118e336b8ce2ebe5a12af5881f83c3 Mon Sep 17 00:00:00 2001 From: nobu Date: Thu, 22 May 2014 05:02:15 +0000 Subject: constify character property tables * enc/jis/props.kwd: constify character property tables of JIS based encodings by perfect hash. * enc/euc_jp.c, enc/shift_jis.c: use character property functions. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46039 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- Makefile.in | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'Makefile.in') diff --git a/Makefile.in b/Makefile.in index 631aa819e6..b73e3f907d 100644 --- a/Makefile.in +++ b/Makefile.in @@ -325,6 +325,21 @@ enc/unicode/name2ctype.h: enc/unicode/name2ctype.kwd $(CP) $@ $(?:.kwd=.h.blt); \ fi +JIS_PROPS_OPTIONS = -k1,3 -7 -c -j1 -i1 -t -C -P -t --ignore-case -H onig_jis_property_hash -Q onig_jis_property_pool -N onig_jis_property + +enc/jis/props.h: enc/jis/props.kwd + $(MAKEDIRS) $(@D) + @set +e; \ + if cmp -s $(?:.kwd=.src) $?; then \ + set -x; \ + $(CP) $(?:.kwd=.h.blt) $@; \ + else \ + set -x; \ + gperf $(JIS_PROPS_OPTIONS) --output-file=$@ $? && \ + $(CP) $? $(?:.kwd=.src) && \ + $(CP) $@ $(?:.kwd=.h.blt); \ + fi + .c.@OBJEXT@: @$(ECHO) compiling $< $(Q) $(CC) $(CFLAGS) $(XCFLAGS) $(CPPFLAGS) $(COUTFLAG)$@ -c $< -- cgit v1.2.3