]> granicus.if.org Git - libexpat/commitdiff
xmlparse.c|xmltok.c: Turn some comments to c89 style
authorSebastian Pipping <sebastian@pipping.org>
Wed, 23 Aug 2017 14:02:40 +0000 (16:02 +0200)
committerSebastian Pipping <sebastian@pipping.org>
Wed, 23 Aug 2017 15:38:24 +0000 (17:38 +0200)
expat/lib/xmlparse.c
expat/lib/xmltok.c

index 28b7a898c3824796c27d4431ae482dd01e94120b..7e9ddff58c4a50535bb6dce8b6364753d5c98e02 100644 (file)
@@ -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) {
index f6c7ecd5c710c8118094eb1796f123bad9cfe5f7..46924c3a0ffad2de391565f0126746da3840d6ad 100644 (file)
@@ -31,7 +31,7 @@
 */
 
 #include <stddef.h>
-#include <string.h>  // memcpy
+#include <string.h>  /* 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;