aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog4
-rw-r--r--gc.c1
-rw-r--r--internal.h6
-rw-r--r--symbol.h6
4 files changed, 10 insertions, 7 deletions
diff --git a/ChangeLog b/ChangeLog
index c6b57085bb..8ee6633968 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+Mon Oct 6 22:37:09 2014 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * symbol.h (struct RSymbol): move from internal.h.
+
Mon Oct 6 21:43:03 2014 NAKAMURA Usaku <usa@ruby-lang.org>
* error.c: update exception tree. [DOC]
diff --git a/gc.c b/gc.c
index 0fdc62f180..51d17614d9 100644
--- a/gc.c
+++ b/gc.c
@@ -381,7 +381,6 @@ typedef struct RVALUE {
struct RMatch match;
struct RRational rational;
struct RComplex complex;
- struct RSymbol symbol;
struct {
struct RBasic basic;
VALUE v1;
diff --git a/internal.h b/internal.h
index 1a9be71c31..a4d56b9984 100644
--- a/internal.h
+++ b/internal.h
@@ -420,12 +420,6 @@ struct RRational {
#define RRATIONAL(obj) (R_CAST(RRational)(obj))
-struct RSymbol {
- struct RBasic basic;
- VALUE fstr;
- ID type;
-};
-
struct RFloat {
struct RBasic basic;
double float_value;
diff --git a/symbol.h b/symbol.h
index 36db8ef667..58e03c043e 100644
--- a/symbol.h
+++ b/symbol.h
@@ -14,6 +14,12 @@
#include "id.h"
+struct RSymbol {
+ struct RBasic basic;
+ VALUE fstr;
+ ID type;
+};
+
#define RSYMBOL(obj) (R_CAST(RSymbol)(obj))
static inline int