Permalink
Browse files

fix the struct declarations

  • Loading branch information...
1 parent db03506 commit 548a941c3afad6eac53af61c4d631b457c44cd56 @Watson1978 Watson1978 committed Jun 19, 2012
Showing with 5 additions and 4 deletions.
  1. +1 −1 array.h
  2. +1 −1 encoding.h
  3. +2 −1 hash.h
  4. +1 −1 symbol.c
View
@@ -14,7 +14,7 @@
extern "C" {
#endif
-typedef struct {
+typedef struct RArray {
struct RBasic basic;
size_t beg;
size_t len;
View
@@ -53,7 +53,7 @@ extern "C" {
typedef uint8_t str_flag_t;
-typedef struct {
+typedef struct RString {
struct RBasic basic;
struct rb_encoding *encoding;
long capacity_in_bytes;
View
3 hash.h
@@ -12,7 +12,8 @@
extern "C" {
#endif
-typedef struct {
+
+typedef struct RHash {
struct RBasic basic;
st_table *tbl;
VALUE ifnone;
View
@@ -26,7 +26,7 @@ static pthread_mutex_t local_lock = PTHREAD_MUTEX_INITIALIZER;
static CFMutableDictionaryRef sym_id = NULL, id_str = NULL;
static long last_id = 0;
-typedef struct {
+typedef struct rb_sym_t {
VALUE klass;
VALUE str;
ID id;

0 comments on commit 548a941

Please sign in to comment.