diff options
| author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2006-09-03 11:47:34 +0000 |
|---|---|---|
| committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2006-09-03 11:47:34 +0000 |
| commit | db0d5fcaadf939aeeb3038ffc8e5b1b1e25c120c (patch) | |
| tree | 08356791239f2f723b7c8092d372ac00e5fa9d2e | |
| parent | 68b0f9d47f1dcbc873f5739e3345d88c78a59cc6 (diff) | |
| download | ruby-db0d5fcaadf939aeeb3038ffc8e5b1b1e25c120c.tar.gz ruby-db0d5fcaadf939aeeb3038ffc8e5b1b1e25c120c.tar.xz ruby-db0d5fcaadf939aeeb3038ffc8e5b1b1e25c120c.zip | |
* ruby.h (SYMBOL_P): Qnil and Qfalse are not Symbol.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@10846 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
| -rw-r--r-- | ChangeLog | 4 | ||||
| -rw-r--r-- | ruby.h | 2 |
2 files changed, 5 insertions, 1 deletions
@@ -1,3 +1,7 @@ +Sun Sep 3 20:47:02 2006 Nobuyoshi Nakada <nobu@ruby-lang.org> + + * ruby.h (SYMBOL_P): Qnil and Qfalse are not Symbol. + Sun Sep 3 15:32:44 2006 Nobuyoshi Nakada <nobu@ruby-lang.org> * lib/mkmf.rb: get rid of nil.to_s. @@ -195,7 +195,7 @@ VALUE rb_ull2inum(unsigned LONG_LONG); #define IMMEDIATE_MASK 0x03 #define IMMEDIATE_P(x) ((VALUE)(x) & IMMEDIATE_MASK) -#define SYMBOL_P(x) (!IMMEDIATE_P(x) && RBASIC(x)->klass == rb_cSymbol) +#define SYMBOL_P(x) (!SPECIAL_CONST_P(x) && RBASIC(x)->klass == rb_cSymbol) VALUE rb_id2sym(ID); ID rb_sym2id(VALUE); #define ID2SYM(x) rb_id2sym(x) |
