]> sjero.net Git - wget/commitdiff
[svn] Fix compilation problem on non-Gcc compilers.
authorhniksic <devnull@localhost>
Fri, 3 Oct 2003 16:11:09 +0000 (09:11 -0700)
committerhniksic <devnull@localhost>
Fri, 3 Oct 2003 16:11:09 +0000 (09:11 -0700)
src/ChangeLog
src/html-parse.c

index c65bd6e869e7b5231244763e02816ea7f1ab100c..3b55ae253d9326290da769299a3346e97b32ac09 100644 (file)
@@ -1,3 +1,8 @@
+2003-10-03  Hrvoje Niksic  <hniksic@xemacs.org>
+
+       * html-parse.c (convert_and_copy): Move variable declarations
+       before statements.
+
 2003-10-02  Gisle Vanem  <giva@bgnett.no>
         
         * mswindows.c (run_with_timeout): For Windows: Run the 'fun' in a
index 16b88d0f617ebee5e51ffed341d2ed35b4e5de49..a5fab446edf7a0ef04c6d399369175a94286f6a6 100644 (file)
@@ -174,7 +174,7 @@ struct pool {
    already has room to accomodate SIZE bytes of data, this is a no-op.  */
 
 #define POOL_GROW(p, increase)                                 \
-  GROW_ARRAY ((p)->contents, (p)->size, (p)->tail + increase,  \
+  GROW_ARRAY ((p)->contents, (p)->size, (p)->tail + (increase),        \
              (p)->resized, char)
 
 /* Append text in the range [beg, end) to POOL.  No zero-termination
@@ -293,9 +293,11 @@ convert_and_copy (struct pool *pool, const char *beg, const char *end, int flags
         It's safe (and necessary) to grow the pool in advance because
         processing the entities can only *shorten* the string, it can
         never lengthen it.  */
-      POOL_GROW (pool, end - beg);
       const char *from = beg;
-      char *to = pool->contents + pool->tail;
+      char *to;
+
+      POOL_GROW (pool, end - beg);
+      to = pool->contents + pool->tail;
 
       while (from < end)
        {