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
0cf234ee
Commit
0cf234ee
authored
18 years ago
by
edgrif
Browse files
Options
Downloads
Patches
Plain Diff
add trivial function to find a quark in a glist...
parent
f5c01993
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/zmapGLibUtils.h
+4
-4
4 additions, 4 deletions
src/include/ZMap/zmapGLibUtils.h
src/zmapUtils/zmapGLibUtils.c
+14
-3
14 additions, 3 deletions
src/zmapUtils/zmapGLibUtils.c
with
18 additions
and
7 deletions
src/include/ZMap/zmapGLibUtils.h
+
4
−
4
View file @
0cf234ee
...
...
@@ -26,9 +26,9 @@
* glib but not included with their distribution.
*
* HISTORY:
* Last edited:
Sep
6
1
8
:05 2006 (edgrif)
* Last edited:
Oct
2
1
6
:05 2006 (edgrif)
* Created: Thu Oct 13 15:56:54 2005 (edgrif)
* CVS info: $Id: zmapGLibUtils.h,v 1.
9
2006-
09-15 09:09:54
edgrif Exp $
* CVS info: $Id: zmapGLibUtils.h,v 1.
10
2006-
10-02 15:12:41
edgrif Exp $
*-------------------------------------------------------------------
*/
#ifndef ZMAP_GLIBUTILS_H
...
...
@@ -71,8 +71,8 @@ void zMap_g_list_foreach_directional(GList *list, GFunc func, gpointer user_data
ZMapGListDirection
forward
);
gboolean
zMap_g_list_cond_foreach
(
GList
*
list
,
ZMapGFuncCond
func
,
gpointer
user_data
)
;
GList
*
zMap_g_list_move
(
GList
*
list
,
gpointer
user_data
,
gint
new_index
)
;
void
zMap_g_quark
_list
_print
(
GList
*
quark_list
)
;
void
zMap_g_
list_
quark_print
(
GList
*
quark_list
)
;
GList
*
zMap_g_list_find_quark
(
GList
*
list
,
GQuark
str_quark
)
;
gboolean
zMap_g_string_replace
(
GString
*
string
,
char
*
target
,
char
*
source
)
;
...
...
This diff is collapsed.
Click to expand it.
src/zmapUtils/zmapGLibUtils.c
+
14
−
3
View file @
0cf234ee
...
...
@@ -26,9 +26,9 @@
*
* Exported functions: See ZMap/zmapGLibUtils.h
* HISTORY:
* Last edited:
Sep
6
1
8:06
2006 (edgrif)
* Last edited:
Oct
2
1
5:40
2006 (edgrif)
* Created: Thu Oct 13 15:22:35 2005 (edgrif)
* CVS info: $Id: zmapGLibUtils.c,v 1.
9
2006-
09-15 09:09:54
edgrif Exp $
* CVS info: $Id: zmapGLibUtils.c,v 1.
10
2006-
10-02 15:12:41
edgrif Exp $
*-------------------------------------------------------------------
*/
...
...
@@ -240,7 +240,7 @@ GList *zMap_g_list_move(GList *list, gpointer user_data, gint new_index)
/*!
* Prints out the contents of a list assuming that each element is a GQuark. We have
* lots of these in zmap so this is useful. */
void
zMap_g_quark
_list
_print
(
GList
*
quark_list
)
void
zMap_g_
list_
quark_print
(
GList
*
quark_list
)
{
zMapAssert
(
quark_list
)
;
...
...
@@ -250,6 +250,17 @@ void zMap_g_quark_list_print(GList *quark_list)
}
GList
*
zMap_g_list_find_quark
(
GList
*
list
,
GQuark
str_quark
)
{
GList
*
result
=
NULL
;
GCompareFunc
compare_func
;
zMapAssert
(
list
&&
str_quark
)
;
result
=
g_list_find
(
list
,
GINT_TO_POINTER
(
str_quark
))
;
return
result
;
}
...
...
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