From 28f5e12c24edda376c863090c09406185373167b Mon Sep 17 00:00:00 2001 From: naruse Date: Sun, 8 May 2016 17:44:51 +0000 Subject: * configure.in: check function attirbute const and pure, and define CONSTFUNC and PUREFUNC if available. Note that I don't add those options as default because it still shows many false-positive (it seems not to consider longjmp). * vm_eval.c (stack_check): get rb_thread_t* as an argument to avoid duplicate call of GET_THREAD(). git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54952 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- st.c | 1 + 1 file changed, 1 insertion(+) (limited to 'st.c') diff --git a/st.c b/st.c index 52a672d408..07b57d906e 100644 --- a/st.c +++ b/st.c @@ -1683,6 +1683,7 @@ st_locale_insensitive_strncasecmp(const char *s1, const char *s2, size_t n) return 0; } +PUREFUNC(static st_index_t strcasehash(st_data_t)); static st_index_t strcasehash(st_data_t arg) { -- cgit v1.2.3