Skip to content

Commit

Permalink
Remove all usage of hoedown_buffer_puts
Browse files Browse the repository at this point in the history
  • Loading branch information
GuillaumeGomez committed Aug 8, 2017
1 parent d0916c5 commit ec0ca3a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/librustdoc/html/markdown.rs
Expand Up @@ -528,7 +528,6 @@ extern {
fn hoedown_document_free(md: *mut hoedown_document);

fn hoedown_buffer_new(unit: libc::size_t) -> *mut hoedown_buffer;
fn hoedown_buffer_puts(b: *mut hoedown_buffer, c: *const libc::c_char);
fn hoedown_buffer_free(b: *mut hoedown_buffer);
fn hoedown_buffer_put(b: *mut hoedown_buffer, c: *const u8, len: libc::size_t);
}
Expand Down Expand Up @@ -629,7 +628,7 @@ pub fn render(w: &mut fmt::Formatter,
level: libc::c_int, data: *const hoedown_renderer_data,
_: libc::size_t) {
// hoedown does this, we may as well too
unsafe { hoedown_buffer_puts(ob, "\n\0".as_ptr() as *const _); }
unsafe { hoedown_buffer_put(ob, "\n".as_ptr(), 1); }

// Extract the text provided
let s = if text.is_null() {
Expand Down

0 comments on commit ec0ca3a

Please sign in to comment.