From d8c9ce30aaefe1b89ba611ca91d72a2285395610 Mon Sep 17 00:00:00 2001 From: hniksic Date: Wed, 22 Nov 2000 09:00:31 -0800 Subject: [PATCH] [svn] Make sure xfree is #define'd in standalone mode in files that support one. --- src/hash.c | 1 + src/html-parse.c | 1 + src/netrc.c | 1 + 3 files changed, 3 insertions(+) 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