mirror of
https://github.com/fadden/nulib2.git
synced 2024-11-20 06:34:46 +00:00
9666ebd97a
Having the method name up against the left edge used to be common practice, because you could jump to a method quickly by searching for "^name". Now we have "ctags" and IDEs.
42 lines
1.1 KiB
C
42 lines
1.1 KiB
C
/*
|
|
* NuFX archive manipulation library
|
|
* Copyright (C) 2000-2007 by Andy McFadden, All Rights Reserved.
|
|
* This is free software; you can redistribute it and/or modify it under the
|
|
* terms of the BSD License, see the file COPYING-LIB.
|
|
*/
|
|
#include "NufxLibPriv.h"
|
|
|
|
/* executable was build on or after this date */
|
|
#ifdef __DATE__
|
|
static const char gNuBuildDate[] = __DATE__;
|
|
#else
|
|
static const char gNuBuildDate[] = "??? ?? ????";
|
|
#endif
|
|
|
|
#ifdef OPTFLAGSTR
|
|
static const char gNuBuildFlags[] = OPTFLAGSTR;
|
|
#else
|
|
static const char gNuBuildFlags[] = "-";
|
|
#endif
|
|
|
|
|
|
/*
|
|
* Return the version number, date built, and build flags.
|
|
*/
|
|
NuError Nu_GetVersion(long* pMajorVersion, long* pMinorVersion,
|
|
long* pBugVersion, const char** ppBuildDate, const char** ppBuildFlags)
|
|
{
|
|
if (pMajorVersion != NULL)
|
|
*pMajorVersion = kNuVersionMajor;
|
|
if (pMinorVersion != NULL)
|
|
*pMinorVersion = kNuVersionMinor;
|
|
if (pBugVersion != NULL)
|
|
*pBugVersion = kNuVersionBug;
|
|
if (ppBuildDate != NULL)
|
|
*ppBuildDate = gNuBuildDate;
|
|
if (ppBuildFlags != NULL)
|
|
*ppBuildFlags = gNuBuildFlags;
|
|
return kNuErrNone;
|
|
}
|
|
|