зеркало из https://github.com/github/ruby.git
* internal.h, node.h: move a definition of `struct rb_global_entry'
and related functions from node.h to internal.h. * variable.c: remove unused include pragma. * common.mk: remove unused dependency. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49947 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
f61df4b0a6
Коммит
724012a23d
|
@ -1,3 +1,12 @@
|
|||
Thu Mar 12 10:53:06 2015 Koichi Sasada <ko1@atdot.net>
|
||||
|
||||
* internal.h, node.h: move a definition of `struct rb_global_entry'
|
||||
and related functions from node.h to internal.h.
|
||||
|
||||
* variable.c: remove unused include pragma.
|
||||
|
||||
* common.mk: remove unused dependency.
|
||||
|
||||
Thu Mar 12 10:32:39 2015 Koichi Sasada <ko1@atdot.net>
|
||||
|
||||
* common.mk: remove unused dependency.
|
||||
|
|
|
@ -2279,7 +2279,6 @@ variable.$(OBJEXT): {$(VPATH)}intern.h
|
|||
variable.$(OBJEXT): {$(VPATH)}internal.h
|
||||
variable.$(OBJEXT): {$(VPATH)}io.h
|
||||
variable.$(OBJEXT): {$(VPATH)}missing.h
|
||||
variable.$(OBJEXT): {$(VPATH)}node.h
|
||||
variable.$(OBJEXT): {$(VPATH)}oniguruma.h
|
||||
variable.$(OBJEXT): {$(VPATH)}st.h
|
||||
variable.$(OBJEXT): {$(VPATH)}subst.h
|
||||
|
|
12
internal.h
12
internal.h
|
@ -615,6 +615,18 @@ struct MEMO {
|
|||
#define NEW_MEMO_FOR(type, value) \
|
||||
((value) = rb_ary_tmp_new_fill(type_roomof(type, VALUE)), MEMO_FOR(type, value))
|
||||
|
||||
/* global variable */
|
||||
|
||||
struct rb_global_entry {
|
||||
struct rb_global_variable *var;
|
||||
ID id;
|
||||
};
|
||||
|
||||
struct rb_global_entry *rb_global_entry(ID);
|
||||
VALUE rb_gvar_get(struct rb_global_entry *);
|
||||
VALUE rb_gvar_set(struct rb_global_entry *, VALUE);
|
||||
VALUE rb_gvar_defined(struct rb_global_entry *);
|
||||
|
||||
struct vtm; /* defined by timev.h */
|
||||
|
||||
/* array.c */
|
||||
|
|
9
node.h
9
node.h
|
@ -481,15 +481,6 @@ void rb_gc_free_node(VALUE obj);
|
|||
size_t rb_node_memsize(VALUE obj);
|
||||
VALUE rb_gc_mark_node(NODE *obj);
|
||||
|
||||
struct rb_global_entry {
|
||||
struct rb_global_variable *var;
|
||||
ID id;
|
||||
};
|
||||
|
||||
struct rb_global_entry *rb_global_entry(ID);
|
||||
VALUE rb_gvar_get(struct rb_global_entry *);
|
||||
VALUE rb_gvar_set(struct rb_global_entry *, VALUE);
|
||||
VALUE rb_gvar_defined(struct rb_global_entry *);
|
||||
const struct kwtable *rb_reserved_word(const char *, unsigned int);
|
||||
|
||||
struct rb_args_info {
|
||||
|
|
|
@ -14,7 +14,6 @@
|
|||
#include "internal.h"
|
||||
#include "ruby/st.h"
|
||||
#include "ruby/util.h"
|
||||
#include "node.h"
|
||||
#include "constant.h"
|
||||
#include "id.h"
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче