summaryrefslogtreecommitdiff
path: root/internal
diff options
context:
space:
mode:
authorJeremy Evans <code@jeremyevans.net>2020-12-16 08:15:13 -0800
committerJeremy Evans <code@jeremyevans.net>2020-12-18 09:54:11 -0800
commit52fb696ee7d01b1d55a1d5c42c60c6a5ebfc4502 (patch)
tree86045676ae96f24768fdc841ca613ee314731c82 /internal
parent7b06085c7bf8cc0db157e46fb11d16a6447d4d63 (diff)
Switch rb_category_warn{,ing} to accept an rb_warning_category_t
Since we decided to only allowing specific warning categories, there is no reason to have an API that accepts a general string, as it is more error-prone. Switch to only allowing the specific warning categories. As rb_category_warn{,ing} are public API, this requires making rb_warning_category_t public API as well.
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/3917
Diffstat (limited to 'internal')
-rw-r--r--internal/error.h7
1 files changed, 0 insertions, 7 deletions
diff --git a/internal/error.h b/internal/error.h
index cf6495fbd0..0dd629f052 100644
--- a/internal/error.h
+++ b/internal/error.h
@@ -40,13 +40,6 @@
#endif
/* error.c */
-typedef enum {
- RB_WARN_CATEGORY_NONE,
- RB_WARN_CATEGORY_DEPRECATED,
- RB_WARN_CATEGORY_EXPERIMENTAL,
- RB_WARN_CATEGORY_ALL_BITS = 0x6, /* no RB_WARN_CATEGORY_NONE bit */
-} rb_warning_category_t;
-
extern long rb_backtrace_length_limit;
extern VALUE rb_eEAGAIN;
extern VALUE rb_eEWOULDBLOCK;