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
180452b3
Commit
180452b3
authored
16 years ago
by
edgrif
Browse files
Options
Downloads
Patches
Plain Diff
add func to print styles to stdout.
parent
accd2d7f
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/include/ZMap/zmapStyle.h
+5
-2
5 additions, 2 deletions
src/include/ZMap/zmapStyle.h
src/zmapFeature/zmapStyleUtils.c
+18
-3
18 additions, 3 deletions
src/zmapFeature/zmapStyleUtils.c
with
23 additions
and
5 deletions
src/include/ZMap/zmapStyle.h
+
5
−
2
View file @
180452b3
...
...
@@ -26,9 +26,9 @@
* Description: Style and Style set handling functions.
*
* HISTORY:
* Last edited:
Jan 26 13
:4
1
2009 (edgrif)
* Last edited:
Feb 4 11
:4
0
2009 (edgrif)
* Created: Mon Feb 26 09:28:26 2007 (edgrif)
* CVS info: $Id: zmapStyle.h,v 1.3
2
2009-02-0
3 09:18:54
edgrif Exp $
* CVS info: $Id: zmapStyle.h,v 1.3
3
2009-02-0
4 15:58:20
edgrif Exp $
*-------------------------------------------------------------------
*/
#ifndef ZMAP_STYLE_H
...
...
@@ -461,8 +461,11 @@ void zMapStyleDestroyStyles(GData **styles) ;
/* Debug functions. */
void
zMapStylePrint
(
ZMapIOOut
dest
,
ZMapFeatureTypeStyle
style
,
char
*
prefix
,
gboolean
full
)
;
void
zMapStyleSetPrintAll
(
ZMapIOOut
dest
,
GData
*
type_set
,
char
*
user_string
,
gboolean
full
)
;
void
zMapStyleSetPrintAllStdOut
(
GData
*
type_set
,
char
*
user_string
,
gboolean
full
)
;
void
zMapStyleListPrintAll
(
ZMapIOOut
dest
,
GList
*
styles
,
char
*
user_string
,
gboolean
full
)
;
...
...
This diff is collapsed.
Click to expand it.
src/zmapFeature/zmapStyleUtils.c
+
18
−
3
View file @
180452b3
...
...
@@ -28,13 +28,14 @@
* Exported functions: See ZMap/zmapStyle.h
*
* HISTORY:
* Last edited:
Dec 11 09:35
200
8
(edgrif)
* Last edited:
Feb 4 11:52
200
9
(edgrif)
* Created: Thu Oct 30 10:24:35 2008 (edgrif)
* CVS info: $Id: zmapStyleUtils.c,v 1.
2
200
8-12-11 09
:5
1
:4
3
edgrif Exp $
* CVS info: $Id: zmapStyleUtils.c,v 1.
3
200
9-02-04 15
:5
8
:4
7
edgrif Exp $
*-------------------------------------------------------------------
*/
#include
<string.h>
#include
<unistd.h>
#include
<ZMap/zmapUtils.h>
#include
<ZMap/zmapEnum.h>
#include
<ZMap/zmapConfigLoader.h>
...
...
@@ -303,6 +304,20 @@ void zMapStyleSetPrintAll(ZMapIOOut dest, GData *type_set, char *user_string, gb
return
;
}
void
zMapStyleSetPrintAllStdOut
(
GData
*
type_set
,
char
*
user_string
,
gboolean
full
)
{
ZMapIOOut
output
;
output
=
zMapOutCreateFD
(
STDOUT_FILENO
)
;
zMapStyleSetPrintAll
(
output
,
type_set
,
user_string
,
full
)
;
zMapOutDestroy
(
output
)
;
return
;
}
void
zMapStyleListPrintAll
(
ZMapIOOut
dest
,
GList
*
styles
,
char
*
user_string
,
gboolean
full
)
{
...
...
@@ -339,7 +354,7 @@ void zMapStylePrint(ZMapIOOut dest, ZMapFeatureTypeStyle style, char *prefix, gb
#define STYLE_PTR style
zMapAssert
(
style
)
;
zMapAssert
(
ZMAP_IS_FEATURE_STYLE
(
style
)
)
;
full
=
TRUE
;
...
...
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