diff options
Diffstat (limited to 'ext')
-rw-r--r-- | ext/psych/psych.c | 3 | ||||
-rw-r--r-- | ext/psych/yaml/yaml.h | 6 |
2 files changed, 6 insertions, 3 deletions
diff --git a/ext/psych/psych.c b/ext/psych/psych.c index 0afd731..8af0bb6 100644 --- a/ext/psych/psych.c +++ b/ext/psych/psych.c @@ -22,6 +22,9 @@ VALUE mPsych; void Init_psych(void) { + #ifdef HAVE_RB_EXT_RACTOR_SAFE + RB_EXT_RACTOR_SAFE(true); + #endif mPsych = rb_define_module("Psych"); rb_define_singleton_method(mPsych, "libyaml_version", libyaml_version, 0); diff --git a/ext/psych/yaml/yaml.h b/ext/psych/yaml/yaml.h index bda0359..914ea04 100644 --- a/ext/psych/yaml/yaml.h +++ b/ext/psych/yaml/yaml.h @@ -1,7 +1,7 @@ /** * @file yaml.h * @brief Public interface for libyaml. - * + * * Include the header file with the code: * @code * #include <yaml.h> @@ -390,7 +390,7 @@ typedef struct yaml_event_s { /** The event data. */ union { - + /** The stream parameters (for @c YAML_STREAM_START_EVENT). */ struct { /** The document encoding. */ @@ -726,7 +726,7 @@ struct yaml_node_s { /** The node data. */ union { - + /** The scalar parameters (for @c YAML_SCALAR_NODE). */ struct { /** The scalar value. */ |