mirror of https://github.com/fadden/nulib2.git
Minor tweaks. Upped version to v2.0.3.
This commit is contained in:
parent
3ccb2c16f1
commit
cfa822040a
|
@ -33,7 +33,7 @@ extern "C" {
|
|||
*/
|
||||
#define kNuVersionMajor 2
|
||||
#define kNuVersionMinor 0
|
||||
#define kNuVersionBug 2
|
||||
#define kNuVersionBug 3
|
||||
|
||||
|
||||
/*
|
||||
|
|
|
@ -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_");
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue