nulib2/nufxlib-0/Version.c.in
Andy McFadden 3841a233b2 Added support for kNuValMaskDataless, which hides records with no data
threads by giving them an empty data fork (and, if it's an extended
file, an empty resource fork).  This allows applications to simply
ignore the bogus records and let NufxLib do the dirty work.

Fixed dataless thread handling for the original (non-masked) case.  We
weren't creating empty resource forks when required, so a dataless
record with a forked-file storage type wouldn't be recreated properly
if extracted and then added.

Added version numbers to the public header, so applications can test
for "compiled" version vs "linked" version.
2003-01-10 22:47:24 +00:00

39 lines
1.2 KiB
C

/*
* NuFX archive manipulation library
* Copyright (C) 2000-2002 by Andy McFadden, All Rights Reserved.
* This is free software; you can redistribute it and/or modify it under the
* terms of the GNU Library General Public License, see the file COPYING-LIB.
*
* !!! NOTE !!!
* The file Version.c is automatically generated from Version.c.in. Don't
* edit the .c file if you want your changes to be permanent.
*/
#include "NufxLibPriv.h"
/* executable was build on or after this date (inserted automatically) */
/* (some compilers e.g. MSC have __DATE__; use that?) */
static const char gNuBuildDate[] = "BUILT"; /* approximate */
static const char gNuBuildFlags[] = "OPTFLAGS";
/*
* 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 != nil)
*pMajorVersion = kNuVersionMajor;
if (pMinorVersion != nil)
*pMinorVersion = kNuVersionMinor;
if (pBugVersion != nil)
*pBugVersion = kNuVersionBug;
if (ppBuildDate != nil)
*ppBuildDate = gNuBuildDate;
if (ppBuildFlags != nil)
*ppBuildFlags = gNuBuildFlags;
return kNuErrNone;
}