diff options
author | Nick Wellnhofer <wellnhofer@aevum.de> | 2020-01-18 23:12:37 +0100 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2020-01-23 08:25:54 -0800 |
commit | b237924585e61532ada774bf9e70eadff00666dc (patch) | |
tree | 4355e86e19736d1eeffd905cdbc2d2b6ea7a6430 /api_test/main.c | |
parent | 3acbdf0965859c55fa36c65a4c0e17e92012687c (diff) |
Use C string instead of chunk for link URL and title
Use zero-terminated C strings instead of cmark_chunks without storing
the length. This introduces a few additional strlen computations,
but overhead should be low.
Allows to reduce size of struct cmark_node later.
Diffstat (limited to 'api_test/main.c')
-rw-r--r-- | api_test/main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/api_test/main.c b/api_test/main.c index 9b7ba41..e7fccbd 100644 --- a/api_test/main.c +++ b/api_test/main.c @@ -915,7 +915,7 @@ static void source_pos(test_batch_runner *runner) { " </heading>\n" " <paragraph sourcepos=\"3:1-4:42\">\n" " <text sourcepos=\"3:1-3:14\" xml:space=\"preserve\">Hello “ </text>\n" - " <link sourcepos=\"3:15-3:37\" destination=\"http://www.google.com\" title=\"\">\n" + " <link sourcepos=\"3:15-3:37\" destination=\"http://www.google.com\">\n" " <text sourcepos=\"3:16-3:36\" xml:space=\"preserve\">http://www.google.com</text>\n" " </link>\n" " <softbreak />\n" |