Skip to content
Snippets Groups Projects
Commit e47257eb authored by edgrif's avatar edgrif
Browse files

make version macros public.

parent 45fcf251
No related branches found
No related tags found
No related merge requests found
......@@ -24,9 +24,9 @@
*
* Description: Utility functions for ZMap.
* HISTORY:
* Last edited: Nov 17 13:43 2009 (edgrif)
* Last edited: May 6 15:50 2010 (edgrif)
* Created: Thu Feb 26 10:33:10 2004 (edgrif)
* CVS info: $Id: zmapUtils.h,v 1.45 2010-03-04 15:15:18 mh17 Exp $
* CVS info: $Id: zmapUtils.h,v 1.46 2010-05-06 15:20:00 edgrif Exp $
*-------------------------------------------------------------------
*/
#ifndef ZMAP_UTILS_H
......@@ -34,7 +34,8 @@
#include <glib.h>
/* The following defines deliberately come before the subsequent include files because
* those files use these definitions. */
/* Some compilers give more information than others so set up compiler dependant defines. */
......@@ -53,7 +54,6 @@
#endif /* __GNUC__ */
#include <ZMap/zmapUtilsDebug.h>
#include <ZMap/zmapUtilsCheck.h>
#include <ZMap/zmapUtilsMesg.h>
......@@ -76,6 +76,22 @@
#define ZMAP_MAKESTRING(x) ZMAP_PUTSTRING(x)
/* Make a single version number out of the version, release and update numbers. */
#define ZMAP_MAKE_VERSION_NUMBER(VERSION, RELEASE, UPDATE) \
((VERSION * 10000) + (RELEASE * 100) + UPDATE)
/* Make a single version string out of the version, release and update numbers. */
#define ZMAP_MAKE_VERSION_STRING(VERSION, RELEASE, UPDATE) \
ZMAP_MAKESTRING(VERSION) "." ZMAP_MAKESTRING(RELEASE) "." ZMAP_MAKESTRING(UPDATE)
/* Make a title string containing the title of the application/library and
* and the version, release and update numbers. */
#define ZMAP_MAKE_TITLE_STRING(TITLE, VERSION, RELEASE, UPDATE) \
TITLE " - " ZMAP_MAKE_VERSION_STRING(VERSION, RELEASE, UPDATE)
/*!
* Represents a ZMap logging object which will log messages, open/close the log etc. */
typedef struct _ZMapLogStruct *ZMapLog ;
......
......@@ -24,9 +24,9 @@
*
* Description:
* HISTORY:
* Last edited: Apr 23 15:49 2007 (edgrif)
* Last edited: May 6 15:50 2010 (edgrif)
* Created: Wed Mar 31 11:53:45 2004 (edgrif)
* CVS info: $Id: zmapUtils_P.h,v 1.133 2010-05-06 12:27:24 zmap Exp $
* CVS info: $Id: zmapUtils_P.h,v 1.134 2010-05-06 15:20:00 edgrif Exp $
*-------------------------------------------------------------------
*/
#ifndef ZMAP_UTILS_P_H
......@@ -43,20 +43,6 @@
#define ZMAP_UPDATE 91
/* Make a single version number out of the version, release and update numbers. */
#define ZMAP_MAKE_VERSION_NUMBER(VERSION, RELEASE, UPDATE) \
((VERSION * 10000) + (RELEASE * 100) + UPDATE)
/* Make a single version string out of the version, release and update numbers. */
#define ZMAP_MAKE_VERSION_STRING(VERSION, RELEASE, UPDATE) \
ZMAP_MAKESTRING(VERSION) "." ZMAP_MAKESTRING(RELEASE) "." ZMAP_MAKESTRING(UPDATE)
/* Make a title string containing the title of the application/library and
* and the version, release and update numbers. */
#define ZMAP_MAKE_TITLE_STRING(TITLE, VERSION, RELEASE, UPDATE) \
TITLE " - " ZMAP_MAKE_VERSION_STRING(VERSION, RELEASE, UPDATE)
/* Create a copyright string for dialogs etc. */
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment