Ruby  2.5.0dev(2017-10-22revision60238)
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
 
VALUE ePsychSyntaxError
 

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)
VALUE rb_str_export_to_enc(VALUE, rb_encoding *)
Definition: string.c:1103

Definition at line 20 of file psych_parser.c.

Function Documentation

◆ Init_psych_parser()

void Init_psych_parser ( void  )

Variable Documentation

◆ cPsychParser

VALUE cPsychParser

Definition at line 3 of file psych_parser.c.

Referenced by Init_psych_parser().

◆ ePsychSyntaxError

VALUE ePsychSyntaxError

Definition at line 4 of file psych_parser.c.