From: hniksic Date: Wed, 22 Nov 2000 17:00:31 +0000 (-0800) Subject: [svn] Make sure xfree is #define'd in standalone mode in files that X-Git-Tag: v1.13~2361 X-Git-Url: http://sjero.net/git/?p=wget;a=commitdiff_plain;h=d8c9ce30aaefe1b89ba611ca91d72a2285395610 [svn] Make sure xfree is #define'd in standalone mode in files that support one. --- diff --git a/src/hash.c b/src/hash.c index 1f730f2d..42159112 100644 --- a/src/hash.c +++ b/src/hash.c @@ -32,6 +32,7 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ #ifdef STANDALONE # define xmalloc malloc # define xrealloc realloc +# define xfree free #endif /* INTERFACE: diff --git a/src/html-parse.c b/src/html-parse.c index 0b42746f..bbff6e46 100644 --- a/src/html-parse.c +++ b/src/html-parse.c @@ -99,6 +99,7 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ #ifdef STANDALONE # define xmalloc malloc # define xrealloc realloc +# define xfree free #endif /* STANDALONE */ /* Pool support. For efficiency, map_html_tags() stores temporary diff --git a/src/netrc.c b/src/netrc.c index 432a8c17..4177b730 100644 --- a/src/netrc.c +++ b/src/netrc.c @@ -143,6 +143,7 @@ search_netrc (const char *host, const char **acc, const char **passwd, #ifdef STANDALONE /* Normally, these functions would be defined by your package. */ # define xmalloc malloc +# define xfree free # define xstrdup strdup /* The function reads a whole line. It reads the line realloc-ing the