Ruby 2.1.5p273(2014-11-13revision48405)

- Main Page
- Modules
- Data Structures
- Files

- File List
- Globals

miniinit.c
Go to the documentation of this file.
1 /**********************************************************************
2
3 miniinit.c -
4
5 $Author$
6 created at: Thu Jul 11 22:09:57 JST 2013
7
8 Copyright (C) 2013 Yukihiro Matsumoto
9
10 **********************************************************************/
11
12 #include "ruby/ruby.h"
13 #include "ruby/encoding.h"
14
15 /* loadpath.c */
16 const char ruby_exec_prefix[] = "";
17 const char ruby_initial_load_paths[] = "";
18
19 /* localeinit.c */
20 VALUE
21 rb_locale_charmap(VALUE klass)
22 {
23 return rb_usascii_str_new2("ASCII-8BIT");
24 }
25
26 int
27 Init_enc_set_filesystem_encoding(void)
28 {
29 return rb_enc_to_index(rb_default_external_encoding());
30 }
ruby_initial_load_paths
const char ruby_initial_load_paths[]
Definition: miniinit.c:17
ruby.h
rb_usascii_str_new2
#define rb_usascii_str_new2
Definition: intern.h:846
Init_enc_set_filesystem_encoding
int Init_enc_set_filesystem_encoding(void)
Definition: miniinit.c:27
rb_default_external_encoding
rb_encoding * rb_default_external_encoding(void)
Definition: encoding.c:1351
encoding.h
VALUE
unsigned long VALUE
Definition: ruby.h:88
rb_locale_charmap
VALUE rb_locale_charmap(VALUE klass)
Definition: miniinit.c:21
ruby_exec_prefix
const char ruby_exec_prefix[]
Definition: miniinit.c:16
rb_enc_to_index
#define rb_enc_to_index(enc)
Definition: encoding.h:77