File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 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 =
6565 HOEDOWN_EXT_FOOTNOTES ;
6666
6767type 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 ) ;
6871
6972#[ repr( C ) ]
7073struct hoedown_renderer {
@@ -110,9 +113,9 @@ struct hoedown_buffer {
110113 size : libc:: size_t ,
111114 asize : libc:: size_t ,
112115 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 > ,
116119}
117120
118121// hoedown FFI
You can’t perform that action at this time.
0 commit comments