+2003-10-08 Hrvoje Niksic <hniksic@xemacs.org>
+
+ * configure.in: Renamed DEBUG to ENABLE_DEBUG.
+
2003-10-04 Hrvoje Niksic <hniksic@xemacs.org>
* libtool.m4: New file with contents imported from libtool.
AC_ARG_ENABLE(debug,
[ --disable-debug disable support for debugging output],
-DEBUG=$enableval, DEBUG=yes)
-test x"${DEBUG}" = xyes && AC_DEFINE(DEBUG)
+ENABLE_DEBUG=$enableval, ENABLE_DEBUG=yes)
+test x"${ENABLE_DEBUG}" = xyes && AC_DEFINE(ENABLE_DEBUG)
wget_need_md5=no
+2003-10-08 Hrvoje Niksic <hniksic@xemacs.org>
+
+ * config.h.in: Renamed DEBUG to ENABLE_DEBUG. ENABLE_DEBUG is, I
+ think, a better name, because it implies that debugging output is
+ merely possible, not "on by default", as might be construed from
+ just DEBUG.
+
2003-10-08 Hrvoje Niksic <hniksic@xemacs.org>
* ftp.c (has_insecure_name_p): Define it here.
#undef USE_DIGEST
/* Define if you want the debug output support compiled in. */
-#undef DEBUG
+#undef ENABLE_DEBUG
/* Define if you have sys/time.h header. */
#undef HAVE_SYS_TIME_H
++al->refcount;
hash_table_put (host_name_addresses_map, xstrdup_lower (host), al);
-#ifdef DEBUG
+#ifdef ENABLE_DEBUG
if (opt.debug)
{
int i;
hs->error = xstrdup (error);
if ((statcode != -1)
-#ifdef DEBUG
+#ifdef ENABLE_DEBUG
&& !opt.debug
#endif
)
{ "convertlinks", &opt.convert_links, cmd_boolean },
{ "cookies", &opt.cookies, cmd_boolean },
{ "cutdirs", &opt.cut_dirs, cmd_number },
-#ifdef DEBUG
+#ifdef ENABLE_DEBUG
{ "debug", &opt.debug, cmd_boolean },
#endif
{ "deleteafter", &opt.delete_after, cmd_boolean },
while (!done);
}
-#ifdef DEBUG
+#ifdef ENABLE_DEBUG
/* The same as logprintf(), but does anything only if opt.debug is
non-zero. */
void
while (!done);
}
}
-#endif /* DEBUG */
+#endif /* ENABLE_DEBUG */
\f
/* Open FILE and set up a logging stream. If FILE cannot be opened,
exit with status of 1. */
setoptval ("continue", "on");
break;
case 'd':
-#ifdef DEBUG
+#ifdef ENABLE_DEBUG
setoptval ("debug", "on");
-#else /* not DEBUG */
+#else
fprintf (stderr, _("%s: debug support not compiled in.\n"),
exec_name);
-#endif /* not DEBUG */
+#endif
break;
case 'E':
setoptval ("htmlextension", "on");
int save_headers; /* Do we save headers together with
file? */
-#ifdef DEBUG
+#ifdef ENABLE_DEBUG
int debug; /* Debugging on/off */
-#endif /* DEBUG */
+#endif
int timestamping; /* Whether to use time-stamping. */
#ifndef WGET_H
#define WGET_H
-#ifndef DEBUG
-# define NDEBUG /* To kill off assertions */
-#endif /* not DEBUG */
+/* Disable assertions when debug support is not compiled in. */
+#ifndef ENABLE_DEBUG
+# define NDEBUG
+#endif
/* Define this if you want primitive but extensive malloc debugging.
It will make Wget extremely slow, so only do it in development
/* No-op version of gettext, used for constant strings. */
#define N_(string) (string)
-/* I18N NOTE: You will notice that none of the DEBUG messages are
+/* I18N NOTE: You will notice that none of the DEBUGP messages are
marked as translatable. This is intentional, for a few reasons:
1) The debug messages are not meant for the users to look at, but
#define DO_NOTHING do {} while (0)
/* Print X if debugging is enabled; a no-op otherwise. */
-#ifdef DEBUG
+#ifdef ENABLE_DEBUG
# define DEBUGP(x) do { if (opt.debug) { debug_logprintf x; } } while (0)
-#else /* not DEBUG */
+#else /* not ENABLE_DEBUG */
# define DEBUGP(x) DO_NOTHING
-#endif /* not DEBUG */
+#endif /* not ENABLE_DEBUG */
/* Make gcc check for the format of logmsg() and debug_logmsg(). */
#ifdef __GNUC__
LD = link
CFLAGS = /nologo /MT /W0 /O2
-#DEBUGCF = /DDEBUG /Zi /Od #/Fd /FR
+#DEBUGCF = /DENABLE_DEBUG /Zi /Od #/Fd /FR
CPPFLAGS =
DEFS = /DWINDOWS /D_CONSOLE /DHAVE_CONFIG_H /DSYSTEM_WGETRC=\"wgetrc\"
LDFLAGS = /subsystem:console /incremental:no /warn:3