From b3db463e0d912c73f3093f69cfe8a3f83b242f0f Mon Sep 17 00:00:00 2001 From: Sebastian Pipping Date: Wed, 23 Aug 2017 16:02:40 +0200 Subject: [PATCH] xmlparse.c|xmltok.c: Turn some comments to c89 style --- expat/lib/xmlparse.c | 4 ++-- expat/lib/xmltok.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/expat/lib/xmlparse.c b/expat/lib/xmlparse.c index 28b7a898..7e9ddff5 100644 --- a/expat/lib/xmlparse.c +++ b/expat/lib/xmlparse.c @@ -7014,8 +7014,8 @@ poolGrow(STRING_POOL *pool) int blockSize = (int)((unsigned)(pool->end - pool->start)*2U); size_t bytesToAllocate; - // NOTE: Needs to be calculated prior to calling `realloc` - // to avoid dangling pointers: + /* NOTE: Needs to be calculated prior to calling `realloc` + to avoid dangling pointers: */ const ptrdiff_t offsetInsideBlock = pool->ptr - pool->start; if (blockSize < 0) { diff --git a/expat/lib/xmltok.c b/expat/lib/xmltok.c index f6c7ecd5..46924c3a 100644 --- a/expat/lib/xmltok.c +++ b/expat/lib/xmltok.c @@ -31,7 +31,7 @@ */ #include -#include // memcpy +#include /* memcpy */ #if defined(_MSC_VER) && (_MSC_VER <= 1700) /* for vs2012/11.0/1700 and earlier Visual Studio compilers */ @@ -429,7 +429,7 @@ utf8_toUtf8(const ENCODING *UNUSED_P(enc), *toP += bytesToCopy; } - if (output_exhausted) // needs to go first + if (output_exhausted) /* needs to go first */ return XML_CONVERT_OUTPUT_EXHAUSTED; else if (input_incomplete) return XML_CONVERT_INPUT_INCOMPLETE; -- 2.40.0