summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-10-06 13:36:45 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-10-06 13:36:45 +0000
commit0ca714fa1aa3fbe4fb60ae1e5b730e544dabc27b (patch)
treee67a09f72bf71bc5dbb677e455fbdd039e0a8996
parent8474ebad8a4abb4c4b5ae7ecc5f5c7648763d2d3 (diff)
symbol.h: move struct RSymbol
* symbol.h (struct RSymbol): move from internal.h. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47821 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-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