summaryrefslogtreecommitdiff
path: root/internal
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2021-06-03 12:32:44 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2021-06-03 15:11:18 +0900
commit37eb5e74395f148782f7d67b5218fb2e66b113d7 (patch)
treef92f0414ab29ff9ff6b6dca6a13b600574d165b0 /internal
parenta023db49bfbbbe119638bae6abf8113f0de371de (diff)
Warn more duplicate literal hash keys
Following non-special_const literals: * T_BIGNUM * T_FLOAT (non-flonum) * T_RATIONAL * T_COMPLEX
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/4548
Diffstat (limited to 'internal')
-rw-r--r--internal/compile.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/internal/compile.h b/internal/compile.h
index c1f2a36685..99c15d6a44 100644
--- a/internal/compile.h
+++ b/internal/compile.h
@@ -20,6 +20,8 @@ int rb_dvar_defined(ID, const struct rb_iseq_struct *);
int rb_local_defined(ID, const struct rb_iseq_struct *);
const char *rb_insns_name(int i);
VALUE rb_insns_name_array(void);
+int rb_iseq_cdhash_cmp(VALUE val, VALUE lit);
+st_index_t rb_iseq_cdhash_hash(VALUE a);
/* iseq.c */
int rb_vm_insn_addr2insn(const void *);