+2001-11-29 Hrvoje Niksic <hniksic@arsdigita.com>
+
+ * headers: Guard against header files being included twice.
+
2001-11-29 Hrvoje Niksic <hniksic@arsdigita.com>
* gen-md5.c: Use unsigned char * as the buffer argument to
along with Wget; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
+#ifndef COOKIES_H
+#define COOKIES_H
+
/* struct cookie is not exported; this file only exports functions for
manipulating cookie contents. */
void save_cookies PARAMS ((const char *));
void cookies_cleanup PARAMS ((void));
+
+#endif /* COOKIES_H */
along with Wget; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
-#ifndef MTCH_H
-#define MTCH_H
+#ifndef FNMATCH_H
+#define FNMATCH_H
/* Bits set in the FLAGS argument to `fnmatch'. */
#define FNM_PATHNAME (1 << 0) /* No wildcard can ever match `/'. */
int fnmatch PARAMS ((const char *, const char *, int));
int has_wildcards_p PARAMS ((const char *));
-#endif /* MTCH_H */
+#endif /* FNMATCH_H */
along with Wget; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
+#ifndef GEN_MD5_H
+#define GEN_MD5_H
+
typedef struct gen_md5_context gen_md5_context;
/* Use a forward declaration so we don't have to include any of the
void gen_md5_init PARAMS ((gen_md5_context *));
void gen_md5_update PARAMS ((const unsigned char *, int, gen_md5_context *));
void gen_md5_finish PARAMS ((gen_md5_context *, unsigned char *));
+
+#endif /* GEN_MD5_H */
along with Wget; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
+#ifndef GEN_SSLFUNC_H
+#define GEN_SSLFUNC_H
+
#ifdef HAVE_SSL
# include <openssl/ssl.h>
#endif
int ssl_iwrite PARAMS ((SSL *, char *, int));
int ssl_printerrors PARAMS ((void));
+#endif /* GEN_SSLFUNC_H */
along with Wget; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
+#ifndef HASH_H
+#define HASH_H
+
/* From XEmacs, and hence from Dragon book. */
#define GOOD_HASH 65599 /* prime number just over 2^16; Dragon book, p. 435 */
int string_cmp PARAMS ((const void *, const void *));
struct hash_table *make_string_hash_table PARAMS ((int));
struct hash_table *make_nocase_string_hash_table PARAMS ((int));
+
+#endif /* HASH_H */
along with Wget; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
+#ifndef HEADERS_H
+#define HEADERS_H
+
enum {
HG_OK, HG_ERROR, HG_EOF
};
int header_exists PARAMS ((const char *, void *));
int skip_lws PARAMS ((const char *));
+
+#endif /* HEADERS_H */
along with Wget; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
+#ifndef HTML_PARSE_H
+#define HTML_PARSE_H
+
struct attr_pair {
char *name; /* attribute name */
char *value; /* attribute value */
void map_html_tags PARAMS ((const char *, int, const char **, const char **,
void (*) (struct taginfo *, void *), void *));
+
+#endif /* HTML_PARSE_H */
along with Wget; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
+#ifndef NETRC_H
+#define NETRC_H
+
typedef struct _acc_t
{
char *host; /* NULL if this is the default machine
void search_netrc PARAMS((const char *, const char **, const char **, int));
void free_netrc PARAMS((acc_t *l));
+
+#endif /* NETRC_H */
along with Wget; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
+#ifndef PROGRESS_H
+#define PROGRESS_H
+
int valid_progress_implementation_p PARAMS ((const char *));
void set_progress_implementation PARAMS ((const char *));
void progress_finish PARAMS ((void *, long));
RETSIGTYPE progress_handle_sigwinch PARAMS ((int));
+
+#endif /* PROGRESS_H */
along with this program; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
+#ifndef RES_H
+#define RES_H
+
struct robot_specs;
struct robot_specs *res_parse PARAMS ((const char *, int));
int res_retrieve_file PARAMS ((const char *, char **));
void res_cleanup PARAMS ((void));
+
+#endif /* RES_H */