api_v3: document: actually rename the API

This commit is contained in:
Xavier Mendez 2014-02-06 20:16:23 +01:00
parent 419422bd9a
commit 1cc59936dc
4 changed files with 326 additions and 326 deletions

View file

@ -16,7 +16,7 @@ main(int argc, char **argv)
FILE *in = stdin;
hoedown_renderer *renderer;
hoedown_markdown *markdown;
hoedown_document *document;
/* opening the file if given from the command line */
if (argc > 1) {
@ -57,11 +57,11 @@ main(int argc, char **argv)
}
renderer = hoedown_html_renderer_new(0, 0);
markdown = hoedown_markdown_new(0, 16, renderer);
document = hoedown_document_new(0, 16, renderer);
hoedown_markdown_render(ob, ib->data, ib->size, markdown);
hoedown_document_render(ob, ib->data, ib->size, document);
hoedown_markdown_free(markdown);
hoedown_document_free(document);
hoedown_html_renderer_free(renderer);
/* writing the result to stdout */

View file

@ -15,6 +15,9 @@ EXPORTS
hoedown_buffer_reset
hoedown_buffer_slurp
hoedown_buffer_printf
hoedown_document_new
hoedown_document_render
hoedown_document_free
hoedown_escape_html
hoedown_escape_href
hoedown_html_is_tag
@ -22,13 +25,10 @@ EXPORTS
hoedown_html_toc_renderer_new
hoedown_html_renderer_free
hoedown_html_smartypants
hoedown_markdown_new
hoedown_markdown_render
hoedown_markdown_free
hoedown_version
hoedown_stack_free
hoedown_stack_grow
hoedown_stack_new
hoedown_stack_push
hoedown_stack_pop
hoedown_stack_top
hoedown_version

File diff suppressed because it is too large Load diff

View file

@ -98,9 +98,9 @@ struct hoedown_renderer {
typedef struct hoedown_renderer hoedown_renderer;
struct hoedown_markdown;
struct hoedown_document;
typedef struct hoedown_markdown hoedown_markdown;
typedef struct hoedown_document hoedown_document;
/*********
* FLAGS *
@ -114,17 +114,17 @@ typedef struct hoedown_markdown hoedown_markdown;
* EXPORTED FUNCTIONS *
**********************/
extern hoedown_markdown *
hoedown_markdown_new(
extern hoedown_document *
hoedown_document_new(
unsigned int extensions,
size_t max_nesting,
const hoedown_renderer *renderer);
extern void
hoedown_markdown_render(hoedown_buffer *ob, const uint8_t *document, size_t doc_size, hoedown_markdown *md);
hoedown_document_render(hoedown_buffer *ob, const uint8_t *document, size_t doc_size, hoedown_document *doc);
extern void
hoedown_markdown_free(hoedown_markdown *md);
hoedown_document_free(hoedown_document *doc);
extern void
hoedown_version(int *major, int *minor, int *revision);