Uh oh!
There was an error while loading. Please reload this page.
forked from ruby/ruby
- Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconstant.h
More file actions
Latest commit
37 lines (29 loc) · 1.13 KB
/
Copy pathconstant.h
File metadata and controls
37 lines (29 loc) · 1.13 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
/**********************************************************************
constant.h -
$Author$
created at: Sun Nov 15 00:09:33 2009
Copyright (C) 2009 Yusuke Endoh
**********************************************************************/
#ifndefCONSTANT_H
#defineCONSTANT_H
typedefenum {
CONST_PUBLIC=0x00,
CONST_PRIVATE=0x01
} rb_const_flag_t;
typedefstructrb_const_entry_struct {
rb_const_flag_tflag;
intline;
constVALUEvalue; /* should be mark */
constVALUEfile; /* should be mark */
} rb_const_entry_t;
VALUErb_mod_private_constant(intargc, constVALUE*argv, VALUEobj);
VALUErb_mod_public_constant(intargc, constVALUE*argv, VALUEobj);
voidrb_free_const_table(st_table*tbl);
VALUErb_public_const_get(VALUEklass, IDid);
VALUErb_public_const_get_at(VALUEklass, IDid);
VALUErb_public_const_get_from(VALUEklass, IDid);
intrb_public_const_defined(VALUEklass, IDid);
intrb_public_const_defined_at(VALUEklass, IDid);
intrb_public_const_defined_from(VALUEklass, IDid);
rb_const_entry_t*rb_const_lookup(VALUEklass, IDid);
#endif/* CONSTANT_H */