Skip to content
Snippets Groups Projects
Commit 7adcc4e7 authored by edgrif's avatar edgrif
Browse files

remove non-ansi prototype macro, we don't need it.

parent 41c11585
No related branches found
No related tags found
No related merge requests found
/* Last edited: Mar 10 11:00 2005 (rds) */
/* Last edited: Jun 22 13:59 2005 (edgrif) */
/* Declarations for url.c.
Copyright (C) 1995, 1996, 1997 Free Software Foundation, Inc.
......@@ -31,16 +31,6 @@ so, delete this exception statement from your version. */
#ifndef ZMAPURL_H
#define ZMAPURL_H
/* This bit is now in both this header and zmapUrlUtils.h. I'm not
happy with this !!! */
#ifndef PARAMS
# if PROTOTYPES
# define PARAMS(args) args
# else
# define PARAMS(args) ()
# endif
#endif
/* Default port definitions */
#define DEFAULT_HTTP_PORT 80
......@@ -92,26 +82,26 @@ struct url
/* Function declarations */
char *url_escape PARAMS ((const char *));
char *url_escape(const char *) ;
struct url *url_parse PARAMS ((const char *, int *));
const char *url_error PARAMS ((int));
char *url_full_path PARAMS ((const struct url *));
void url_set_dir PARAMS ((struct url *, const char *));
void url_set_file PARAMS ((struct url *, const char *));
void url_free PARAMS ((struct url *));
struct url *url_parse(const char *, int *) ;
const char *url_error(int) ;
char *url_full_path(const struct url *) ;
void url_set_dir(struct url *, const char *) ;
void url_set_file(struct url *, const char *) ;
void url_free(struct url *) ;
enum url_scheme url_scheme PARAMS ((const char *));
int url_has_scheme PARAMS ((const char *));
int scheme_default_port PARAMS ((enum url_scheme));
void scheme_disable PARAMS ((enum url_scheme));
enum url_scheme url_scheme(const char *) ;
int url_has_scheme(const char *) ;
int scheme_default_port(enum url_scheme) ;
void scheme_disable(enum url_scheme) ;
char *url_string PARAMS ((const struct url *, int));
char *url_file_name PARAMS ((const struct url *));
char *url_string(const struct url *, int) ;
char *url_file_name(const struct url *) ;
char *uri_merge PARAMS ((const char *, const char *));
char *uri_merge(const char *, const char *) ;
char *rewrite_shorthand_url PARAMS ((const char *));
int schemes_are_similar_p PARAMS ((enum url_scheme a, enum url_scheme b));
char *rewrite_shorthand_url(const char *) ;
int schemes_are_similar_p(enum url_scheme a, enum url_scheme b) ;
#endif /* ZMAPURL_H */
/* Last edited: Mar 8 12:38 2005 (rds) */
/* Last edited: Jun 22 14:00 2005 (edgrif) */
/* Declarations for utils.c.
Copyright (C) 1995, 1996, 1997, 1998 Free Software Foundation, Inc.
......@@ -44,14 +44,6 @@ so, delete this exception statement from your version. */
builds. */
#undef DEBUG_MALLOC
#ifndef PARAMS
# if PROTOTYPES
# define PARAMS(args) args
# else
# define PARAMS(args) ()
# endif
#endif
/* `gettext (FOO)' is long to write, so we use `_(FOO)'. If NLS is
unavailable, _(STRING) simply returns STRING. */
#ifdef HAVE_NLS
......@@ -115,9 +107,9 @@ void logprintf ();
#define xstrdup xstrdup_real
#define xfree free
void *xmalloc_real PARAMS ((size_t));
void *xrealloc_real PARAMS ((void *, size_t));
char *xstrdup_real PARAMS ((const char *));
void *xmalloc_real(size_t) ;
void *xrealloc_real(void *, size_t) ;
char *xstrdup_real(const char *) ;
#define MD5_HASHLEN 16
......@@ -304,12 +296,12 @@ struct file_memory {
struct wget_timer;
char *xstrdup_lower PARAMS ((const char *));
char *xstrdup_lower(const char *) ;
char *strdupdelim PARAMS ((const char *, const char *));
char *strdupdelim(const char *, const char *) ;
int numdigit PARAMS ((long));
char *number_to_string PARAMS ((char *, long));
int numdigit(long) ;
char *number_to_string(char *, long) ;
#endif /* ZMAPURLUTILS_H */
......
/* Last edited: Mar 8 15:46 2005 (rds) */
/* Last edited: Jun 22 14:02 2005 (edgrif) */
/* URL handling.
Copyright (C) 1995, 1996, 1997, 2000, 2001, 2003, 2003
Free Software Foundation, Inc.
......@@ -82,7 +82,7 @@ static struct scheme_data supported_schemes[] =
/* Forward declarations: */
static int path_simplify PARAMS ((char *));
static int path_simplify(char *) ;
/* Support for encoding and decoding of URL strings. We determine
whether a character is unsafe through static table lookup. This
......@@ -574,7 +574,7 @@ rewrite_shorthand_url (const char *url)
}
}
static void split_path PARAMS ((const char *, char **, char **));
static void split_path(const char *, char **, char **) ;
/* Like strpbrk, with the exception that it returns the pointer to the
terminating zero (end-of-string aka "eos") if no matching character
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment