diff options
| author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-10-16 20:07:20 +0000 |
|---|---|---|
| committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-10-16 20:07:20 +0000 |
| commit | c2881572b765a458f06fd02b8c3c06d65bc96214 (patch) | |
| tree | f0edbde7c7fb43658ef81f9232c87779a0031fd6 /include/ruby/node.h | |
| parent | 58992f01ceb3b29674ffb97b1a93f5790291aaf6 (diff) | |
| download | ruby-c2881572b765a458f06fd02b8c3c06d65bc96214.tar.gz ruby-c2881572b765a458f06fd02b8c3c06d65bc96214.tar.xz ruby-c2881572b765a458f06fd02b8c3c06d65bc96214.zip | |
* encoding.c (rb_primary_encoding): added Encoding.primary_encoding.
* parse.y (rb_parser_encoding): added.
* ruby.c (proc_options): added -E and --encoding options.
* ruby.c (process_options): set primary encoding from command line
option if set, or source encoding.
* include/ruby/encoding.h (rb_enc_from_encoding,
rb_get_primary_encoding, rb_set_primary_encoding): prototypes.
* include/ruby/node.h (rb_parser_encoding): prototype.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@13729 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'include/ruby/node.h')
| -rw-r--r-- | include/ruby/node.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/ruby/node.h b/include/ruby/node.h index 51268061e..eeea3cea9 100644 --- a/include/ruby/node.h +++ b/include/ruby/node.h @@ -481,6 +481,7 @@ typedef struct RNode { VALUE rb_parser_new(void); VALUE rb_parser_end_seen_p(VALUE); +VALUE rb_parser_encoding(VALUE); NODE *rb_parser_compile_cstr(volatile VALUE, const char*, const char*, int, int); NODE *rb_parser_compile_string(volatile VALUE, const char*, VALUE, int); |
