1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Use opaque struct pointer than void

This commit is contained in:
Nobuyoshi Nakada 2020-11-27 21:36:12 +09:00
parent 5d8fe1267d
commit 039ba387aa
No known key found for this signature in database
GPG key ID: 7CD2805BFA3770C6
4 changed files with 11 additions and 8 deletions

View file

@ -14,9 +14,10 @@
RBIMPL_SYMBOL_EXPORT_BEGIN()
typedef struct {
struct rb_random_struct {
VALUE seed;
} rb_random_t;
};
typedef struct rb_random_struct rb_random_t;
typedef void rb_random_init_func(rb_random_t *, const uint32_t *, size_t);
typedef unsigned int rb_random_get_int32_func(rb_random_t *);