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
3caf6209
Commit
3caf6209
authored
20 years ago
by
rnc
Browse files
Options
Downloads
Patches
Plain Diff
Applied coding standards: one return stmt, assert on return value, etc
parent
ff0271ff
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/zmapFeature/zmapFeature.c
+14
-14
14 additions, 14 deletions
src/zmapFeature/zmapFeature.c
with
14 additions
and
14 deletions
src/zmapFeature/zmapFeature.c
+
14
−
14
View file @
3caf6209
...
...
@@ -26,13 +26,9 @@
* 1
* Exported functions: See zmapFeature.h
* HISTORY:
<<<<<<< zmapFeature.c
* Last edited: Nov 19 11:46 2004 (edgrif)
=======
* Last edited: Nov 15 10:35 2004 (rnc)
>>>>>>> 1.6
* Last edited: Nov 22 16:30 2004 (rnc)
* Created: Tue Nov 2 2004 (rnc)
* CVS info: $Id: zmapFeature.c,v 1.
7
2004-11-
19
1
4
:3
2:14 edgrif
Exp $
* CVS info: $Id: zmapFeature.c,v 1.
8
2004-11-
22
1
6
:3
1:46 rnc
Exp $
*-------------------------------------------------------------------
*/
...
...
@@ -50,29 +46,33 @@ static gboolean printLine(GIOChannel *channel, gchar *line);
char
*
zmapLookUpEnum
(
int
id
,
int
enumType
)
{
/* These arrays must correspond 1:1 with the enums declared in zmapFeature.h */
static
char
*
types
[
8
]
=
{
"BASIC"
,
"HOMOL"
,
"EXON"
,
"INTRON"
,
"TRANSCRIPT"
,
"VARIATION"
,
"BOUNDARY"
,
"SEQUENCE"
}
;
static
char
*
strands
[
3
]
=
{
"ZMAPSTRAND_NONE"
,
"ZMAPSTRAND_DOWN"
,
"ZMAPSTRAND_UP"
};
static
char
*
phases
[
4
]
=
{
"ZMAPPHASE_NONE"
,
"ZMAPPHASE_0"
,
"ZMAPPHASE_1"
,
"ZMAPPHASE_2"
};
static
char
*
types
[]
=
{
"BASIC"
,
"HOMOL"
,
"EXON"
,
"INTRON"
,
"TRANSCRIPT"
,
"VARIATION"
,
"BOUNDARY"
,
"SEQUENCE"
}
;
static
char
*
strands
[]
=
{
"ZMAPSTRAND_NONE"
,
"ZMAPSTRAND_DOWN"
,
"ZMAPSTRAND_UP"
};
static
char
*
phases
[]
=
{
"ZMAPPHASE_NONE"
,
"ZMAPPHASE_0"
,
"ZMAPPHASE_1"
,
"ZMAPPHASE_2"
};
char
*
str
=
NULL
;
switch
(
enumType
)
{
case
TYPE_ENUM
:
return
types
[
id
];
str
=
types
[
id
];
break
;
case
STRAND_ENUM
:
return
strands
[
id
];
str
=
strands
[
id
];
break
;
case
PHASE_ENUM
:
return
phases
[
id
];
str
=
phases
[
id
];
break
;
default:
break
;
}
return
NULL
;
zMapAssert
(
str
);
return
str
;
}
char
*
zMapFeatureCreateID
(
ZMapFeatureType
feature_type
,
char
*
feature_name
,
...
...
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