Skip to content

Commit

Permalink
DUH
Browse files Browse the repository at this point in the history
  • Loading branch information
brianmario committed Mar 23, 2011
1 parent ac1501a commit 0e73ff2
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions ext/yajl/yajl_ext.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,12 @@

#include "api/yajl_parse.h"
#include "api/yajl_gen.h"

// tell rbx not to use it's caching compat layer
// by doing this we're making a promize to RBX that
// we'll never modify the pointers we get back from RSTRING_PTR
#define RSTRING_NOT_MODIFIED

#include <ruby.h>

#ifdef HAVE_RUBY_ENCODING_H
Expand All @@ -33,11 +39,6 @@ static rb_encoding *utf8Encoding;
#define READ_BUFSIZE 8192
#define WRITE_BUFSIZE 8192

// tell rbx not to use it's caching compat layer
// by doing this we're making a promize to RBX that
// we'll never modify the pointers we get back from RSTRING_PTR
#define RSTRING_NOT_MODIFIED

/* Older versions of Ruby (< 1.8.6) need these */
#ifndef RSTRING_PTR
#define RSTRING_PTR(s) (RSTRING(s)->ptr)
Expand Down

0 comments on commit 0e73ff2

Please sign in to comment.