diff --git a/nufxlib-0/NufxLib.h b/nufxlib-0/NufxLib.h index 7d5eafa..94dbf96 100644 --- a/nufxlib-0/NufxLib.h +++ b/nufxlib-0/NufxLib.h @@ -33,7 +33,7 @@ extern "C" { */ #define kNuVersionMajor 2 #define kNuVersionMinor 0 -#define kNuVersionBug 2 +#define kNuVersionBug 3 /* diff --git a/nufxlib-0/samples/Exerciser.c b/nufxlib-0/samples/Exerciser.c index 6ebce9b..b65a712 100644 --- a/nufxlib-0/samples/Exerciser.c +++ b/nufxlib-0/samples/Exerciser.c @@ -1365,6 +1365,9 @@ main(void) * * This environment variable must be set when the program is launched. * Tweaking the environment within the program has no effect. + * + * Now that the Linux world has "valgrind", this is probably + * unnecessary. */ { char* debugSet = getenv("MALLOC_CHECK_"); diff --git a/nufxlib-0/samples/Launder.c b/nufxlib-0/samples/Launder.c index b39bebe..f7cd102 100644 --- a/nufxlib-0/samples/Launder.c +++ b/nufxlib-0/samples/Launder.c @@ -191,6 +191,10 @@ CopyThreadUncompressed(NuArchive* pInArchive, NuArchive* pOutArchive, * already compressed will remain that way, and stuff that isn't * compressed won't be. (We really only need to do this once, at * the start of the program, but it's illustrative to do it here.) + * + * [ I don't understand this comment. It's necessary to disable + * compression, but I don't see why uncompressed files are + * special. ++ATM 20040821 ] */ err = NuSetValue(pOutArchive, kNuValueDataCompression, kNuCompressNone); if (err != kNuErrNone) { @@ -442,6 +446,14 @@ LaunderArchive(const char* inFile, const char* outFile, NuValue compressMethod, goto bail; } + /* turn off "mimic GSHK" */ + err = NuSetValue(pInArchive, kNuValueMimicSHK, true); + if (err != kNuErrNone) { + fprintf(stderr, "ERROR: unable to disable GSHK quirks (err=%d)\n", + err); + goto bail; + } + /* allow duplicates, in case the original archive has them */ err = NuSetValue(pOutArchive, kNuValueAllowDuplicates, true); if (err != kNuErrNone) {