1
0
mirror of https://github.com/moparisthebest/wget synced 2024-07-03 16:38:41 -04:00

[svn] Guard against header files getting included twice.

This commit is contained in:
hniksic 2001-11-29 10:55:52 -08:00
parent b65661a879
commit b6bbc32e14
11 changed files with 51 additions and 3 deletions

View File

@ -1,3 +1,7 @@
2001-11-29 Hrvoje Niksic <hniksic@arsdigita.com>
* headers: Guard against header files being included twice.
2001-11-29 Hrvoje Niksic <hniksic@arsdigita.com> 2001-11-29 Hrvoje Niksic <hniksic@arsdigita.com>
* gen-md5.c: Use unsigned char * as the buffer argument to * gen-md5.c: Use unsigned char * as the buffer argument to

View File

@ -17,6 +17,9 @@ You should have received a copy of the GNU General Public License
along with Wget; if not, write to the Free Software along with Wget; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ 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 /* struct cookie is not exported; this file only exports functions for
manipulating cookie contents. */ manipulating cookie contents. */
@ -28,3 +31,5 @@ void load_cookies PARAMS ((const char *));
void save_cookies PARAMS ((const char *)); void save_cookies PARAMS ((const char *));
void cookies_cleanup PARAMS ((void)); void cookies_cleanup PARAMS ((void));
#endif /* COOKIES_H */

View File

@ -17,8 +17,8 @@ You should have received a copy of the GNU General Public License
along with Wget; if not, write to the Free Software along with Wget; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
#ifndef MTCH_H #ifndef FNMATCH_H
#define MTCH_H #define FNMATCH_H
/* Bits set in the FLAGS argument to `fnmatch'. */ /* Bits set in the FLAGS argument to `fnmatch'. */
#define FNM_PATHNAME (1 << 0) /* No wildcard can ever match `/'. */ #define FNM_PATHNAME (1 << 0) /* No wildcard can ever match `/'. */
@ -32,4 +32,4 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
int fnmatch PARAMS ((const char *, const char *, int)); int fnmatch PARAMS ((const char *, const char *, int));
int has_wildcards_p PARAMS ((const char *)); int has_wildcards_p PARAMS ((const char *));
#endif /* MTCH_H */ #endif /* FNMATCH_H */

View File

@ -17,6 +17,9 @@ You should have received a copy of the GNU General Public License
along with Wget; if not, write to the Free Software along with Wget; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ 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; typedef struct gen_md5_context gen_md5_context;
/* Use a forward declaration so we don't have to include any of the /* Use a forward declaration so we don't have to include any of the
@ -30,3 +33,5 @@ int gen_md5_context_size PARAMS ((void));
void gen_md5_init PARAMS ((gen_md5_context *)); void gen_md5_init PARAMS ((gen_md5_context *));
void gen_md5_update PARAMS ((const unsigned char *, int, 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 *)); void gen_md5_finish PARAMS ((gen_md5_context *, unsigned char *));
#endif /* GEN_MD5_H */

View File

@ -18,6 +18,9 @@ You should have received a copy of the GNU General Public License
along with Wget; if not, write to the Free Software along with Wget; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
#ifndef GEN_SSLFUNC_H
#define GEN_SSLFUNC_H
#ifdef HAVE_SSL #ifdef HAVE_SSL
# include <openssl/ssl.h> # include <openssl/ssl.h>
#endif #endif
@ -31,3 +34,4 @@ int ssl_iread PARAMS ((SSL *, char *, int));
int ssl_iwrite PARAMS ((SSL *, char *, int)); int ssl_iwrite PARAMS ((SSL *, char *, int));
int ssl_printerrors PARAMS ((void)); int ssl_printerrors PARAMS ((void));
#endif /* GEN_SSLFUNC_H */

View File

@ -17,6 +17,9 @@ You should have received a copy of the GNU General Public License
along with Wget; if not, write to the Free Software along with Wget; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
#ifndef HASH_H
#define HASH_H
/* From XEmacs, and hence from Dragon book. */ /* From XEmacs, and hence from Dragon book. */
#define GOOD_HASH 65599 /* prime number just over 2^16; Dragon book, p. 435 */ #define GOOD_HASH 65599 /* prime number just over 2^16; Dragon book, p. 435 */
@ -55,3 +58,5 @@ unsigned long string_hash PARAMS ((const void *));
int string_cmp PARAMS ((const void *, const void *)); int string_cmp PARAMS ((const void *, const void *));
struct hash_table *make_string_hash_table PARAMS ((int)); struct hash_table *make_string_hash_table PARAMS ((int));
struct hash_table *make_nocase_string_hash_table PARAMS ((int)); struct hash_table *make_nocase_string_hash_table PARAMS ((int));
#endif /* HASH_H */

View File

@ -17,6 +17,9 @@ You should have received a copy of the GNU General Public License
along with Wget; if not, write to the Free Software along with Wget; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
#ifndef HEADERS_H
#define HEADERS_H
enum { enum {
HG_OK, HG_ERROR, HG_EOF HG_OK, HG_ERROR, HG_EOF
}; };
@ -34,3 +37,5 @@ int header_strdup PARAMS ((const char *, void *));
int header_exists PARAMS ((const char *, void *)); int header_exists PARAMS ((const char *, void *));
int skip_lws PARAMS ((const char *)); int skip_lws PARAMS ((const char *));
#endif /* HEADERS_H */

View File

@ -17,6 +17,9 @@ You should have received a copy of the GNU General Public License
along with Wget; if not, write to the Free Software along with Wget; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
#ifndef HTML_PARSE_H
#define HTML_PARSE_H
struct attr_pair { struct attr_pair {
char *name; /* attribute name */ char *name; /* attribute name */
char *value; /* attribute value */ char *value; /* attribute value */
@ -42,3 +45,5 @@ struct taginfo {
void map_html_tags PARAMS ((const char *, int, const char **, const char **, void map_html_tags PARAMS ((const char *, int, const char **, const char **,
void (*) (struct taginfo *, void *), void *)); void (*) (struct taginfo *, void *), void *));
#endif /* HTML_PARSE_H */

View File

@ -17,6 +17,9 @@ You should have received a copy of the GNU General Public License
along with Wget; if not, write to the Free Software along with Wget; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
#ifndef NETRC_H
#define NETRC_H
typedef struct _acc_t typedef struct _acc_t
{ {
char *host; /* NULL if this is the default machine char *host; /* NULL if this is the default machine
@ -28,3 +31,5 @@ typedef struct _acc_t
void search_netrc PARAMS((const char *, const char **, const char **, int)); void search_netrc PARAMS((const char *, const char **, const char **, int));
void free_netrc PARAMS((acc_t *l)); void free_netrc PARAMS((acc_t *l));
#endif /* NETRC_H */

View File

@ -17,6 +17,9 @@ You should have received a copy of the GNU General Public License
along with Wget; if not, write to the Free Software along with Wget; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
#ifndef PROGRESS_H
#define PROGRESS_H
int valid_progress_implementation_p PARAMS ((const char *)); int valid_progress_implementation_p PARAMS ((const char *));
void set_progress_implementation PARAMS ((const char *)); void set_progress_implementation PARAMS ((const char *));
@ -25,3 +28,5 @@ void progress_update PARAMS ((void *, long, long));
void progress_finish PARAMS ((void *, long)); void progress_finish PARAMS ((void *, long));
RETSIGTYPE progress_handle_sigwinch PARAMS ((int)); RETSIGTYPE progress_handle_sigwinch PARAMS ((int));
#endif /* PROGRESS_H */

View File

@ -17,6 +17,9 @@ You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software along with this program; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
#ifndef RES_H
#define RES_H
struct robot_specs; struct robot_specs;
struct robot_specs *res_parse PARAMS ((const char *, int)); struct robot_specs *res_parse PARAMS ((const char *, int));
@ -30,3 +33,5 @@ struct robot_specs *res_get_specs PARAMS ((const char *, int));
int res_retrieve_file PARAMS ((const char *, char **)); int res_retrieve_file PARAMS ((const char *, char **));
void res_cleanup PARAMS ((void)); void res_cleanup PARAMS ((void));
#endif /* RES_H */