X-Git-Url: http://sjero.net/git/?a=blobdiff_plain;f=src%2Fwget.h;h=d87dfcac85198b4b5f0f305c703029fba68d080d;hb=123f5c39669abc055987d69a311785c861494c87;hp=566c8ae44ec7bc767efcc0c5b07adbfb6f2262b8;hpb=bc8f473272ec29b0d0021dbcab6ac561ddc6249d;p=wget diff --git a/src/wget.h b/src/wget.h index 566c8ae4..d87dfcac 100644 --- a/src/wget.h +++ b/src/wget.h @@ -67,6 +67,19 @@ as that of the covered work. */ variables. -- explanation partly taken from GNU make. */ #define N_(string) string +#if ! ENABLE_NLS +# undef HAVE_WCHAR_H +# undef HAVE_WCWIDTH +# undef HAVE_MBTOWC +#endif /* not ENABLE_NLS */ + +#if HAVE_WCWIDTH && HAVE_MBTOWC +# define USE_NLS_PROGRESS_BAR 1 +#else +/* Just to be a little paranoid about it. */ +# undef USE_NLS_PROGRESS_BAR +#endif + /* I18N NOTE: You will notice that none of the DEBUGP messages are marked as translatable. This is intentional, for a few reasons: @@ -195,11 +208,16 @@ typedef double SUM_SIZE_INT; #include "options.h" /* Everything uses this, so include them here directly. */ -#include "xmalloc.h" +#include +#include "xalloc.h" /* Likewise for logging functions. */ #include "log.h" - + +/* Likewise for quoting functions. */ +#include "quote.h" +#include "quotearg.h" + /* Useful macros used across the code: */ /* The number of elements in an array. For example: @@ -299,7 +317,8 @@ enum HEAD_ONLY = 0x0004, /* only send the HEAD request */ SEND_NOCACHE = 0x0008, /* send Pragma: no-cache directive */ ACCEPTRANGES = 0x0010, /* Accept-ranges header was found */ - ADDED_HTML_EXTENSION = 0x0020 /* added ".html" extension due to -E */ + ADDED_HTML_EXTENSION = 0x0020, /* added ".html" extension due to -E */ + TEXTCSS = 0x0040 /* document is of type text/css */ }; /* Universal error type -- used almost everywhere. Error reporting of