/* Declarations for utils.c.
- Copyright (C) 2005 Free Software Foundation, Inc.
+ Copyright (C) 1996-2005 Free Software Foundation, Inc.
This file is part of GNU Wget.
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
-along with Wget; if not, write to the Free Software
-Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+along with Wget; if not, write to the Free Software Foundation, Inc.,
+51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
In addition, as a special exception, the Free Software Foundation
gives permission to link the code of its release of Wget with the
#ifndef UTILS_H
#define UTILS_H
-enum accd {
- ALLABS = 1
-};
-
struct hash_table;
struct file_memory {
FILE *fopen_excl (const char *, bool);
char *file_merge (const char *, const char *);
+int fnmatch_nocase (const char *, const char *, int);
bool acceptable (const char *);
-bool accdir (const char *s, enum accd);
+bool accdir (const char *s);
char *suffix (const char *s);
bool match_tail (const char *, const char *, bool);
bool has_wildcards_p (const char *);
void string_set_free (struct hash_table *);
void free_keys_and_values (struct hash_table *);
-char *with_thousand_seps (wgint);
-#ifndef with_thousand_seps_sum
-char *with_thousand_seps_sum (SUM_SIZE_INT);
+const char *with_thousand_seps (wgint);
+
+/* human_readable must be able to accept wgint and SUM_SIZE_INT
+ arguments. On machines where wgint is 32-bit, declare it to accept
+ double. */
+#if SIZEOF_WGINT >= 8
+# define HR_NUMTYPE wgint
+#else
+# define HR_NUMTYPE double
#endif
-char *human_readable (wgint);
+char *human_readable (HR_NUMTYPE);
+
+
int numdigit (wgint);
char *number_to_string (char *, wgint);
char *number_to_static_string (wgint);
void stable_sort (void *, size_t, size_t, int (*) (const void *, const void *));
+const char *print_decimal (double);
+
#endif /* UTILS_H */