File tree 1 file changed +6
-3
lines changed
1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -65,6 +65,9 @@ static HOEDOWN_EXTENSIONS: libc::c_uint =
65
65
HOEDOWN_EXT_FOOTNOTES ;
66
66
67
67
type hoedown_document = libc:: c_void ; // this is opaque to us
68
+ type hoedown_realloc_callback = extern "C" fn ( * mut libc:: c_void , libc:: size_t )
69
+ -> * mut libc:: size_t ;
70
+ type hoedown_free_callback = extern "C" fn ( * mut libc:: c_void ) ;
68
71
69
72
#[ repr( C ) ]
70
73
struct hoedown_renderer {
@@ -110,9 +113,9 @@ struct hoedown_buffer {
110
113
size : libc:: size_t ,
111
114
asize : libc:: size_t ,
112
115
unit : libc:: size_t ,
113
- data_realloc : * mut Option < extern "C" fn ( * mut libc :: c_void , libc :: size_t ) > ,
114
- data_free : Option < extern "C" fn ( * mut libc :: c_void ) > ,
115
- buffer_free : Option < extern "C" fn ( * mut libc :: c_void ) > ,
116
+ data_realloc : Option < hoedown_realloc_callback > ,
117
+ data_free : Option < hoedown_free_callback > ,
118
+ buffer_free : Option < hoedown_free_callback > ,
116
119
}
117
120
118
121
// hoedown FFI
You can’t perform that action at this time.
0 commit comments