diff options
author | John MacFarlane <jgm@berkeley.edu> | 2014-11-30 09:36:53 -0800 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2014-11-30 09:36:53 -0800 |
commit | e7f6e01fd3a6ad6bbfdd76ea1f8c4eba718ae9b0 (patch) | |
tree | a12f98d6dea2fd5bb5272a3fcf5973ac861a2f86 /src/blocks.c | |
parent | 2f1e4e0edb581927b25aeba9972ed71b4605a2ba (diff) |
Renamed cmark_parser_push -> cmark_parser_feed.
Diffstat (limited to 'src/blocks.c')
-rw-r--r-- | src/blocks.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/blocks.c b/src/blocks.c index dbfb21e..5d11710 100644 --- a/src/blocks.c +++ b/src/blocks.c @@ -19,7 +19,7 @@ #define peek_at(i, n) (i)->data[n] static void -S_parser_push(cmark_parser *parser, const unsigned char *buffer, size_t len, +S_parser_feed(cmark_parser *parser, const unsigned char *buffer, size_t len, bool eof); static void @@ -434,7 +434,7 @@ cmark_node *cmark_parse_file(FILE *f) while ((bytes = fread(buffer, 1, sizeof(buffer), f)) > 0) { bool eof = bytes < sizeof(buffer); - S_parser_push(parser, buffer, bytes, eof); + S_parser_feed(parser, buffer, bytes, eof); } document = cmark_parser_finish(parser); @@ -447,7 +447,7 @@ cmark_node *cmark_parse_document(const char *buffer, size_t len) cmark_parser *parser = cmark_parser_new(); cmark_node *document; - S_parser_push(parser, (const unsigned char *)buffer, len, true); + S_parser_feed(parser, (const unsigned char *)buffer, len, true); document = cmark_parser_finish(parser); cmark_parser_free(parser); @@ -455,13 +455,13 @@ cmark_node *cmark_parse_document(const char *buffer, size_t len) } void -cmark_parser_push(cmark_parser *parser, const char *buffer, size_t len) +cmark_parser_feed(cmark_parser *parser, const char *buffer, size_t len) { - S_parser_push(parser, (const unsigned char *)buffer, len, false); + S_parser_feed(parser, (const unsigned char *)buffer, len, false); } static void -S_parser_push(cmark_parser *parser, const unsigned char *buffer, size_t len, +S_parser_feed(cmark_parser *parser, const unsigned char *buffer, size_t len, bool eof) { const unsigned char *end = buffer + len; |