Ruby: ext/psych/psych_parser.c File Reference

Ruby 3.0.5p211 (2022-11-24 revision ba5cf0f7c52d4d35cc6a173c89eda98ceffa2dcf)

Macros | Functions | Variables
psych_parser.c File Reference
`#include <psych.h>`

Go to the source code of this file.

## Macros
#define | PSYCH_TRANSCODE(_str, _yaml_enc, _internal_enc)

## Functions
void | Init_psych_parser (void)

## Variables
VALUE | cPsychParser

## Macro Definition Documentation

## ◆ PSYCH_TRANSCODE

#define PSYCH_TRANSCODE | ( |  | _str,
|  |  | _yaml_enc,
|  |  | _internal_enc
| ) |  |

Value:
do { \
rb_enc_associate_index((_str), (_yaml_enc)); \
if(_internal_enc) \
(_str) = rb_str_export_to_enc((_str), (_internal_enc)); \
} while (0)
rb_str_export_to_enc
VALUE rb_str_export_to_enc(VALUE, rb_encoding *)
Definition: string.c:1205

Definition at line 20 of file psych_parser.c.

## Function Documentation

## ◆ Init_psych_parser()

void Init_psych_parser | ( | void |  | ) |

Definition at line 537 of file psych_parser.c.

References cPsychParser, INT2NUM, mPsych, rb_cObject, rb_define_alloc_func(), rb_define_class_under(), rb_define_const(), rb_define_method, rb_define_module(), rb_intern(), and rb_require().

Referenced by Init_psych().

## Variable Documentation

## ◆ cPsychParser

VALUE cPsychParser

Definition at line 3 of file psych_parser.c.

Referenced by Init_psych_parser().