summaryrefslogtreecommitdiff
path: root/ext/io/console/depend
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-07-21 10:52:19 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-07-21 10:52:19 +0000
commit09389b47d2f5968867a1af502bc532c03d4d675a (patch)
tree8eefbb986fc28343a37054f7480d1dce9cb06335 /ext/io/console/depend
parent2deaf0340192fdd457b4dcc6eae63ad875a3af6d (diff)
console.c: undefined vk
* ext/io/console/console.c (console_key_pressed_p): raise undefined virtual key code. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51316 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/io/console/depend')
-rw-r--r--ext/io/console/depend10
1 files changed, 9 insertions, 1 deletions
diff --git a/ext/io/console/depend b/ext/io/console/depend
index 63063a69450..b3aa1b5f740 100644
--- a/ext/io/console/depend
+++ b/ext/io/console/depend
@@ -1,16 +1,24 @@
$(OBJS): $(HDRS) $(ruby_headers) \
- $(VK_HEADER) \
+ $(VK_HEADER) $(VK_HEADER:.chksum=.h) \
$(hdrdir)/ruby/io.h \
$(hdrdir)/ruby/encoding.h \
$(hdrdir)/ruby/oniguruma.h
win32_vk.inc: win32_vk.list
+win32_vk.h: win32_vk.list
+
.list.inc:
gperf --ignore-case -E -C -P -p -j1 -i 1 -g -o -t -K ofs -N console_win32_vk -k* $< \
| sed 's/(int)(long)&((\(struct stringpool_t\) *\*)0)->\(stringpool_[a-z0-9]*\)/offsetof(\1, \2)/g' \
> $(@F)
+.list.h:
+ $(RUBY) -anF, \
+ -e '(n=$$F[1]) and (n.strip!; /\AVK_/=~n) and' \
+ -e 'puts %[#ifndef #{n}\n# define #{n} (unsigned short)-1\n#endif]' \
+ $< > $@
+
.SUFFIXES: .chksum .list .inc
.list.chksum: