Ruby  1.9.3p448(2013-06-27revision41675)
Data Structures | Macros | Typedefs | Functions | Variables
rubyext.c File Reference
#include "ruby/ruby.h"
#include "ruby/encoding.h"
#include "syck.h"
#include <sys/types.h>
#include <time.h>
Include dependency graph for rubyext.c:

Go to the source code of this file.

Data Structures

struct  RVALUE
 
struct  bytestring_t
 
struct  parser_xtra
 
struct  emitter_xtra
 
struct  mktime_arg
 

Macros

#define RUBY_DOMAIN   "ruby.yaml.org,2002"
 

Typedefs

typedef struct RVALUE RVALUE
 

Functions

static double S_zero (void)
 
static double S_one (void)
 
static double S_inf (void)
 
static double S_nan (void)
 
static VALUE syck_node_transform (VALUE)
 
SYMID rb_syck_load_handler _ ((SyckParser *, SyckNode *))
 
void rb_syck_err_handler _ ((SyckParser *, const char *))
 
SyckNode
*rb_syck_bad_anchor_handler 
_ ((SyckParser *, char *))
 
void rb_syck_output_handler _ ((SyckEmitter *, char *, long))
 
void rb_syck_emitter_handler _ ((SyckEmitter *, st_data_t))
 
int syck_parser_assign_io _ ((SyckParser *, VALUE *))
 
VALUE syck_scalar_alloc _ ((VALUE class))
 
VALUE rb_syck_compile (VALUE self, VALUE port)
 
long rb_syck_io_str_read (char *buf, SyckIoStr *str, long max_size, long skip)
 
int syck_parser_assign_io (SyckParser *parser, VALUE *pport)
 
VALUE syck_get_hash_aref (VALUE hsh, VALUE key)
 
VALUE mktime_do (VALUE varg)
 
VALUE mktime_r (VALUE varg)
 
VALUE rb_syck_mktime (const char *str, long len)
 
VALUE syck_merge_i (VALUE entry, VALUE hsh)
 
int yaml_org_handler (SyckNode *n, VALUE *ref)
 
static void syck_node_mark (SyckNode *n)
 
SYMID rb_syck_load_handler (SyckParser *p, SyckNode *n)
 
void rb_syck_err_handler (SyckParser *p, const char *msg)
 
SyckNoderb_syck_bad_anchor_handler (SyckParser *p, char *a)
 
void syck_set_model (VALUE p, VALUE input, VALUE model)
 
static int syck_st_mark_nodes (char *key, SyckNode *n, char *arg)
 
static void syck_mark_parser (SyckParser *parser)
 
void rb_syck_free_parser (SyckParser *p)
 
VALUE syck_parser_s_alloc _ ((VALUE))
 
VALUE syck_parser_s_alloc (VALUE class)
 
static VALUE syck_parser_initialize (int argc, VALUE *argv, VALUE self)
 
static VALUE syck_parser_bufsize_set (VALUE self, VALUE size)
 
static VALUE syck_parser_bufsize_get (VALUE self)
 
VALUE syck_parser_load (int argc, VALUE *argv, VALUE self)
 
VALUE syck_parser_load_documents (int argc, VALUE *argv, VALUE self)
 
VALUE syck_parser_set_resolver (VALUE self, VALUE resolver)
 
static VALUE syck_resolver_initialize (VALUE self)
 
VALUE syck_resolver_add_type (VALUE self, VALUE taguri, VALUE cls)
 
VALUE syck_resolver_use_types_at (VALUE self, VALUE hsh)
 
VALUE syck_resolver_detect_implicit (VALUE self, VALUE val)
 
VALUE syck_resolver_node_import (VALUE self, VALUE node)
 
VALUE syck_set_ivars (VALUE vars, VALUE obj)
 
VALUE syck_const_find (VALUE const_name)
 
VALUE syck_resolver_transfer (VALUE self, VALUE type, VALUE val)
 
VALUE syck_resolver_tagurize (VALUE self, VALUE val)
 
VALUE syck_defaultresolver_detect_implicit (VALUE self, VALUE val)
 
VALUE syck_defaultresolver_node_import (VALUE self, VALUE node)
 
VALUE syck_genericresolver_node_import (VALUE self, VALUE node)
 
VALUE syck_badalias_initialize (VALUE self, VALUE val)
 
VALUE syck_badalias_cmp (VALUE alias1, VALUE alias2)
 
VALUE syck_domaintype_initialize (VALUE self, VALUE domain, VALUE type_id, VALUE val)
 
VALUE syck_yobject_initialize (VALUE self, VALUE klass, VALUE ivars)
 
VALUE syck_privatetype_initialize (VALUE self, VALUE type_id, VALUE val)
 
VALUE syck_scalar_alloc (VALUE class)
 
VALUE syck_scalar_initialize (VALUE self, VALUE type_id, VALUE val, VALUE style)
 
VALUE syck_scalar_style_set (VALUE self, VALUE style)
 
VALUE syck_scalar_value_set (VALUE self, VALUE val)
 
VALUE syck_seq_alloc (VALUE class)
 
VALUE syck_seq_initialize (VALUE self, VALUE type_id, VALUE val, VALUE style)
 
VALUE syck_seq_value_set (VALUE self, VALUE val)
 
VALUE syck_seq_add_m (VALUE self, VALUE val)
 
VALUE syck_seq_style_set (VALUE self, VALUE style)
 
VALUE syck_map_alloc (VALUE class)
 
VALUE syck_map_initialize (VALUE self, VALUE type_id, VALUE val, VALUE style)
 
VALUE syck_map_value_set (VALUE self, VALUE val)
 
VALUE syck_map_add_m (VALUE self, VALUE key, VALUE val)
 
VALUE syck_map_style_set (VALUE self, VALUE style)
 
VALUE syck_node_type_id_set (VALUE self, VALUE type_id)
 
void rb_syck_emitter_handler (SyckEmitter *e, st_data_t data)
 
void rb_syck_output_handler (SyckEmitter *emitter, char *str, long len)
 
void syck_out_mark (VALUE emitter, VALUE node)
 
static void syck_mark_emitter (SyckEmitter *emitter)
 
void rb_syck_free_emitter (SyckEmitter *e)
 
VALUE syck_emitter_s_alloc (VALUE class)
 
static VALUE id_hash_new (void)
 
VALUE syck_emitter_reset (int argc, VALUE *argv, VALUE self)
 
VALUE syck_emitter_emit (int argc, VALUE *argv, VALUE self)
 
VALUE syck_emitter_node_export (VALUE self, VALUE node)
 
VALUE syck_emitter_set_resolver (VALUE self, VALUE resolver)
 
VALUE syck_out_initialize (VALUE self, VALUE emitter)
 
VALUE syck_out_map (int argc, VALUE *argv, VALUE self)
 
VALUE syck_out_seq (int argc, VALUE *argv, VALUE self)
 
VALUE syck_out_scalar (int argc, VALUE *argv, VALUE self)
 
void Init_syck ()
 

Variables

static ID s_new
 
static ID s_utc
 
static ID s_at
 
static ID s_to_f
 
static ID s_to_i
 
static ID s_read
 
static ID s_binmode
 
static ID s_call
 
static ID s_cmp
 
static ID s_transfer
 
static ID s_update
 
static ID s_dup
 
static ID s_haskey
 
static ID s_match
 
static ID s_keys
 
static ID s_unpack
 
static ID s_tr_bang
 
static ID s_default_set
 
static ID s_tag_read_class
 
static ID s_tag_subclasses
 
static ID s_resolver
 
static ID s_push
 
static ID s_emitter
 
static ID s_level
 
static ID s_detect_implicit
 
static ID s_node_import
 
static ID s_out
 
static ID s_input
 
static ID s_intern
 
static ID s_transform
 
static ID s_yaml_new
 
static ID s_yaml_initialize
 
static ID s_node_export
 
static ID s_to_yaml
 
static ID s_write
 
static ID s_set_resolver
 
static ID s_each
 
static ID s_tags
 
static ID s_kind
 
static ID s_name
 
static ID s_options
 
static ID s_type_id
 
static ID s_type_id_set
 
static ID s_style
 
static ID s_style_set
 
static ID s_value
 
static ID s_value_set
 
static ID s_parse
 
static VALUE sym_model
 
static VALUE sym_generic
 
static VALUE sym_input
 
static VALUE sym_bytecode
 
static VALUE sym_scalar
 
static VALUE sym_seq
 
static VALUE sym_map
 
static VALUE sym_1quote
 
static VALUE sym_2quote
 
static VALUE sym_fold
 
static VALUE sym_literal
 
static VALUE sym_plain
 
static VALUE sym_inline
 
static VALUE cDate
 
static VALUE cNode
 
static VALUE cMap
 
static VALUE cSeq
 
static VALUE cScalar
 
static VALUE cOut
 
static VALUE cParser
 
static VALUE cResolver
 
static VALUE cPrivateType
 
static VALUE cDomainType
 
static VALUE cYObject
 
static VALUE cBadAlias
 
static VALUE cDefaultKey
 
static VALUE cMergeKey
 
static VALUE cEmitter
 
static VALUE cDateTime
 
static VALUE oDefaultResolver
 
static VALUE oGenericResolver
 

Macro Definition Documentation

#define RUBY_DOMAIN   "ruby.yaml.org,2002"

Definition at line 47 of file rubyext.c.

Typedef Documentation

typedef struct RVALUE RVALUE

Function Documentation

void rb_syck_err_handler _ ( (SyckParser *, const char *)  )
void rb_syck_output_handler _ ( (SyckEmitter *, char *, long )
VALUE syck_map_alloc _ ( (VALUE class)  )
static VALUE ip_alloc _ ( (VALUE )
static VALUE id_hash_new ( void  )
static

Definition at line 1947 of file rubyext.c.

References hash(), rb_funcall(), rb_hash_new(), and rb_intern.

Referenced by syck_emitter_reset().

void Init_syck ( )

Definition at line 2117 of file rubyext.c.

References cBadAlias, cDefaultKey, cDomainType, cEmitter, cMap, cMergeKey, cNode, cOut, cParser, cPrivateType, cResolver, cScalar, cSeq, cYObject, ID2SYM, oDefaultResolver, oGenericResolver, rb_cObject, rb_const_get(), rb_define_alloc_func(), rb_define_attr(), rb_define_class_under(), rb_define_const(), rb_define_method(), rb_define_module_function(), rb_define_module_under(), rb_define_singleton_method(), rb_funcall(), rb_global_variable(), rb_include_module(), rb_intern, rb_syck_compile(), rb_undef(), s_at, s_binmode, s_call, s_cmp, s_default_set, s_detect_implicit, s_dup, s_each, s_emitter, s_haskey, s_input, s_intern, s_keys, s_kind, s_level, s_match, s_name, s_new, s_node_export, s_node_import, s_options, s_out, s_parse, s_push, s_read, s_resolver, s_set_resolver, s_style, s_style_set, s_tag_read_class, s_tag_subclasses, s_tags, s_to_f, s_to_i, s_to_yaml, s_tr_bang, s_transfer, s_transform, s_type_id, s_type_id_set, s_unpack, s_update, s_utc, s_value, s_value_set, s_write, s_yaml_initialize, s_yaml_new, syck_badalias_cmp(), syck_badalias_initialize(), syck_defaultresolver_detect_implicit(), syck_defaultresolver_node_import(), syck_domaintype_initialize(), syck_emitter_emit(), syck_emitter_node_export(), syck_emitter_reset(), syck_emitter_s_alloc(), syck_emitter_set_resolver(), syck_genericresolver_node_import(), syck_map_add_m(), syck_map_alloc(), syck_map_initialize(), syck_map_style_set(), syck_map_value_set(), syck_node_transform(), syck_node_type_id_set(), syck_out_initialize(), syck_out_map(), syck_out_scalar(), syck_out_seq(), syck_parser_bufsize_get(), syck_parser_bufsize_set(), syck_parser_initialize(), syck_parser_load(), syck_parser_load_documents(), syck_parser_s_alloc(), syck_parser_set_resolver(), syck_privatetype_initialize(), syck_resolver_add_type(), syck_resolver_detect_implicit(), syck_resolver_initialize(), syck_resolver_node_import(), syck_resolver_tagurize(), syck_resolver_transfer(), syck_resolver_use_types_at(), syck_scalar_alloc(), syck_scalar_initialize(), syck_scalar_style_set(), syck_scalar_value_set(), syck_seq_add_m(), syck_seq_alloc(), syck_seq_initialize(), syck_seq_style_set(), syck_seq_value_set(), syck_yobject_initialize(), sym_1quote, sym_2quote, sym_bytecode, sym_fold, sym_generic, sym_inline, sym_literal, sym_map, sym_model, sym_plain, sym_scalar, and sym_seq.

VALUE mktime_do ( VALUE  varg)
VALUE mktime_r ( VALUE  varg)
SyckNode* rb_syck_bad_anchor_handler ( SyckParser p,
char *  a 
)

Definition at line 694 of file rubyext.c.

References rb_str_new2(), syck_new_map(), syck_strndup(), and _syck_node::type_id.

Referenced by syck_set_model().

VALUE rb_syck_compile ( VALUE  self,
VALUE  port 
)
void rb_syck_emitter_handler ( SyckEmitter e,
st_data_t  data 
)
void rb_syck_err_handler ( SyckParser p,
const char *  msg 
)
void rb_syck_free_emitter ( SyckEmitter e)

Definition at line 1919 of file rubyext.c.

References _syck_emitter::bonus, S_FREE, and syck_free_emitter().

Referenced by syck_emitter_s_alloc().

void rb_syck_free_parser ( SyckParser p)

Definition at line 769 of file rubyext.c.

References _syck_parser::bonus, S_FREE, and syck_free_parser().

Referenced by syck_parser_s_alloc().

long rb_syck_io_str_read ( char *  buf,
SyckIoStr str,
long  max_size,
long  skip 
)
SYMID rb_syck_load_handler ( SyckParser p,
SyckNode n 
)
VALUE rb_syck_mktime ( const char *  str,
long  len 
)

Definition at line 340 of file rubyext.c.

References mktime_arg::len, len, mktime_do(), mktime_r(), NULL, rb_eArgError, rb_rescue2(), and mktime_arg::str.

Referenced by yaml_org_handler().

void rb_syck_output_handler ( SyckEmitter emitter,
char *  str,
long  len 
)
static double S_inf ( void  )
static

Definition at line 65 of file rubyext.c.

References S_one(), and S_zero().

Referenced by yaml_org_handler().

static double S_nan ( void  )
static

Definition at line 66 of file rubyext.c.

References S_zero().

Referenced by yaml_org_handler().

static double S_one ( void  )
static

Definition at line 64 of file rubyext.c.

Referenced by S_inf().

static double S_zero ( void  )
static

Definition at line 63 of file rubyext.c.

Referenced by S_inf(), and S_nan().

VALUE syck_badalias_cmp ( VALUE  alias1,
VALUE  alias2 
)

Definition at line 1351 of file rubyext.c.

References rb_funcall(), rb_ivar_get(), s_cmp, and s_name.

Referenced by Init_syck().

VALUE syck_badalias_initialize ( VALUE  self,
VALUE  val 
)

Definition at line 1341 of file rubyext.c.

References rb_iv_set().

Referenced by Init_syck().

VALUE syck_const_find ( VALUE  const_name)
VALUE syck_defaultresolver_detect_implicit ( VALUE  self,
VALUE  val 
)

Definition at line 1228 of file rubyext.c.

References NIL_P, rb_check_string_type(), rb_str_new2(), RSTRING_LEN, RSTRING_PTR, and syck_match_implicit().

Referenced by Init_syck().

VALUE syck_defaultresolver_node_import ( VALUE  self,
VALUE  node 
)

Definition at line 1247 of file rubyext.c.

References Data_Get_Struct, rb_funcall(), rb_str_new2(), s_transfer, _syck_node::type_id, and yaml_org_handler().

Referenced by Init_syck().

VALUE syck_domaintype_initialize ( VALUE  self,
VALUE  domain,
VALUE  type_id,
VALUE  val 
)

Definition at line 1363 of file rubyext.c.

References rb_iv_set().

Referenced by Init_syck().

VALUE syck_emitter_emit ( int  argc,
VALUE argv,
VALUE  self 
)
VALUE syck_emitter_node_export ( VALUE  self,
VALUE  node 
)

Definition at line 2041 of file rubyext.c.

References rb_funcall(), and s_to_yaml.

Referenced by Init_syck().

VALUE syck_emitter_reset ( int  argc,
VALUE argv,
VALUE  self 
)
VALUE syck_emitter_s_alloc ( VALUE  class)
VALUE syck_emitter_set_resolver ( VALUE  self,
VALUE  resolver 
)

Definition at line 2050 of file rubyext.c.

References rb_ivar_set(), and s_resolver.

Referenced by Init_syck().

VALUE syck_genericresolver_node_import ( VALUE  self,
VALUE  node 
)
VALUE syck_get_hash_aref ( VALUE  hsh,
VALUE  key 
)

Definition at line 196 of file rubyext.c.

References NIL_P, rb_hash_aref(), rb_hash_aset(), and rb_hash_new().

VALUE syck_map_add_m ( VALUE  self,
VALUE  key,
VALUE  val 
)
VALUE syck_map_alloc ( VALUE  class)

Definition at line 1607 of file rubyext.c.

References Data_Wrap_Struct, _syck_node::id, syck_alloc_map(), syck_free_node(), and syck_node_mark().

Referenced by Init_syck().

VALUE syck_map_initialize ( VALUE  self,
VALUE  type_id,
VALUE  val,
VALUE  style 
)
VALUE syck_map_style_set ( VALUE  self,
VALUE  style 
)

Definition at line 1707 of file rubyext.c.

References _syck_node::data, Data_Get_Struct, map_inline, map_none, _syck_node::pairs, rb_iv_set(), and sym_inline.

Referenced by Init_syck().

VALUE syck_map_value_set ( VALUE  self,
VALUE  val 
)
static void syck_mark_emitter ( SyckEmitter emitter)
static
static void syck_mark_parser ( SyckParser parser)
static
VALUE syck_merge_i ( VALUE  entry,
VALUE  hsh 
)

Definition at line 354 of file rubyext.c.

References NIL_P, Qnil, rb_check_convert_type(), rb_funcall(), s_update, and T_HASH.

Referenced by syck_resolver_node_import(), and yaml_org_handler().

static void syck_node_mark ( SyckNode n)
static
VALUE syck_node_transform ( VALUE  self)
static
VALUE syck_node_type_id_set ( VALUE  self,
VALUE  type_id 
)
VALUE syck_out_initialize ( VALUE  self,
VALUE  emitter 
)

Definition at line 2060 of file rubyext.c.

References rb_ivar_set(), and s_emitter.

Referenced by Init_syck().

VALUE syck_out_map ( int  argc,
VALUE argv,
VALUE  self 
)

Definition at line 2070 of file rubyext.c.

References cMap, Qnil, rb_funcall(), rb_hash_new(), rb_ivar_get(), rb_scan_args(), rb_yield(), s_emitter, s_new, and syck_out_mark().

Referenced by Init_syck().

void syck_out_mark ( VALUE  emitter,
VALUE  node 
)
VALUE syck_out_scalar ( int  argc,
VALUE argv,
VALUE  self 
)

Definition at line 2104 of file rubyext.c.

References cScalar, rb_funcall(), rb_ivar_get(), rb_scan_args(), s_emitter, s_new, scalar(), and syck_out_mark().

Referenced by Init_syck().

VALUE syck_out_seq ( int  argc,
VALUE argv,
VALUE  self 
)

Definition at line 2086 of file rubyext.c.

References cSeq, Qnil, rb_ary_new(), rb_funcall(), rb_ivar_get(), rb_scan_args(), rb_yield(), s_emitter, s_new, and syck_out_mark().

Referenced by Init_syck().

int syck_parser_assign_io ( SyckParser parser,
VALUE pport 
)
static VALUE syck_parser_bufsize_get ( VALUE  self)
static

Definition at line 835 of file rubyext.c.

References _syck_parser::bufsize, Data_Get_Struct, and INT2FIX.

Referenced by Init_syck().

static VALUE syck_parser_bufsize_set ( VALUE  self,
VALUE  size 
)
static

Definition at line 819 of file rubyext.c.

References _syck_parser::bufsize, Data_Get_Struct, NUM2INT, rb_funcall(), rb_respond_to(), and s_to_i.

Referenced by Init_syck().

static VALUE syck_parser_initialize ( int  argc,
VALUE argv,
VALUE  self 
)
static

Definition at line 799 of file rubyext.c.

References Check_Type, options(), Qnil, rb_hash_new(), rb_ivar_set(), rb_scan_args(), s_input, s_options, and T_HASH.

Referenced by Init_syck().

VALUE syck_parser_load ( int  argc,
VALUE argv,
VALUE  self 
)
VALUE syck_parser_load_documents ( int  argc,
VALUE argv,
VALUE  self 
)
VALUE syck_parser_s_alloc ( VALUE  class)
VALUE syck_parser_set_resolver ( VALUE  self,
VALUE  resolver 
)

Definition at line 915 of file rubyext.c.

References rb_ivar_set(), and s_resolver.

Referenced by Init_syck().

VALUE syck_privatetype_initialize ( VALUE  self,
VALUE  type_id,
VALUE  val 
)

Definition at line 1386 of file rubyext.c.

References rb_iv_set().

Referenced by Init_syck().

VALUE syck_resolver_add_type ( VALUE  self,
VALUE  taguri,
VALUE  cls 
)

Definition at line 935 of file rubyext.c.

References Qnil, rb_attr_get(), rb_hash_aset(), and s_tags.

Referenced by Init_syck().

VALUE syck_resolver_detect_implicit ( VALUE  self,
VALUE  val 
)

Definition at line 956 of file rubyext.c.

References rb_str_new2().

Referenced by Init_syck().

static VALUE syck_resolver_initialize ( VALUE  self)
static

Definition at line 925 of file rubyext.c.

References rb_hash_new(), rb_ivar_set(), and s_tags.

Referenced by Init_syck().

VALUE syck_resolver_node_import ( VALUE  self,
VALUE  node 
)
VALUE syck_resolver_tagurize ( VALUE  self,
VALUE  val 
)

Definition at line 1210 of file rubyext.c.

References NIL_P, rb_check_string_type(), rb_str_new2(), RSTRING_PTR, S_FREE, and syck_type_id_to_uri().

Referenced by Init_syck().

VALUE syck_resolver_transfer ( VALUE  self,
VALUE  type,
VALUE  val 
)
VALUE syck_resolver_use_types_at ( VALUE  self,
VALUE  hsh 
)

Definition at line 946 of file rubyext.c.

References Qnil, rb_ivar_set(), and s_tags.

Referenced by Init_syck().

VALUE syck_scalar_alloc ( VALUE  class)

Definition at line 1432 of file rubyext.c.

References Data_Wrap_Struct, _syck_node::id, syck_alloc_str(), syck_free_node(), and syck_node_mark().

Referenced by Init_syck().

VALUE syck_scalar_initialize ( VALUE  self,
VALUE  type_id,
VALUE  val,
VALUE  style 
)

Definition at line 1444 of file rubyext.c.

References rb_funcall(), rb_iv_set(), s_style_set, s_type_id_set, s_value_set, and sym_scalar.

Referenced by Init_syck().

VALUE syck_scalar_style_set ( VALUE  self,
VALUE  style 
)
VALUE syck_scalar_value_set ( VALUE  self,
VALUE  val 
)
VALUE syck_seq_add_m ( VALUE  self,
VALUE  val 
)
VALUE syck_seq_alloc ( VALUE  class)

Definition at line 1513 of file rubyext.c.

References Data_Wrap_Struct, _syck_node::id, syck_alloc_seq(), syck_free_node(), and syck_node_mark().

Referenced by Init_syck().

VALUE syck_seq_initialize ( VALUE  self,
VALUE  type_id,
VALUE  val,
VALUE  style 
)

Definition at line 1527 of file rubyext.c.

References Data_Get_Struct, rb_funcall(), rb_iv_set(), s_style_set, s_type_id_set, s_value_set, and sym_seq.

Referenced by Init_syck().

VALUE syck_seq_style_set ( VALUE  self,
VALUE  style 
)

Definition at line 1585 of file rubyext.c.

References _syck_node::data, Data_Get_Struct, _syck_node::list, rb_iv_set(), seq_inline, seq_none, and sym_inline.

Referenced by Init_syck().

VALUE syck_seq_value_set ( VALUE  self,
VALUE  val 
)
VALUE syck_set_ivars ( VALUE  vars,
VALUE  obj 
)

Definition at line 1045 of file rubyext.c.

References Qnil, rb_ary_entry(), rb_iv_set(), RSTRING_LEN, RSTRING_PTR, S_ALLOCA_N, and StringValue.

Referenced by syck_resolver_transfer().

void syck_set_model ( VALUE  p,
VALUE  input,
VALUE  model 
)
static int syck_st_mark_nodes ( char *  key,
SyckNode n,
char *  arg 
)
static

Definition at line 736 of file rubyext.c.

References ST_CONTINUE, and syck_node_mark().

Referenced by syck_mark_parser().

VALUE syck_yobject_initialize ( VALUE  self,
VALUE  klass,
VALUE  ivars 
)

Definition at line 1375 of file rubyext.c.

References rb_iv_set().

Referenced by Init_syck().

int yaml_org_handler ( SyckNode n,
VALUE ref 
)

Variable Documentation

VALUE cBadAlias
static

Definition at line 57 of file rubyext.c.

Referenced by Init_syck().

VALUE cDate
static

Definition at line 57 of file rubyext.c.

Referenced by yaml_org_handler().

VALUE cDateTime
static

Definition at line 57 of file rubyext.c.

Referenced by mktime_r().

VALUE cDefaultKey
static

Definition at line 57 of file rubyext.c.

Referenced by Init_syck(), syck_resolver_node_import(), and yaml_org_handler().

VALUE cDomainType
static

Definition at line 57 of file rubyext.c.

Referenced by Init_syck(), and syck_resolver_transfer().

VALUE cEmitter
static

Definition at line 57 of file rubyext.c.

Referenced by Init_syck().

VALUE cMap
static

Definition at line 57 of file rubyext.c.

Referenced by Init_syck(), syck_genericresolver_node_import(), and syck_out_map().

VALUE cMergeKey
static

Definition at line 57 of file rubyext.c.

Referenced by Init_syck(), syck_resolver_node_import(), and yaml_org_handler().

VALUE cNode
static

Definition at line 57 of file rubyext.c.

Referenced by Init_syck(), rb_syck_load_handler(), and syck_node_transform().

VALUE cOut
static

Definition at line 57 of file rubyext.c.

Referenced by Init_syck(), and syck_emitter_s_alloc().

VALUE cParser
static

Definition at line 57 of file rubyext.c.

Referenced by Init_syck().

VALUE cPrivateType
static

Definition at line 57 of file rubyext.c.

Referenced by Init_syck(), and syck_resolver_transfer().

VALUE cResolver
static

Definition at line 57 of file rubyext.c.

Referenced by Init_syck().

VALUE cScalar
static

Definition at line 57 of file rubyext.c.

Referenced by Init_syck(), syck_genericresolver_node_import(), and syck_out_scalar().

VALUE cSeq
static

Definition at line 57 of file rubyext.c.

Referenced by Init_syck(), syck_genericresolver_node_import(), and syck_out_seq().

VALUE cYObject
static

Definition at line 57 of file rubyext.c.

Referenced by Init_syck(), and syck_resolver_transfer().

VALUE oDefaultResolver
static

Definition at line 58 of file rubyext.c.

Referenced by Init_syck(), rb_syck_load_handler(), syck_node_transform(), and yaml_org_handler().

VALUE oGenericResolver
static

Definition at line 58 of file rubyext.c.

Referenced by Init_syck(), and syck_set_model().

ID s_at
static

Definition at line 52 of file rubyext.c.

Referenced by Init_syck(), and mktime_do().

ID s_binmode
static

Definition at line 52 of file rubyext.c.

Referenced by Init_syck(), and syck_parser_assign_io().

ID s_call
static
ID s_cmp
static

Definition at line 52 of file rubyext.c.

Referenced by Init_syck(), and syck_badalias_cmp().

ID s_default_set
static

Definition at line 52 of file rubyext.c.

Referenced by Init_syck(), syck_resolver_node_import(), and yaml_org_handler().

ID s_detect_implicit
static

Definition at line 52 of file rubyext.c.

Referenced by Init_syck(), and syck_resolver_transfer().

ID s_dup
static

Definition at line 52 of file rubyext.c.

Referenced by Init_syck(), syck_resolver_node_import(), and yaml_org_handler().

ID s_each
static
ID s_emitter
static
ID s_haskey
static

Definition at line 52 of file rubyext.c.

Referenced by Init_syck(), and syck_emitter_emit().

ID s_input
static

Definition at line 52 of file rubyext.c.

Referenced by Init_syck(), syck_parser_initialize(), and syck_set_model().

ID s_intern
static

Definition at line 52 of file rubyext.c.

Referenced by Init_syck().

ID s_keys
static

Definition at line 52 of file rubyext.c.

Referenced by Init_syck(), syck_map_initialize(), and syck_map_value_set().

ID s_kind
static

Definition at line 53 of file rubyext.c.

Referenced by Init_syck().

ID s_level
static

Definition at line 52 of file rubyext.c.

Referenced by Init_syck(), syck_emitter_emit(), and syck_emitter_reset().

ID s_match
static

Definition at line 52 of file rubyext.c.

Referenced by Init_syck().

ID s_name
static

Definition at line 53 of file rubyext.c.

Referenced by Init_syck(), and syck_badalias_cmp().

ID s_new
static
ID s_node_export
static

Definition at line 52 of file rubyext.c.

Referenced by Init_syck(), syck_map_add_m(), and syck_seq_add_m().

ID s_node_import
static

Definition at line 52 of file rubyext.c.

Referenced by Init_syck(), rb_syck_load_handler(), and syck_node_transform().

ID s_options
static
ID s_out
static

Definition at line 52 of file rubyext.c.

Referenced by Init_syck(), syck_emitter_emit(), and syck_emitter_s_alloc().

ID s_parse
static

Definition at line 53 of file rubyext.c.

Referenced by Init_syck(), and mktime_r().

ID s_push
static

Definition at line 52 of file rubyext.c.

Referenced by Init_syck().

ID s_read
static

Definition at line 52 of file rubyext.c.

Referenced by Init_syck(), rb_syck_io_str_read(), and syck_parser_assign_io().

ID s_resolver
static
ID s_set_resolver
static

Definition at line 52 of file rubyext.c.

Referenced by Init_syck(), and syck_set_model().

ID s_style
static

Definition at line 53 of file rubyext.c.

Referenced by Init_syck().

ID s_style_set
static
ID s_tag_read_class
static

Definition at line 52 of file rubyext.c.

Referenced by Init_syck(), and syck_resolver_transfer().

ID s_tag_subclasses
static

Definition at line 52 of file rubyext.c.

Referenced by Init_syck(), and syck_resolver_transfer().

ID s_tags
static
ID s_to_f
static

Definition at line 52 of file rubyext.c.

Referenced by Init_syck().

ID s_to_i
static

Definition at line 52 of file rubyext.c.

Referenced by Init_syck(), mktime_do(), and syck_parser_bufsize_set().

ID s_to_yaml
static

Definition at line 52 of file rubyext.c.

Referenced by Init_syck(), and syck_emitter_node_export().

ID s_tr_bang
static

Definition at line 52 of file rubyext.c.

Referenced by Init_syck(), and yaml_org_handler().

ID s_transfer
static
ID s_transform
static

Definition at line 52 of file rubyext.c.

Referenced by Init_syck(), and syck_node_transform().

ID s_type_id
static

Definition at line 53 of file rubyext.c.

Referenced by Init_syck().

ID s_type_id_set
static
ID s_unpack
static

Definition at line 52 of file rubyext.c.

Referenced by Init_syck(), and yaml_org_handler().

ID s_update
static

Definition at line 52 of file rubyext.c.

Referenced by Init_syck(), syck_merge_i(), syck_resolver_node_import(), and yaml_org_handler().

ID s_utc
static

Definition at line 52 of file rubyext.c.

Referenced by Init_syck(), and mktime_do().

ID s_value
static

Definition at line 53 of file rubyext.c.

Referenced by Init_syck(), syck_map_add_m(), and syck_seq_add_m().

ID s_value_set
static
ID s_write
static

Definition at line 52 of file rubyext.c.

Referenced by Init_syck(), and syck_emitter_reset().

ID s_yaml_initialize
static

Definition at line 52 of file rubyext.c.

Referenced by Init_syck(), and syck_resolver_transfer().

ID s_yaml_new
static

Definition at line 52 of file rubyext.c.

Referenced by Init_syck(), and syck_resolver_transfer().

VALUE sym_1quote
static

Definition at line 56 of file rubyext.c.

Referenced by Init_syck(), syck_genericresolver_node_import(), and syck_scalar_style_set().

VALUE sym_2quote
static

Definition at line 56 of file rubyext.c.

Referenced by Init_syck(), syck_genericresolver_node_import(), and syck_scalar_style_set().

VALUE sym_bytecode
static

Definition at line 54 of file rubyext.c.

Referenced by Init_syck(), and syck_set_model().

VALUE sym_fold
static

Definition at line 56 of file rubyext.c.

Referenced by Init_syck(), syck_genericresolver_node_import(), and syck_scalar_style_set().

VALUE sym_generic
static

Definition at line 54 of file rubyext.c.

Referenced by Init_syck(), and syck_set_model().

VALUE sym_inline
static
VALUE sym_input
static

Definition at line 54 of file rubyext.c.

Referenced by syck_parser_load(), and syck_parser_load_documents().

VALUE sym_literal
static

Definition at line 56 of file rubyext.c.

Referenced by Init_syck(), syck_genericresolver_node_import(), and syck_scalar_style_set().

VALUE sym_map
static

Definition at line 55 of file rubyext.c.

Referenced by Init_syck(), and syck_genericresolver_node_import().

VALUE sym_model
static

Definition at line 54 of file rubyext.c.

Referenced by Init_syck(), syck_parser_load(), and syck_parser_load_documents().

VALUE sym_plain
static

Definition at line 56 of file rubyext.c.

Referenced by Init_syck(), syck_genericresolver_node_import(), and syck_scalar_style_set().

VALUE sym_scalar
static

Definition at line 55 of file rubyext.c.

Referenced by Init_syck(), and syck_scalar_initialize().

VALUE sym_seq
static