Groonga 3.0.9 Source Code Document
Main Page
Related Pages
Namespaces
Data Structures
Files
File List
Globals
All
Data Structures
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Pages
groonga
vendor
mruby-eeac4be
include
mruby
variable.h
Go to the documentation of this file.
1
/*
2
** mruby/variable.h - mruby variables
3
**
4
** See Copyright Notice in mruby.h
5
*/
6
7
#ifndef MRUBY_VARIABLE_H
8
#define MRUBY_VARIABLE_H
9
10
#if defined(__cplusplus)
11
extern
"C"
{
12
#endif
13
14
typedef
struct
global_variable
{
15
int
counter
;
16
mrb_value
*
data
;
17
mrb_value
(*
getter
)(void);
18
void (*
setter
)(void);
19
//void (*marker)();
20
//int block_trace;
21
//struct trace_var *trace;
22
}
global_variable
;
23
24
struct
global_entry
{
25
global_variable
*
var
;
26
mrb_sym
id
;
27
};
28
29
mrb_value
mrb_vm_special_get
(
mrb_state
*,
mrb_sym
);
30
void
mrb_vm_special_set
(
mrb_state
*,
mrb_sym
,
mrb_value
);
31
mrb_value
mrb_vm_iv_get
(
mrb_state
*,
mrb_sym
);
32
void
mrb_vm_iv_set
(
mrb_state
*,
mrb_sym
,
mrb_value
);
33
mrb_value
mrb_vm_cv_get
(
mrb_state
*,
mrb_sym
);
34
void
mrb_vm_cv_set
(
mrb_state
*,
mrb_sym
,
mrb_value
);
35
mrb_value
mrb_vm_const_get
(
mrb_state
*,
mrb_sym
);
36
void
mrb_vm_const_set
(
mrb_state
*,
mrb_sym
,
mrb_value
);
37
mrb_value
mrb_const_get
(
mrb_state
*,
mrb_value
,
mrb_sym
);
38
void
mrb_const_set
(
mrb_state
*,
mrb_value
,
mrb_sym
,
mrb_value
);
39
mrb_bool
mrb_const_defined
(
mrb_state
*,
mrb_value
,
mrb_sym
);
40
void
mrb_const_remove
(
mrb_state
*,
mrb_value
,
mrb_sym
);
41
42
mrb_value
mrb_obj_iv_get
(
mrb_state
*mrb,
struct
RObject
*obj,
mrb_sym
sym
);
43
void
mrb_obj_iv_set
(
mrb_state
*mrb,
struct
RObject
*obj,
mrb_sym
sym
,
mrb_value
v);
44
mrb_bool
mrb_obj_iv_defined
(
mrb_state
*mrb,
struct
RObject
*obj,
mrb_sym
sym
);
45
void
mrb_obj_iv_ifnone
(
mrb_state
*mrb,
struct
RObject
*obj,
mrb_sym
sym
,
mrb_value
v);
46
mrb_value
mrb_iv_get
(
mrb_state
*mrb,
mrb_value
obj,
mrb_sym
sym
);
47
void
mrb_iv_set
(
mrb_state
*mrb,
mrb_value
obj,
mrb_sym
sym
,
mrb_value
v);
48
mrb_bool
mrb_iv_defined
(
mrb_state
*,
mrb_value
,
mrb_sym
);
49
mrb_value
mrb_iv_remove
(
mrb_state
*mrb,
mrb_value
obj,
mrb_sym
sym
);
50
void
mrb_iv_copy
(
mrb_state
*mrb,
mrb_value
dst,
mrb_value
src);
51
int
mrb_const_defined_at
(
mrb_state
*mrb,
struct
RClass
*klass,
mrb_sym
id
);
52
mrb_value
mrb_mod_constants
(
mrb_state
*mrb,
mrb_value
mod);
53
mrb_value
mrb_f_global_variables
(
mrb_state
*mrb,
mrb_value
self
);
54
mrb_value
mrb_gv_get
(
mrb_state
*mrb,
mrb_sym
sym
);
55
void
mrb_gv_set
(
mrb_state
*mrb,
mrb_sym
sym
,
mrb_value
val);
56
mrb_value
mrb_obj_instance_variables
(
mrb_state
*,
mrb_value
);
57
mrb_value
mrb_obj_iv_inspect
(
mrb_state
*,
struct
RObject
*);
58
mrb_sym
mrb_class_sym
(
mrb_state
*mrb,
struct
RClass
*c,
struct
RClass
*outer);
59
mrb_value
mrb_mod_class_variables
(
mrb_state
*,
mrb_value
);
60
mrb_value
mrb_mod_cv_get
(
mrb_state
*mrb,
struct
RClass
* c,
mrb_sym
sym
);
61
mrb_value
mrb_cv_get
(
mrb_state
*mrb,
mrb_value
mod,
mrb_sym
sym
);
62
void
mrb_mod_cv_set
(
mrb_state
*mrb,
struct
RClass
* c,
mrb_sym
sym
,
mrb_value
v);
63
void
mrb_cv_set
(
mrb_state
*mrb,
mrb_value
mod,
mrb_sym
sym
,
mrb_value
v);
64
mrb_bool
mrb_mod_cv_defined
(
mrb_state
*mrb,
struct
RClass
* c,
mrb_sym
sym
);
65
mrb_bool
mrb_cv_defined
(
mrb_state
*mrb,
mrb_value
mod,
mrb_sym
sym
);
66
67
/* GC functions */
68
void
mrb_gc_mark_gv
(
mrb_state
*);
69
void
mrb_gc_free_gv
(
mrb_state
*);
70
void
mrb_gc_mark_iv
(
mrb_state
*,
struct
RObject
*);
71
size_t
mrb_gc_mark_iv_size
(
mrb_state
*,
struct
RObject
*);
72
void
mrb_gc_free_iv
(
mrb_state
*,
struct
RObject
*);
73
74
#if defined(__cplusplus)
75
}
/* extern "C" { */
76
#endif
77
78
#endif
/* MRUBY_VARIABLE_H */
Generated on Sun Nov 10 2013 09:49:05 for Groonga 3.0.9 Source Code Document by
1.8.1.2