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
29de8e36
Commit
29de8e36
authored
20 years ago
by
rnc
Browse files
Options
Downloads
Patches
Plain Diff
removed a load of commented out code
parent
5c847e9a
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/zmapWindow/stringbucket.c
+1
-29
1 addition, 29 deletions
src/zmapWindow/stringbucket.c
src/zmapWindow/stringbucket.h
+1
-9
1 addition, 9 deletions
src/zmapWindow/stringbucket.h
with
2 additions
and
38 deletions
src/zmapWindow/stringbucket.c
+
1
−
29
View file @
29de8e36
/* Last edited: Ju
n 30
14:3
2
2004 (
edgrif
) */
/* Last edited: Ju
l 5
14:3
7
2004 (
rnc
) */
/* file: stringbucket.c
/* file: stringbucket.c
* Author: Simon Kelley (srk@sanger.ac.uk)
* Author: Simon Kelley (srk@sanger.ac.uk)
* Copyright (c) Sanger Institute, 2003
* Copyright (c) Sanger Institute, 2003
...
@@ -27,19 +27,9 @@
...
@@ -27,19 +27,9 @@
#include
<strings.h>
#include
<strings.h>
#include
<glib.h>
#include
<glib.h>
#ifdef ED_G_NEVER_INCLUDE_THIS_CODE
#include
<../acedb/regular.h>
#endif
/* ED_G_NEVER_INCLUDE_THIS_CODE */
#include
<stringbucket.h>
#include
<stringbucket.h>
struct
sbucket
{
struct
sbucket
{
#ifdef ED_G_NEVER_INCLUDE_THIS_CODE
STORE_HANDLE
handle
;
#endif
/* ED_G_NEVER_INCLUDE_THIS_CODE */
struct
sbucketchain
*
chain
;
struct
sbucketchain
*
chain
;
};
};
...
@@ -50,23 +40,10 @@ struct sbucketchain {
...
@@ -50,23 +40,10 @@ struct sbucketchain {
#ifdef ED_G_NEVER_INCLUDE_THIS_CODE
StringBucket
*
sbCreate
(
STORE_HANDLE
handle
)
#endif
/* ED_G_NEVER_INCLUDE_THIS_CODE */
StringBucket
*
sbCreate
(
void
)
StringBucket
*
sbCreate
(
void
)
{
{
#ifdef ED_G_NEVER_INCLUDE_THIS_CODE
StringBucket
*
b
=
halloc
(
sizeof
(
struct
sbucket
),
handle
);
#endif
/* ED_G_NEVER_INCLUDE_THIS_CODE */
StringBucket
*
b
=
g_malloc
(
sizeof
(
struct
sbucket
))
;
StringBucket
*
b
=
g_malloc
(
sizeof
(
struct
sbucket
))
;
#ifdef ED_G_NEVER_INCLUDE_THIS_CODE
b
->
handle
=
handle
;
#endif
/* ED_G_NEVER_INCLUDE_THIS_CODE */
b
->
chain
=
NULL
;
b
->
chain
=
NULL
;
return
b
;
return
b
;
...
@@ -97,11 +74,6 @@ char *str2p(char *string, StringBucket *b)
...
@@ -97,11 +74,6 @@ char *str2p(char *string, StringBucket *b)
if
(
!
c
)
if
(
!
c
)
{
{
#ifdef ED_G_NEVER_INCLUDE_THIS_CODE
c
=
halloc
(
sizeof
(
struct
sbucketchain
)
+
strlen
(
string
)
+
1
,
b
->
handle
);
#endif
/* ED_G_NEVER_INCLUDE_THIS_CODE */
c
=
g_malloc
(
sizeof
(
struct
sbucketchain
)
+
strlen
(
string
)
+
1
)
;
c
=
g_malloc
(
sizeof
(
struct
sbucketchain
)
+
strlen
(
string
)
+
1
)
;
c
->
next
=
b
->
chain
;
c
->
next
=
b
->
chain
;
...
...
This diff is collapsed.
Click to expand it.
src/zmapWindow/stringbucket.h
+
1
−
9
View file @
29de8e36
/* Last edited: Ju
n 29 12:06
2004 (
edgrif
) */
/* Last edited: Ju
l 5 14:37
2004 (
rnc
) */
/* file: stringbucket.h
/* file: stringbucket.h
* Author: Simon Kelley (srk@sanger.ac.uk)
* Author: Simon Kelley (srk@sanger.ac.uk)
* Copyright (c) Sanger Institute, 2003
* Copyright (c) Sanger Institute, 2003
...
@@ -26,11 +26,6 @@
...
@@ -26,11 +26,6 @@
*/
*/
#ifdef ED_G_NEVER_INCLUDE_THIS_CODE
#include
<../acedb/acedb.h>
#endif
/* ED_G_NEVER_INCLUDE_THIS_CODE */
/* Stringbucket:
/* Stringbucket:
Given a string returns a copy which is persistant until the
Given a string returns a copy which is persistant until the
...
@@ -48,9 +43,6 @@ struct sbucket;
...
@@ -48,9 +43,6 @@ struct sbucket;
typedef
struct
sbucket
StringBucket
;
typedef
struct
sbucket
StringBucket
;
#ifdef ED_G_NEVER_INCLUDE_THIS_CODE
StringBucket
*
sbCreate
(
STORE_HANDLE
handle
);
#endif
/* ED_G_NEVER_INCLUDE_THIS_CODE */
StringBucket
*
sbCreate
(
void
)
;
StringBucket
*
sbCreate
(
void
)
;
void
sbDestroy
(
StringBucket
*
b
);
void
sbDestroy
(
StringBucket
*
b
);
...
...
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