mirror of
https://github.com/ruby/ruby.git
synced 2025-09-15 08:33:58 +02:00
* ext/json: Merge 164a75c8bd2007d32c4d7665d53140d8fc126dcd.
[ruby-core:41917] [Bug #5846] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34971 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
9d9ab5a384
commit
4d8d3184d1
15 changed files with 409 additions and 573 deletions
|
@ -3,16 +3,10 @@
|
|||
|
||||
#include "ruby.h"
|
||||
|
||||
#if HAVE_RE_H
|
||||
#ifndef HAVE_RUBY_RE_H
|
||||
#include "re.h"
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_RUBY_ENCODING_H
|
||||
#include "ruby/encoding.h"
|
||||
#define FORCE_UTF8(obj) ((obj) = rb_enc_associate(rb_str_dup(obj), rb_utf8_encoding()))
|
||||
#else
|
||||
#define FORCE_UTF8(obj)
|
||||
#endif
|
||||
#ifdef HAVE_RUBY_ST_H
|
||||
#include "ruby/st.h"
|
||||
#else
|
||||
|
@ -49,6 +43,7 @@ typedef struct JSON_ParserStruct {
|
|||
VALUE array_class;
|
||||
int create_additions;
|
||||
VALUE match_string;
|
||||
FBuffer *fbuffer;
|
||||
} JSON_Parser;
|
||||
|
||||
#define GET_PARSER \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue