Skip to content

Commit adc1427

Browse files
committed
libcore: Expose glues to core
1 parent f6d50d8 commit adc1427

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

src/libcore/sys.rs

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
//! Misc low level stuff
22
33
use cmp::{Eq, Ord};
4+
use libc::c_void;
45

6+
export FreeGlue;
57
export TypeDesc;
68
export Closure;
79
export get_type_desc;
@@ -12,10 +14,15 @@ export refcount;
1214
export log_str;
1315
export shape_eq, shape_lt, shape_le;
1416

17+
type FreeGlue = fn(*TypeDesc, *c_void);
18+
1519
// Corresponds to runtime type_desc type
1620
enum TypeDesc = {
1721
size: uint,
18-
align: uint
22+
align: uint,
23+
take_glue: uint,
24+
drop_glue: uint,
25+
free_glue: uint
1926
// Remaining fields not listed
2027
};
2128

0 commit comments

Comments
 (0)