From 019128a8e7f74344cc03e001e8b7286b42a03002 Mon Sep 17 00:00:00 2001 From: Nick Wellnhofer Date: Sun, 7 Jun 2015 13:15:07 +0200 Subject: Switch cmark_markdown_to_html over to size_t --- man/man3/cmark.3 | 4 ++-- src/cmark.c | 2 +- src/cmark.h | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/man/man3/cmark.3 b/man/man3/cmark.3 index 5b68ecb..82c34cd 100644 --- a/man/man3/cmark.3 +++ b/man/man3/cmark.3 @@ -1,4 +1,4 @@ -.TH cmark 3 "March 21, 2015" "LOCAL" "Library Functions Manual" +.TH cmark 3 "June 07, 2015" "LOCAL" "Library Functions Manual" .SH NAME .PP @@ -10,7 +10,7 @@ DESCRIPTION Simple Interface .PP -\fIchar *\f[] \fBcmark_markdown_to_html\f[](\fIconst char *text\f[], \fIint len\f[], \fIint options\f[]) +\fIchar *\f[] \fBcmark_markdown_to_html\f[](\fIconst char *text\f[], \fIsize_t len\f[], \fIint options\f[]) .PP Convert \f[I]text\f[] (assumed to be a UTF\-8 encoded string with length diff --git a/src/cmark.c b/src/cmark.c index 79ceabf..35765b1 100644 --- a/src/cmark.c +++ b/src/cmark.c @@ -9,7 +9,7 @@ const int cmark_version = CMARK_VERSION; const char cmark_version_string[] = CMARK_VERSION_STRING; -char *cmark_markdown_to_html(const char *text, int len, int options) +char *cmark_markdown_to_html(const char *text, size_t len, int options) { cmark_node *doc; char *result; diff --git a/src/cmark.h b/src/cmark.h index 84c6f76..d86e13e 100644 --- a/src/cmark.h +++ b/src/cmark.h @@ -24,7 +24,7 @@ extern "C" { * UTF-8-encoded string. */ CMARK_EXPORT -char *cmark_markdown_to_html(const char *text, int len, int options); +char *cmark_markdown_to_html(const char *text, size_t len, int options); /** ## Node Structure */ -- cgit v1.2.3