Skip to content

Commit 7affc42

Browse files
committed
fix renderer struct
1 parent 04f39f8 commit 7affc42

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

src/librustdoc/html/markdown.rs

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,9 @@ static HOEDOWN_EXTENSIONS: libc::c_uint =
6565
HOEDOWN_EXT_FOOTNOTES;
6666

6767
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);
6871

6972
#[repr(C)]
7073
struct 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

0 commit comments

Comments
 (0)