Constify type
and typed_flag
in RTypedData
These must not be changed once initialized.
This commit is contained in:
parent
dd406c5a91
commit
b0cb54a378
@ -354,16 +354,14 @@ struct RTypedData {
|
|||||||
* data. This roughly resembles a Ruby level class (apart from method
|
* data. This roughly resembles a Ruby level class (apart from method
|
||||||
* definition etc.)
|
* definition etc.)
|
||||||
*/
|
*/
|
||||||
const rb_data_type_t *type;
|
const rb_data_type_t *const type;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* This has to be always 1.
|
* This has to be always 1.
|
||||||
*
|
*
|
||||||
* @internal
|
* @internal
|
||||||
*
|
|
||||||
* Why, then, this is not a const ::VALUE?
|
|
||||||
*/
|
*/
|
||||||
VALUE typed_flag;
|
const VALUE typed_flag;
|
||||||
|
|
||||||
/** Pointer to the actual C level struct that you want to wrap. */
|
/** Pointer to the actual C level struct that you want to wrap. */
|
||||||
void *data;
|
void *data;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user