mirror of
https://github.com/moparisthebest/wget
synced 2024-07-03 16:38:41 -04:00
[svn] Make sure xfree is #define'd in standalone mode in files that
support one.
This commit is contained in:
parent
2ffb47eabf
commit
d8c9ce30aa
@ -32,6 +32,7 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
|
|||||||
#ifdef STANDALONE
|
#ifdef STANDALONE
|
||||||
# define xmalloc malloc
|
# define xmalloc malloc
|
||||||
# define xrealloc realloc
|
# define xrealloc realloc
|
||||||
|
# define xfree free
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* INTERFACE:
|
/* INTERFACE:
|
||||||
|
@ -99,6 +99,7 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
|
|||||||
#ifdef STANDALONE
|
#ifdef STANDALONE
|
||||||
# define xmalloc malloc
|
# define xmalloc malloc
|
||||||
# define xrealloc realloc
|
# define xrealloc realloc
|
||||||
|
# define xfree free
|
||||||
#endif /* STANDALONE */
|
#endif /* STANDALONE */
|
||||||
|
|
||||||
/* Pool support. For efficiency, map_html_tags() stores temporary
|
/* Pool support. For efficiency, map_html_tags() stores temporary
|
||||||
|
@ -143,6 +143,7 @@ search_netrc (const char *host, const char **acc, const char **passwd,
|
|||||||
#ifdef STANDALONE
|
#ifdef STANDALONE
|
||||||
/* Normally, these functions would be defined by your package. */
|
/* Normally, these functions would be defined by your package. */
|
||||||
# define xmalloc malloc
|
# define xmalloc malloc
|
||||||
|
# define xfree free
|
||||||
# define xstrdup strdup
|
# define xstrdup strdup
|
||||||
|
|
||||||
/* The function reads a whole line. It reads the line realloc-ing the
|
/* The function reads a whole line. It reads the line realloc-ing the
|
||||||
|
Loading…
Reference in New Issue
Block a user