diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2002-10-23 10:17:30 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2002-10-23 10:17:30 +0000 |
commit | d4f2f6a7f708b010d9777f12bdcb84a449f61aa9 (patch) | |
tree | 87328c69b8296e0ecd38a456e2c4d74e40f28184 /node.h | |
parent | 9562813d338b5f2870408e95747d71502590c14f (diff) |
* eval.c (rb_eval): added NODE_DSYM, symbol literal with
interpolation.
* node.h: ditto.
* intern.h: prototypes; rb_is_junk_id, rb_str_dump, rb_str_intern
* object.c (sym_inspect): escape and quote for non-alphanumeric
symbols.
* parse.y (dsym, tokadd_string, yylex): extended symbol literals.
* parse.y (rb_is_junk_id): added.
* string.c (rb_str_dump, rb_str_intern) : make extern.
* lib/mkmf.rb (create_makefile): deffile should be removed by
distclean, not clean.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2985 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'node.h')
-rw-r--r-- | node.h | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -122,6 +122,7 @@ enum node_type { NODE_BMETHOD, NODE_MEMO, NODE_IFUNC, + NODE_DSYM, NODE_LAST }; @@ -294,6 +295,7 @@ typedef struct RNode { #define NEW_DSTR(s) rb_node_newnode(NODE_DSTR,s,0,0) #define NEW_XSTR(s) rb_node_newnode(NODE_XSTR,s,0,0) #define NEW_DXSTR(s) rb_node_newnode(NODE_DXSTR,s,0,0) +#define NEW_DSYM(s) rb_node_newnode(NODE_DSYM,s,0,0) #define NEW_EVSTR(n) rb_node_newnode(NODE_EVSTR,0,(n),0) #define NEW_CALL(r,m,a) rb_node_newnode(NODE_CALL,r,m,a) #define NEW_FCALL(m,a) rb_node_newnode(NODE_FCALL,0,m,a) |