From: Sebastian Pipping Date: Wed, 23 Aug 2017 14:02:40 +0000 (+0200) Subject: xmlparse.c|xmltok.c: Turn some comments to c89 style X-Git-Tag: R_2_2_5~35^2~6 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b3db463e0d912c73f3093f69cfe8a3f83b242f0f;p=libexpat xmlparse.c|xmltok.c: Turn some comments to c89 style --- 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;