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
88f744ea
Commit
88f744ea
authored
18 years ago
by
rds
Browse files
Options
Downloads
Patches
Plain Diff
catching up with changes to FeatureContextExecute
parent
8e9baf43
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/zmapFeatureXML.c
+26
-10
26 additions, 10 deletions
src/zmapFeature/zmapFeatureXML.c
with
26 additions
and
10 deletions
src/zmapFeature/zmapFeatureXML.c
+
26
−
10
View file @
88f744ea
...
...
@@ -27,9 +27,9 @@
*
* Exported functions: See XXXXXXXXXXXXX.h
* HISTORY:
* Last edited:
Jul 21 21:55
2006 (rds)
* Last edited:
Oct 24 14:13
2006 (rds)
* Created: Fri Jul 21 14:48:18 2006 (rds)
* CVS info: $Id: zmapFeatureXML.c,v 1.
1
2006-
07-22 09:5
2:
3
3 rds Exp $
* CVS info: $Id: zmapFeatureXML.c,v 1.
2
2006-
10-24 13:2
2:
4
3 rds Exp $
*-------------------------------------------------------------------
*/
...
...
@@ -70,9 +70,10 @@ void generateBlockXMLEndEvent (XMLContextDump xml_data);
void
generateFeatureSetXMLEndEvent
(
XMLContextDump
xml_data
);
void
generateFeatureXMLEndEvent
(
XMLContextDump
xml_data
);
void
xmlDumpCB
(
GQuark
key
,
gpointer
data
,
gpointer
user_data
);
ZMapFeatureContextExecuteStatus
xmlDumpCB
(
GQuark
key
,
gpointer
data
,
gpointer
user_data
,
char
**
error
);
GArray
*
zMapFeatureAnyAsXMLEvents
(
ZMapFeatureAny
feature_any
,
...
...
@@ -128,7 +129,10 @@ gboolean zMapFeatureAnyAsXML(ZMapFeatureAny feature_any,
return
xmlDumpData
.
status
;
}
void
xmlDumpCB
(
GQuark
key
,
gpointer
data
,
gpointer
user_data
)
ZMapFeatureContextExecuteStatus
xmlDumpCB
(
GQuark
key
,
gpointer
data
,
gpointer
user_data
,
char
**
error
)
{
ZMapFeatureAny
feature_any
=
(
ZMapFeatureAny
)
data
;
ZMapFeatureContext
feature_context
=
NULL
;
...
...
@@ -136,6 +140,7 @@ void xmlDumpCB(GQuark key, gpointer data, gpointer user_data)
ZMapFeatureBlock
feature_block
=
NULL
;
ZMapFeatureSet
feature_set
=
NULL
;
ZMapFeature
feature_ft
=
NULL
;
ZMapFeatureContextExecuteStatus
cs
=
ZMAP_CONTEXT_EXEC_STATUS_OK
;
XMLContextDump
xml_data
=
(
XMLContextDump
)
user_data
;
...
...
@@ -205,7 +210,15 @@ void xmlDumpCB(GQuark key, gpointer data, gpointer user_data)
}
}
return
;
if
(
xml_data
->
status
!=
ZMAPXMLWRITER_OK
)
{
cs
=
ZMAP_CONTEXT_EXEC_STATUS_ERROR
;
if
(
error
&&
!*
error
)
*
error
=
g_strdup_printf
(
"Failed to dump xml from feature '%s'."
,
g_quark_to_string
(
feature_any
->
unique_id
));
}
return
cs
;
}
void
generateClosingEvents
(
ZMapFeatureAny
feature_any
,
...
...
@@ -252,8 +265,9 @@ void generateClosingEvents(ZMapFeatureAny feature_any,
void
generateContextXMLEvents
(
ZMapFeatureContext
feature_context
,
XMLContextDump
xml_data
)
{
#ifdef RDS_KEEP_GCC_QUIET
ZMapXMLWriterEventStruct
event
=
{
0
};
#endif
/* RDS_KEEP_GCC_QUIET */
switch
(
xml_data
->
xml_type
)
{
case
ZMAPFEATURE_XML_XREMOTE
:
...
...
@@ -270,8 +284,9 @@ void generateContextXMLEvents(ZMapFeatureContext feature_context,
void
generateAlignXMLEvents
(
ZMapFeatureAlignment
feature_align
,
XMLContextDump
xml_data
)
{
#ifdef RDS_KEEP_GCC_QUIET
ZMapXMLWriterEventStruct
event
=
{
0
};
#endif
/* RDS_KEEP_GCC_QUIET */
switch
(
xml_data
->
xml_type
)
{
case
ZMAPFEATURE_XML_XREMOTE
:
...
...
@@ -294,8 +309,9 @@ void generateAlignXMLEvents(ZMapFeatureAlignment feature_align,
void
generateBlockXMLEvents
(
ZMapFeatureBlock
feature_block
,
XMLContextDump
xml_data
)
{
#ifdef RDS_KEEP_GCC_QUIET
ZMapXMLWriterEventStruct
event
=
{
0
};
#endif
/* RDS_KEEP_GCC_QUIET */
switch
(
xml_data
->
xml_type
)
{
case
ZMAPFEATURE_XML_XREMOTE
:
...
...
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