]> sjero.net Git - wget/commitdiff
[svn] Guard against header files getting included twice.
authorhniksic <devnull@localhost>
Thu, 29 Nov 2001 18:55:52 +0000 (10:55 -0800)
committerhniksic <devnull@localhost>
Thu, 29 Nov 2001 18:55:52 +0000 (10:55 -0800)
src/ChangeLog
src/cookies.h
src/fnmatch.h
src/gen-md5.h
src/gen_sslfunc.h
src/hash.h
src/headers.h
src/html-parse.h
src/netrc.h
src/progress.h
src/res.h

index 3c6bff9af9bc3842169d0989006042419d0576c6..fc445bc36c364563645ceb234e388a8164c4bc61 100644 (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>
 
        * gen-md5.c: Use unsigned char * as the buffer argument to
index 2669712f498c8698dbc4e09c9fd352f3814a1d01..c660a2005822d12929e49738f975d1dc96c209af 100644 (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
 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.  */
 
@@ -28,3 +31,5 @@ void load_cookies PARAMS ((const char *));
 void save_cookies PARAMS ((const char *));
 
 void cookies_cleanup PARAMS ((void));
+
+#endif /* COOKIES_H */
index ada4d57a917f06f8c41aabe7385dbb2a546c55f3..37a7faeaf0e2b728ebfa9cf6e6b21d42f3c3cd62 100644 (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
 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 `/'.  */
@@ -32,4 +32,4 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.  */
 int fnmatch PARAMS ((const char *, const char *, int));
 int has_wildcards_p PARAMS ((const char *));
 
-#endif /* MTCH_H */
+#endif /* FNMATCH_H */
index 85714380a6bb72a9bbe09519a0d13a7b6b921fd2..cbac40856db492b66297a541c090e96d5500ad8b 100644 (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
 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
@@ -30,3 +33,5 @@ int gen_md5_context_size PARAMS ((void));
 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 */
index 3c18f2fd4f18c95fc0c2406cffa5093f1120d8ca..6a12e032bae90be4f4c5ed5f6d7e311c715b1542 100644 (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
 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
@@ -31,3 +34,4 @@ int ssl_iread PARAMS ((SSL *, char *, int));
 int ssl_iwrite PARAMS ((SSL *, char *, int));
 int ssl_printerrors PARAMS ((void)); 
 
+#endif /* GEN_SSLFUNC_H */
index fffe91b1465ce30b542f69f45777a63129116a91..3da944eb0fe54c94ef5b91c7dc797500f9d9e906 100644 (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
 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 */
@@ -55,3 +58,5 @@ unsigned long string_hash PARAMS ((const void *));
 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 */
index 8c959c5e2fcae47f4888efd57b5fcb86d6253587..d22c92fbf04f1696fe261235c70c8b6fd9eed472 100644 (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
 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.  */
 
+#ifndef HEADERS_H
+#define HEADERS_H
+
 enum {
   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 skip_lws PARAMS ((const char *));
+
+#endif /* HEADERS_H */
index dc2cba7e78df8497b49ad57ba2133dd2b2a24ef0..5ff33b3b3879001ac71a739f6ee14d42192e23c9 100644 (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
 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 */
@@ -42,3 +45,5 @@ struct taginfo {
 
 void map_html_tags PARAMS ((const char *, int, const char **, const char **,
                            void (*) (struct taginfo *, void *), void *));
+
+#endif /* HTML_PARSE_H */
index 0d30749f9b8ad449a293e5dbc4f00f70aa9412bc..5f65a28e669a330f4a3ce3bbd840192f0d10c340 100644 (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
 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
@@ -28,3 +31,5 @@ typedef struct _acc_t
 
 void search_netrc PARAMS((const char *, const char **, const char **, int));
 void free_netrc PARAMS((acc_t *l));
+
+#endif /* NETRC_H */
index bb0abad834bf0231fff728b78dd9e6cfbd38821c..5566cb9aa9fa7675487339a31792c5587dd0830d 100644 (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
 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 *));
 
@@ -25,3 +28,5 @@ void progress_update PARAMS ((void *, long, long));
 void progress_finish PARAMS ((void *, long));
 
 RETSIGTYPE progress_handle_sigwinch PARAMS ((int));
+
+#endif /* PROGRESS_H */
index 3b8b7647f810a3f0349affc73b18192ef4513e2a..5c859a6cfb8771f5ab64cc71aac5b67a16dcfb31 100644 (file)
--- a/src/res.h
+++ b/src/res.h
@@ -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
 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));
@@ -30,3 +33,5 @@ struct robot_specs *res_get_specs PARAMS ((const char *, int));
 int res_retrieve_file PARAMS ((const char *, char **));
 
 void res_cleanup PARAMS ((void));
+
+#endif /* RES_H */