]> sjero.net Git - wget/commitdiff
[svn]
authormtortonesi <devnull@localhost>
Fri, 11 Feb 2005 21:34:42 +0000 (13:34 -0800)
committermtortonesi <devnull@localhost>
Fri, 11 Feb 2005 21:34:42 +0000 (13:34 -0800)
Renamed src/string.{c,h} to src/string_t.{c,h} to solve a conflict with the
string.h standard C library header file.

Fixed a bug and triggered escape of backslashes in string_t.c to avoid
ambiguities in the result string.

Added Simone Piunno as new contributor.

12 files changed:
doc/ChangeLog
doc/wget.texi
src/ChangeLog
src/Makefile.in
src/string.c [deleted file]
src/string.h [deleted file]
windows/ChangeLog
windows/Makefile.src
windows/Makefile.src.bor
windows/Makefile.src.mingw
windows/Makefile.watcom
windows/wget.dep

index e67bcb33c2a69a6af812efcea76945f964a96889..2a854d0d96b4c0f6d31709c55fa84e747575cd10 100644 (file)
@@ -1,3 +1,7 @@
+2005-02-11  Mauro Tortonesi  <mauro@ferrara.linux.it>
+       
+       * wget.texi: Added Simone Piunno as new contributor.
+       
 2005-01-01  Mauro Tortonesi  <mauro@ferrara.linux.it>
 
        * wget.texi: Updated copyright information, added new contributors.
index abe821c5eb24303bcf608c83816573af73897a17..db7b10d8a86a90bd966bb0d67f93e564383e008b 100644 (file)
@@ -3366,7 +3366,8 @@ YAMAZAKI Makoto,
 Leonid Petrov,
 Hans-Andreas Engel,
 Ulf Harnhammar,
-Jan Minar.
+Jan Minar,
+Simone Piunno.
 
 Apologies to all who I accidentally left out, and many thanks to all the
 subscribers of the Wget mailing list.
index 0c37ecf8ee696a23240a11489261c7c04fa0bbe7..403213659454aba1c0d1887db5b30226569e59d7 100644 (file)
@@ -1,3 +1,20 @@
+2005-02-11  Mauro Tortonesi <mauro@ferrara.linux.it>
+       
+       * string_t.c: Fixed a bug in do_escape and triggered escape of
+       backslashes in string_escape to avoid ambiguities in the result
+       string.
+       
+2005-02-10  Mauro Tortonesi <mauro@ferrara.linux.it>
+
+       * string.h: Renamed to string_t.h to fix a compilation conflict 
+       with the string.h header in the standard C library.
+       
+       * string.c: Renamed to string_t.c for consistency with string.h.
+       
+       * string_t.c: Ditto.
+
+       * string_t.h: Ditto.
+       
 2004-12-31  Mauro Tortonesi <mauro@ferrara.linux.it>
 
        * string.c: New file.
index 1466ed397c8f21c11b8e9d8e03380fb0a04f2072..6f955b4887704704db62d7f0250edc486917f70e 100644 (file)
@@ -77,7 +77,7 @@ OBJ = $(ALLOCA) cmpt$o connect$o convert$o cookies$o              \
       host$o html-parse$o html-url$o http$o init$o      \
       log$o main$o $(MD5_OBJ) netrc$o progress$o recur$o   \
       res$o retr$o safe-ctype$o snprintf$o $(SSL_OBJ) url$o       \
-      utils$o version$o xmalloc$o string$o
+      utils$o version$o xmalloc$o string_t$o
 
 .SUFFIXES:
 .SUFFIXES: .c .o ._c ._o
@@ -192,7 +192,7 @@ retr$o: wget.h sysdep.h options.h safe-ctype.h utils.h retr.h url.h \
        recur.h ftp.h host.h connect.h hash.h
 safe-ctype$o: safe-ctype.h
 snprintf$o: safe-ctype.h
-string$o: wget.h xmalloc.h
+string_t$o: wget.h xmalloc.h
 url$o: wget.h sysdep.h options.h safe-ctype.h utils.h url.h host.h hash.h
 utils$o: wget.h sysdep.h options.h safe-ctype.h utils.h hash.h
 version$o:
diff --git a/src/string.c b/src/string.c
deleted file mode 100644 (file)
index 88e1a66..0000000
+++ /dev/null
@@ -1,409 +0,0 @@
-/*  
- *  string.c - dynamic string handling module
- *  
- *  Copyright (C) 2005 Free Software Foundation, Inc.
- *  
- *  This file is part of GNU Wget.
- *  
- *  GNU Wget is free software; you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation; either version 2 of the License, or
- *  (at your option) any later version.
- *
- *  GNU Wget is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program; if not, write to the Free Software
- *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
- *  In addition, as a special exception, the Free Software Foundation
- *  gives permission to link the code of its release of Wget with the
- *  OpenSSL project's "OpenSSL" library (or with modified versions of it
- *  that use the same license as the "OpenSSL" library), and distribute
- *  the linked executables.  You must obey the GNU General Public License
- *  in all respects for all of the code used other than "OpenSSL".  If you
- *  modify this file, you may extend this exception to your version of the
- *  file, but you are not obligated to do so.  If you do not wish to do
- *  so, delete this exception statement from your version.
- */  
-
-#include "config.h"
-
-#include <assert.h>
-#include <stdlib.h>
-#include <wchar.h>
-
-#include "wget.h"
-
-#ifdef STANDALONE
-#undef xmalloc
-#undef xrealloc
-#undef xfree_null
-#define xmalloc malloc
-#define xrealloc realloc
-#define xfree_null(p) if (!(p)) ; else free (p)
-#else
-#include "xmalloc.h"
-#endif
-
-#ifdef WINDOWS
-static const wchar_t w_line_delim[] = L"\r\n";
-static const char line_delim[] = "\r\n";
-static const unsigned int line_delim_len = 2;
-#else
-static const wchar_t w_line_delim[] = L"\n";
-static const char line_delim[] = "\n";
-static const unsigned int line_delim_len = 2;
-#endif
-
-typedef struct string_t {
-  char *sz;           /* standard null-terminated string */
-  unsigned int len;   /* number of chars in the allocated buffer */
-  unsigned int used;  /* number of used chars */
-} *string;
-
-#ifdef STRING_MODULE_DEBUG
-
-#define assert_valid_string(str) \
-  assert (((str) != NULL) \
-          && ((str)->sz != NULL) \
-          && ((str)->used + 1 <= (str)->len));
-
-static void
-string_dump (struct string_t *str, FILE *out)
-{  
-  assert_valid_string (str);
-  assert (out);
-  
-  fprintf (out, "string_dump: str->sz = %s (%p)\n", str->sz, str->sz);
-  fprintf (out, "string_dump: *(str->sz) = %d\n", *(str->sz));
-  fprintf (out, "string_dump: str->len = %u\n", str->len);
-  fprintf (out, "string_dump: str->used = %u\n", str->used);
-}
-
-#define DEBUG_PRINTF(x) printf x
-
-#else /* not defined STRING_MODULE_DEBUG */
-
-#define assert_valid_string(str) do {} while (0);
-#define string_dump(str, out) do {} while (0);
-#define DEBUG_PRINTF(x) do {} while (0);
-
-#endif
-
-
-void
-string_init (struct string_t *s, unsigned int len)
-{
-  size_t to_alloc;
-  
-  /* no need to check that len > 0, since the len == 0 case is ok */
-  assert (s != NULL);
-
-  /* 
-   * for the moment we try to perform a reasonable allocation by rounding up
-   * the number of requested chars (including the trailing zero) to the 
-   * closest multiple of 256, but we should probably find a better allocation
-   * policy or completely leave the optimization of memory allocation to malloc
-   */
-  to_alloc = ((len + 1 + 256) & (~0xFF));
-  
-  s->sz = (char *) xmalloc (to_alloc * sizeof (char));
-  *(s->sz) = '\0';
-  s->len = to_alloc;
-  s->used = 0;
-
-  string_dump (s, stdout);
-}
-
-void
-string_copy (struct string_t *dst, const void *src, unsigned int len)
-{
-  assert_valid_string (dst);
-  assert (src != NULL);
-  
-  /* no need to do anything */
-  if (len == 0) return;
-  
-  if (dst->sz == NULL) {
-    string_init (dst, len); 
-  }
-
-  strncpy (dst->sz, (const char *) src, len);
-  dst->sz[len] = '\0';
-
-  dst->used = len;
-}
-
-void
-string_cat (struct string_t *dst, const void *src, unsigned int len)
-{
-  assert_valid_string (dst);
-  assert (src != NULL);
-
-  /* no need to do anything */
-  if (len == 0) return;
-  
-  if (dst->sz == NULL) {
-    string_init (dst, len);    
-  }
-
-  strncpy (dst->sz + dst->used, (const char *) src, len);
-  dst->sz[dst->used + len] = '\0';
-  
-  dst->used += len;
-}
-
-void
-string_ready (struct string_t *str, unsigned int len)
-{
-  assert_valid_string (str);
-  
-  /* no need to do anything */
-  if (len == 0) return;
-
-  if (str->len - str->used < len)
-    {
-      DEBUG_PRINTF (("calling xrealloc"));
-      str->sz = xrealloc (str->sz, str->len + len);
-    }
-
-  str->len += len;
-}
-
-void
-string_destroy (struct string_t *str)
-{
-  assert_valid_string (str);
-  
-  xfree_null (str->sz);
-  memset (str, 0, sizeof (*str));
-}
-
-static void
-string_append_delim (struct string_t *dst)
-{
-  assert_valid_string (dst);
-  string_cat (dst, line_delim, line_delim_len);
-}
-
-static int 
-is_line_delim (const wchar_t *wsz)
-{
-  assert (wsz != NULL);
-  if (*wsz == L'\r' && *(wsz + 1) == L'\n') {
-    return 2;
-  } else if (*wsz == L'\r' || *wsz == L'\n') {
-    return 1;
-  }
-  
-  return 0;
-}
-
-/*
- * DEST is the string to which the multibyte stuff will be added
- * TO_ESC is the null wide char string to add
- */
-static void
-string_append_multibyte (struct string_t *dest, const wchar_t *wstr, unsigned int len, mbstate_t *state)
-{
-  int i;
-
-  assert_valid_string (dest);
-  assert (wstr != NULL);
-  assert (state != NULL);
-  
-  /* nothing to do */
-  if (len == 0) return;
-
-  string_ready (dest, 4 * MB_CUR_MAX * (len + 1));
-
-  DEBUG_PRINTF (("string_append_multibyte: len = %u\n", len));
-  string_dump (dest, stdout);
-  
-  for (i = 0; len > 0; ++i, --len) {    
-    size_t copied = wcrtomb (dest->sz + dest->used, *(wstr + i), state);
-
-    DEBUG_PRINTF (("string_append_multibyte (loop): i = %d\n", i));
-    DEBUG_PRINTF (("string_append_multibyte (loop): copied = %u\n", copied));
-    string_dump (dest, stdout);
-    
-    if (copied == (size_t)(-1)) {
-      perror ("wcrtomb");
-      exit (EXIT_FAILURE);
-    }    
-    dest->used += copied;
-    *(dest->sz + dest->used) = '\0';
-
-    DEBUG_PRINTF (("string_append_multibyte (loop): processed %s\n", dest->sz + dest->used - copied));
-  }
-}
-
-static void
-string_append_multibyte_newline (struct string_t *dest, mbstate_t *state)
-{
-  assert_valid_string (dest);
-  string_append_multibyte(dest, w_line_delim, line_delim_len, state);
-}
-
-static void
-string_append_multibyte_terminator (struct string_t *dest, mbstate_t *state)
-{
-  const wchar_t terminator = L'\0';
-
-  assert_valid_string (dest);
-  string_append_multibyte(dest, &terminator, 1, state);
-}
-
-/* 
- * DEST is the string to which the escape code will be added
- * TO_ESC is the (not necessarily null terminated) string to escape
- * LEN is the length of the string to escape
- */
-static void
-do_escape (struct string_t *dest, const char *to_esc, unsigned int len, mbstate_t *state)
-{
-  /* we only need to allocate 5 chars for byte: 
-   * - one for the leading backslash
-   * - three for the octal representation
-   * - one for the trailing zero */
-  wchar_t buf[8] = L"";
-  int i;
-
-  assert_valid_string (dest);
-  assert (to_esc != NULL);
-  assert (state != NULL);
-
-  /* nothing to do */
-  if (len == 0) return;
-  
-  DEBUG_PRINTF (("do_escape: len = %d\n", len));
-  string_dump (dest, stdout);
-  
-  for (i = 0; len > 0; ++i, --len) {
-    int j = (unsigned char)*(to_esc + i);
-    swprintf (buf, sizeof(buf), L"\\%03o", j);
-    DEBUG_PRINTF (("do_escape (loop): escaping \\%03o\n", j));
-    buf[sizeof(buf) - 1] = L'\0';
-    assert (wcslen(buf) == 4);
-    string_append_multibyte (dest, buf, 4, state);
-  }
-}
-
-static void
-string_escape (struct string_t *str)
-{
-  wchar_t c;
-  int i;
-  mbstate_t state1, state2;  
-  size_t ret;
-  unsigned int to_read;
-  struct string_t src;
-  int delim_size;
-  
-  assert_valid_string (str);
-
-  memset (&state1, '\0', sizeof (state1));
-  memset (&state2, '\0', sizeof (state2));
-  
-  src = *str;
-  to_read = src.used + 1;
-  
-  /* this value is completely arbitrary */
-  string_init (str, 4 * to_read);
-
-  DEBUG_PRINTF (("string_escape: dumping string src"));
-  string_dump (&src, stdout);
-  DEBUG_PRINTF (("string_escape: dumping string str"));
-  string_dump (str, stdout);
-
-  i = 0;
-  while ((ret = mbrtowc (&c, src.sz + i, to_read, &state1)) != 0) {
-    DEBUG_PRINTF (("string_escape (loop): ret = %d\n", ret));
-    if (ret == (size_t)(-2)) {
-      DEBUG_PRINTF (("string_escape (loop): handling ret == -2"));
-      /* mauro: should we just return the portion of the string already 
-       * processed and print an error message? */
-      perror ("mbrtowc");
-      exit (EXIT_FAILURE);
-    } else if (ret == (size_t)(-1)) {
-      DEBUG_PRINTF (("string_escape (loop): handling ret == -1"));
-      do_escape (str, src.sz + i, 1, &state2);
-      i++;
-    } else if ((delim_size = is_line_delim(&c))) {
-      DEBUG_PRINTF (("string_escape (loop): handling ret == line_delim"));
-      i += delim_size;
-      string_append_multibyte_newline (str, &state2);
-    } else if (iswprint(c) || iswblank(c)) {
-      DEBUG_PRINTF (("string_escape (loop): handling ret == blank | printable"));
-      string_append_multibyte (str, &c, 1, &state2);
-      i += ret;
-    } else { 
-      DEBUG_PRINTF (("string_escape (loop): handling ret == toescape"));
-      do_escape (str, src.sz + i, ret, &state2);
-      i += ret;
-    }
-  }
-  
-  string_append_multibyte_terminator (str, &state2);
-  
-  string_destroy (&src);
-}
-
-/*
- * BUF must be a null-terminated dynamically allocated string
- * LEN is the size of the string BUF
- */
-void
-escape_buffer (char **buf, size_t len)
-{
-  struct string_t s;
-
-  assert (buf != NULL && *buf != NULL);
-
-  /* nothing to do */
-  if (len == 0) return;
-  
-  DEBUG_PRINTF (("escape_buffer processing: %s (len %u)\n", *buf, len));
-  
-  s.sz = *buf; 
-  s.used = len;
-  s.len = len + 1;
-  
-  string_escape (&s);
-  
-  *buf = s.sz;
-}
-
-#ifdef STANDALONE
-int main(void)
-{
-  char *buf;
-  const size_t buflen = 512;
-  buf = (char *) xmalloc(buflen);
-  assert (buf != NULL);
-  
-  puts ("--------------------------------------------------------------------------------");
-  
-  while (fgets (buf, buflen - 1, stdin) != NULL)
-    {
-      /* just in case... */
-      buf[buflen - 1] = '\0';
-      printf ("before escape: %s", buf);
-      escape_buffer (&buf, strlen(buf));
-      printf ("after escape: %s", buf);
-    }
-
-  puts ("--------------------------------------------------------------------------------");
-
-  return 0;
-}
-#endif
-
-/*
- * vim: et ts=2 sw=2
- */
-
diff --git a/src/string.h b/src/string.h
deleted file mode 100644 (file)
index e65fbed..0000000
+++ /dev/null
@@ -1,37 +0,0 @@
-/*  
- *  string.h - declarations for dynamic string handling module
- *  
- *  Copyright (C) 2005 Free Software Foundation, Inc.
- *  
- *  This file is part of GNU Wget.
- *  
- *  GNU Wget is free software; you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation; either version 2 of the License, or
- *  (at your option) any later version.
- *
- *  GNU Wget is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program; if not, write to the Free Software
- *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
- *  In addition, as a special exception, the Free Software Foundation
- *  gives permission to link the code of its release of Wget with the
- *  OpenSSL project's "OpenSSL" library (or with modified versions of it
- *  that use the same license as the "OpenSSL" library), and distribute
- *  the linked executables.  You must obey the GNU General Public License
- *  in all respects for all of the code used other than "OpenSSL".  If you
- *  modify this file, you may extend this exception to your version of the
- *  file, but you are not obligated to do so.  If you do not wish to do
- *  so, delete this exception statement from your version.
- */  
-
-#ifndef WGET_STRING_H
-#define WGET_STRING_H
-
-void escape_buffer PARAMS ((char **, size_t));
-
-#endif /* WGET_STRING_H */
index 41c2161eafc5da6b102c3be0a11dce7c21e430e6..6dc9b7c11f812c486d94c69780736ec288748f8e 100644 (file)
@@ -1,3 +1,26 @@
+2005-02-10  Mauro Tortonesi <mauro@ferrara.linux.it>
+
+       * Makefile.src: Renamed string.{c,h} to string_t.{c,h} to fix 
+       a compilation conflict with the string.h header in the standard 
+       C library.
+
+       * Makefile.src.bor: Renamed string.{c,h} to string_t.{c,h} to fix 
+       a compilation conflict with the string.h header in the standard 
+       C library.
+
+       * Makefile.src.mingw: Renamed string.{c,h} to string_t.{c,h} to fix
+       a compilation conflict with the string.h header in the standard 
+       C library.
+
+       * Makefile.src.watcom: Renamed string.{c,h} to string_t.{c,h} to fix
+       a compilation conflict with the string.h header in the standard 
+       C library.
+
+       * wget.dep: Renamed string.{c,h} to string_t.{c,h} to fix a
+       compilation conflict with the string.h header in the standard C
+       library.
+
+       
 2004-12-31  Mauro Tortonesi <mauro@ferrara.linux.it>
 
        * Makefile.src: Added string.c to the list of modules to compile.
index 04ce91e61707453e7da8b265665dc6c972d7df23..cde223d0d2acb215e6b3773dc35005999b05b135 100644 (file)
@@ -72,13 +72,13 @@ SRC = cmpt.c safe-ctype.c convert.c connect.c host.c http.c netrc.c \
       ftp-basic.c ftp.c ftp-ls.c ftp-opie.c getopt.c hash.c \
       html-parse.c html-url.c progress.c retr.c recur.c res.c url.c cookies.c \
       init.c utils.c main.c version.c xmalloc.c mswindows.c \
-      gen-md5.c gnu-md5.c log.c string.c $(SSLSRC)
+      gen-md5.c gnu-md5.c log.c string_t.c $(SSLSRC)
 
 OBJ = cmpt$o safe-ctype$o convert$o connect$o host$o http$o netrc$o \
       ftp-basic$o ftp$o ftp-ls$o ftp-opie$o getopt$o hash$o \
       html-parse$o html-url$o progress$o retr$o recur$o res$o url$o cookies$o \
       init$o utils$o main$o version$o xmalloc$o mswindows$o \
-      gen-md5$o gnu-md5$o log$o string$o $(SSLOBJ)
+      gen-md5$o gnu-md5$o log$o string_t$o $(SSLOBJ)
 
 .SUFFIXES: .c .obj
 
index a9a77a78d7295c09db962b23082340de6a127031..32ff46cf4db6a9df211bddc8342ede0eab31c46c 100644 (file)
@@ -14,7 +14,7 @@ OBJS=cmpt.obj connect.obj convert.obj ftp.obj ftp-basic.obj  \
       http.obj init.obj log.obj main.obj gnu-md5.obj netrc.obj  \
       safe-ctype.obj hash.obj progress.obj gen-md5.obj cookies.obj \
       recur.obj res.obj retr.obj url.obj utils.obj version.obj xmalloc.obj \
-      mswindows.obj string.obj
+      mswindows.obj string_t.obj
 
 LIBDIR=$(MAKEDIR)\..\lib
 
@@ -48,7 +48,7 @@ recur.obj+
 res.obj+
 retr.obj+
 safe-ctype.obj+
-string.obj+
+string_t.obj+
 url.obj+
 utils.obj+
 version.obj+
index 96b734033c2dd98631ef29927cc28e479452e5ac..f466139b49fbf0116eac9ed590a3bc0d5b75cb64 100644 (file)
@@ -26,7 +26,7 @@ OBJS=cmpt${OBJ_EXT} convert${OBJ_EXT} connect${OBJ_EXT} ftp${OBJ_EXT} ftp-basic$
       http${OBJ_EXT} init${OBJ_EXT} log${OBJ_EXT} main${OBJ_EXT} gnu-md5${OBJ_EXT} netrc${OBJ_EXT} \
       safe-ctype${OBJ_EXT} hash${OBJ_EXT} progress${OBJ_EXT} gen-md5${OBJ_EXT} cookies${OBJ_EXT} \
       recur${OBJ_EXT} res${OBJ_EXT} retr${OBJ_EXT} url${OBJ_EXT} utils${OBJ_EXT} \
-      version${OBJ_EXT} xmalloc${OBJ_EXT} mswindows${OBJ_EXT} string${OBJ_EXT}
+      version${OBJ_EXT} xmalloc${OBJ_EXT} mswindows${OBJ_EXT} string_t${OBJ_EXT}
 
 ifdef SSL
     ## OPENSSL_PATH is the OpenSSL installed directory
index d3f9247cd5a9f38fcb675c83627ea0816aac6ee6..e5fbef80273cf2c83c14624ebf2901d813c31bc6 100644 (file)
@@ -54,7 +54,7 @@ CFLAGS+= /os /d2
 OBJS = cmpt.obj convert.obj connect.obj cookies.obj ftp.obj ftp-basic.obj  &
       ftp-ls.obj ftp-opie.obj getopt.obj hash.obj host.obj html-parse.obj html-url.obj  &
       http.obj init.obj log.obj main.obj gen-md5.obj gnu-md5.obj netrc.obj progress.obj  &
-      recur.obj res.obj retr.obj safe-ctype.obj string.obj url.obj utils.obj version.obj & 
+      recur.obj res.obj retr.obj safe-ctype.obj string_t.obj url.obj utils.obj version.obj & 
       mswindows.obj xmalloc.obj
 
 LIBFILES = 
index d8e9e5b8d6101bea620df786eaa24db8ce8f0dfd..e27892139d4c6881cfe6356176c595fcd75be397 100644 (file)
@@ -27,7 +27,7 @@ recur$o: recur.c config.h wget.h sysdep.h mswindows.h options.h safe-ctype.h url
 retr$o: retr.c config.h wget.h sysdep.h mswindows.h options.h safe-ctype.h utils.h retr.h url.h recur.h ftp.h host.h connect.h hash.h
 safe-ctype$o: safe-ctype.c config.h safe-ctype.h
 snprintf$o: snprintf.c config.h safe-ctype.h
-string$o: wget.h xmalloc.h
+string_t$o: wget.h xmalloc.h
 url$o: url.c config.h wget.h sysdep.h mswindows.h options.h safe-ctype.h utils.h url.h host.h hash.h
 utils$o: utils.c config.h wget.h sysdep.h mswindows.h options.h safe-ctype.h utils.h hash.h
 version$o: version.c