Minor tweaks. Upped version to v2.0.3.

This commit is contained in:
Andy McFadden 2004-08-23 00:00:10 +00:00
parent 3ccb2c16f1
commit cfa822040a
3 changed files with 16 additions and 1 deletions

View File

@ -33,7 +33,7 @@ extern "C" {
*/
#define kNuVersionMajor 2
#define kNuVersionMinor 0
#define kNuVersionBug 2
#define kNuVersionBug 3
/*

View File

@ -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_");

View File

@ -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) {