Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Z
zmap
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Iterations
Wiki
Requirements
Jira
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ensembl-gh-mirror
zmap
Commits
7adcc4e7
Commit
7adcc4e7
authored
19 years ago
by
edgrif
Browse files
Options
Downloads
Patches
Plain Diff
remove non-ansi prototype macro, we don't need it.
parent
41c11585
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
src/include/ZMap/zmapUrl.h
+17
-27
17 additions, 27 deletions
src/include/ZMap/zmapUrl.h
src/include/ZMap/zmapUrlUtils.h
+8
-16
8 additions, 16 deletions
src/include/ZMap/zmapUrlUtils.h
src/zmapUtils/zmapUrl.c
+3
-3
3 additions, 3 deletions
src/zmapUtils/zmapUrl.c
with
28 additions
and
46 deletions
src/include/ZMap/zmapUrl.h
+
17
−
27
View file @
7adcc4e7
/* 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 */
This diff is collapsed.
Click to expand it.
src/include/ZMap/zmapUrlUtils.h
+
8
−
16
View file @
7adcc4e7
/* 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 */
...
...
This diff is collapsed.
Click to expand it.
src/zmapUtils/zmapUrl.c
+
3
−
3
View file @
7adcc4e7
/* 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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment