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:
parent
5d8fe1267d
commit
039ba387aa
4 changed files with 11 additions and 8 deletions
|
@ -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 *);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue