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
1b08d986
Commit
1b08d986
authored
19 years ago
by
edgrif
Browse files
Options
Downloads
Patches
Plain Diff
add some extra application information functions to return copyright strings etc.
parent
e2c1bdac
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
src/include/ZMap/zmapUtils.h
+5
-2
5 additions, 2 deletions
src/include/ZMap/zmapUtils.h
src/zmapUtils/zmapUtils.c
+25
-3
25 additions, 3 deletions
src/zmapUtils/zmapUtils.c
src/zmapUtils/zmapUtils_P.h
+32
-6
32 additions, 6 deletions
src/zmapUtils/zmapUtils_P.h
with
62 additions
and
11 deletions
src/include/ZMap/zmapUtils.h
+
5
−
2
View file @
1b08d986
...
...
@@ -24,9 +24,9 @@
*
* Description: Utility functions for ZMap.
* HISTORY:
* Last edited:
Jan 27 08:00
2006 (edgrif)
* Last edited:
Feb 20 11:28
2006 (edgrif)
* Created: Thu Feb 26 10:33:10 2004 (edgrif)
* CVS info: $Id: zmapUtils.h,v 1.
19
2006-02-
02 11:20:17
edgrif Exp $
* CVS info: $Id: zmapUtils.h,v 1.
20
2006-02-
21 15:05:31
edgrif Exp $
*-------------------------------------------------------------------
*/
#ifndef ZMAP_UTILS_H
...
...
@@ -127,6 +127,9 @@ gboolean zMapFileEmpty(char *filepath) ;
/* routines to return basic version/information about zmap. */
char
*
zMapGetAppName
(
void
)
;
char
*
zMapGetAppTitle
(
void
)
;
char
*
zMapGetCopyrightString
(
void
)
;
char
*
zMapGetCommentsString
(
void
)
;
char
*
zMapGetLicenseString
(
void
)
;
int
zMapGetVersion
(
void
)
;
char
*
zMapGetVersionString
(
void
)
;
gboolean
zMapCompareVersionStings
(
char
*
reference_version
,
char
*
test_version
)
;
...
...
This diff is collapsed.
Click to expand it.
src/zmapUtils/zmapUtils.c
+
25
−
3
View file @
1b08d986
...
...
@@ -26,9 +26,9 @@
*
* Exported functions: See ZMap/zmapUtils.h
* HISTORY:
* Last edited:
Nov 17 10:40
200
5
(edgrif)
* Last edited:
Feb 20 11:15
200
6
(edgrif)
* Created: Fri Mar 12 08:16:24 2004 (edgrif)
* CVS info: $Id: zmapUtils.c,v 1.1
4
200
5-11-18 10:55:49
edgrif Exp $
* CVS info: $Id: zmapUtils.c,v 1.1
5
200
6-02-21 15:05:31
edgrif Exp $
*-------------------------------------------------------------------
*/
...
...
@@ -187,7 +187,29 @@ char *zMapGetAppTitle(void)
* */
char
*
zMapGetCopyrightString
(
void
)
{
return
ZMAP_COPYRIGHT_STRING
(
ZMAP_TITLE
,
ZMAP_VERSION
,
ZMAP_RELEASE
,
ZMAP_UPDATE
,
ZMAP_DESCRIPTION
)
;
return
ZMAP_COPYRIGHT_STRING
()
;
}
/*!
* Returns a comments string for the ZMap application.
*
* @param void None.
* @return The comments as a string.
* */
char
*
zMapGetCommentsString
(
void
)
{
return
ZMAP_COMMENTS_STRING
(
ZMAP_TITLE
,
ZMAP_VERSION
,
ZMAP_RELEASE
,
ZMAP_UPDATE
)
;
}
/*!
* Returns a license string for the ZMap application.
*
* @param void None.
* @return The license as a string.
* */
char
*
zMapGetLicenseString
(
void
)
{
return
ZMAP_LICENSE_STRING
()
;
}
...
...
This diff is collapsed.
Click to expand it.
src/zmapUtils/zmapUtils_P.h
+
32
−
6
View file @
1b08d986
...
...
@@ -25,9 +25,9 @@
* Description:
* Exported functions: See XXXXXXXXXXXXX.h
* HISTORY:
* Last edited:
Nov 1
0 11:2
8
200
5
(edgrif)
* Last edited:
Feb 2
0 11:2
7
200
6
(edgrif)
* Created: Wed Mar 31 11:53:45 2004 (edgrif)
* CVS info: $Id: zmapUtils_P.h,v 1.
9
200
5-11-1
1 1
2
:0
8:5
1 edgrif Exp $
* CVS info: $Id: zmapUtils_P.h,v 1.
10
200
6-02-2
1 1
5
:0
5:3
1 edgrif Exp $
*-------------------------------------------------------------------
*/
#ifndef ZMAP_UTILS_P_H
...
...
@@ -58,25 +58,51 @@ ZMAP_MAKESTRING(VERSION) "." ZMAP_MAKESTRING(RELEASE) "." ZMAP_MAKESTRING(UPDATE
TITLE " - " ZMAP_MAKE_VERSION_STRING(VERSION, RELEASE, UPDATE)
/* Create a copyright string for dialogs etc. */
#define ZMAP_COPYRIGHT_STRING() \
"Copyright (c): Sanger Institute, 2006"
/* Create a comments string for dialogs etc. */
#define ZMAP_COMMENTS_STRING(TITLE, VERSION, RELEASE, UPDATE) \
"("ZMAP_MAKE_TITLE_STRING(TITLE, VERSION, RELEASE, UPDATE)", " \
"compiled on - "__DATE__" "__TIME__")\n" \
"\n" \
"This application is part of the ZMap genome viewer/annotation package originally written by\n" \
"Ed Griffiths (Sanger Institute, UK) edgrif@sanger.ac.uk\n" \
"and Roy Storey (Sanger Institute, UK) rds@sanger.ac.uk)\n"
/* Create a copyright string for dialogs etc. */
#define ZMAP_LICENSE_STRING() \
"ZMap is distributed under the GNU Public License, see http://www.gnu.org/copyleft/gpl.txt"
/* Create a copyright string to insert in the compiled application, this will show
* up if someone looks through the executable or does a "what" on the executable. */
#define ZMAP_COPYRIGHT_STRING(TITLE, VERSION, RELEASE, UPDATE, DESCRIPTION_STRING)
\
#define ZMAP_
OBJ_
COPYRIGHT_STRING(TITLE, VERSION, RELEASE, UPDATE, DESCRIPTION_STRING) \
"@(#) \n" \
"@(#) ------------------------------------------------------------------------------------------ \n" \
"@(#) Title/Version: "ZMAP_MAKE_TITLE_STRING(TITLE, VERSION, RELEASE, UPDATE)"\n" \
"@(#) Compiled: "__DATE__" "__TIME__"\n" \
"@(#) Description: " DESCRIPTION_STRING"\n" \
"@(#) Copyright (c): Sanger Institute, 200
4
\n" \
"@(#) Copyright (c): Sanger Institute, 200
6
\n" \
"@(#) \n" \
"@(#) This application is part of the ZMap genome
database
package originally written by \n" \
"@(#) This application is part of the ZMap genome
viewer/annotation
package originally written by \n" \
"@(#) Ed Griffiths (Sanger Institute, UK) edgrif@sanger.ac.uk, \n" \
"@(#) and Ro
b Clack
(Sanger Institute, UK) r
nc
@sanger.ac.uk \n"
\
"@(#) and Ro
y Storey
(Sanger Institute, UK) r
ds
@sanger.ac.uk \n" \
"@(#) \n" \
"@(#) ZMap is distributed under the GNU Public License, see http://www.gnu.org/copyleft/gpl.txt \n" \
"@(#) ------------------------------------------------------------------------------------------ \n" \
"@(#) \n"
#define ZMAP_SEPARATOR "/"
/* WE SHOULD BE ABLE TO CALL A FUNC
FOR THIS..... */
...
...
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