summaryrefslogtreecommitdiff
path: root/ext/-test-
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2020-09-07 18:51:58 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2020-09-07 20:08:01 +0900
commit4924011262e35e3983e245cbfcff15aee7b295f3 (patch)
treee48aa1fdfae411b29880a4ed7e6834bdaf2c4428 /ext/-test-
parentd6ec0ef59b4c7c95beaad09f77cb5f86a0901b97 (diff)
Added WITH_REAL macros
Added `WITH_REAL` versions to `RB_RANDOM_INTERFACE` macros. Also these macros including "without real" versions no longer contain the terminator (semicolon and comma).
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/3024
Diffstat (limited to 'ext/-test-')
-rw-r--r--ext/-test-/random/loop.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/ext/-test-/random/loop.c b/ext/-test-/random/loop.c
index 246a1f5fd92..4f7c8005002 100644
--- a/ext/-test-/random/loop.c
+++ b/ext/-test-/random/loop.c
@@ -7,13 +7,10 @@ typedef struct {
uint32_t num, idx, *buf;
} rand_loop_t;
-static double loop_get_real(rb_random_t *rnd, int excl);
-
-RB_RANDOM_INTERFACE_DECLARE(loop)
+RB_RANDOM_INTERFACE_DECLARE_WITH_REAL(loop);
static const rb_random_interface_t random_loop_if = {
32,
- RB_RANDOM_INTERFACE_DEFINE(loop)
- loop_get_real,
+ RB_RANDOM_INTERFACE_DEFINE_WITH_REAL(loop)
};
static size_t