mirror of
https://github.com/moparisthebest/wget
synced 2024-07-03 16:38:41 -04:00
[svn] Fix compilation problem on non-Gcc compilers.
This commit is contained in:
parent
5a905bcec3
commit
87275db136
@ -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>
|
2003-10-02 Gisle Vanem <giva@bgnett.no>
|
||||||
|
|
||||||
* mswindows.c (run_with_timeout): For Windows: Run the 'fun' in a
|
* mswindows.c (run_with_timeout): For Windows: Run the 'fun' in a
|
||||||
|
@ -174,7 +174,7 @@ struct pool {
|
|||||||
already has room to accomodate SIZE bytes of data, this is a no-op. */
|
already has room to accomodate SIZE bytes of data, this is a no-op. */
|
||||||
|
|
||||||
#define POOL_GROW(p, increase) \
|
#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)
|
(p)->resized, char)
|
||||||
|
|
||||||
/* Append text in the range [beg, end) to POOL. No zero-termination
|
/* 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
|
It's safe (and necessary) to grow the pool in advance because
|
||||||
processing the entities can only *shorten* the string, it can
|
processing the entities can only *shorten* the string, it can
|
||||||
never lengthen it. */
|
never lengthen it. */
|
||||||
POOL_GROW (pool, end - beg);
|
|
||||||
const char *from = 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)
|
while (from < end)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user