Andy McFadden
23e5a88e4d
Added support for automatic high-ASCII text stripping. The behavior
...
is activated by a feature flag (default off), and only kicks in when
EOL conversion is on for the file in question.
2003-03-10 23:05:48 +00:00
Andy McFadden
4c253ada9f
Updated remark about zlib.dll.
2003-03-10 23:04:26 +00:00
Andy McFadden
14edb498a9
Remove a wayward tab.
2003-03-10 23:02:48 +00:00
Andy McFadden
472f7dceb0
Enable kNuValueStripHighASCII.
2003-03-10 23:01:44 +00:00
Andy McFadden
575f591f69
Corrected off-by-one error in ProDOS day and month conversion.
2003-03-10 02:40:44 +00:00
Andy McFadden
ab82bd2b4a
Added more detail for a funky error state.
2003-03-10 02:39:33 +00:00
Andy McFadden
2ba8f133b6
Define ZLIB_DLL when we're including ZLIB. If an application is including
...
nufxlib as a DLL, it probably wants to include zlib as a DLL too, rather
than having it statically embedded in nufxlib.
2003-03-09 03:37:06 +00:00
Andy McFadden
4c24cb0c9f
Initialize the "local" error handler to the "global" error handler, so
...
that errors that arise when opening an archive don't get sent to the
uninitialized local handler.
2003-03-09 03:35:24 +00:00
Andy McFadden
38dafdc774
The "actualThreadEOF" value was getting set incorrectly on newly-added
...
message threads. This didn't cause any problems with the archive, but
if you extracted the thread in question without reopening the archive
you ended up getting the whole pre-sized buffer instead of just the part
with data in it.
Load the TOC if needed in Nu_ExtractThread.
When thread extraction fails, don't send an update to the progress
updater if there isn't a progress updater.
2003-03-06 01:37:47 +00:00
Andy McFadden
16460a8d2e
Show all failing CRCs.
...
Added note to README regarding expected failures with "version 1" records.
2003-03-06 01:34:45 +00:00
Andy McFadden
74921ad1c1
Minor tweaks to MSC makefiles.
2003-03-06 01:06:16 +00:00
Andy McFadden
8b44f2a7b2
Minor tweaks to MSC makefile.
2003-03-06 01:06:07 +00:00
Andy McFadden
49f396f5c3
Link against nufxlib2.lib instead of nufxlib.lib.
2003-02-27 21:36:35 +00:00
Andy McFadden
ed801422af
Add major version number to library names, so now we have nufxlib2.lib
...
and nufxlib2.dll. This allows the possibility of having multiple
(incompatible) versions of the DLL installed in a common location, so
that older and newer apps can coexist peacefully.
2003-02-27 21:35:42 +00:00
Andy McFadden
7469f782cb
Added kNuErrFileAccessDenied. Return it when OpenRW fails with an
...
access permission problem, so that an application can follow it with
an OpenRO call for read-only files.
2003-02-27 21:33:29 +00:00
Andy McFadden
36f47b866c
Fixed a bug related to "mask dataless" mode where archives weren't getting
...
reconstructed properly.
Altered "fake" thread initialization to have a *really* invalid file offset
in case somebody tries to use it for math.
2003-02-24 06:31:11 +00:00
Andy McFadden
cb96779bd7
Make test-twirl work under Win32.
2003-02-24 03:48:05 +00:00
Andy McFadden
16234a46d1
Added test-twirl to samples.
2003-02-23 23:46:47 +00:00
Andy McFadden
47e930c7dd
Altered ThreadMod output slightly.
2003-02-23 23:38:30 +00:00
Andy McFadden
b486e6e328
Rearranged for comment-correctness.
2003-02-23 23:37:31 +00:00
Andy McFadden
bee5e41cec
Removed cruft.
2003-02-23 23:36:22 +00:00
Andy McFadden
53bb12944c
Tightened up error handling on some internal-error failures.
2003-02-23 19:14:44 +00:00
Andy McFadden
693ddd6d61
Added "tr" command (NuTestRecord).
2003-02-23 19:13:58 +00:00
Andy McFadden
b5a25968d6
Fixed a rare bug. Put two files in an archive, recompress them (use
...
exerciser dt/at after sev 2 10), flush, then delete the first one and
flush. The archive gets trashed, because the record's fileOffset wasn't
getting updated properly.
2003-02-23 03:26:37 +00:00
Andy McFadden
3c2721d6f8
The thread header CRC computation was broken for LZW/1.
2003-02-23 01:23:02 +00:00
Andy McFadden
104f34629c
Fixed a bug in Nu_RecordSet_MoveAllRecords() that left origRecordSet in
...
an unhappy state after deleting a record. Added a bunch of asserts to
catch similar problems in the future.
2003-02-23 01:09:20 +00:00
Andy McFadden
e546f96f9a
Added NuTestRecord().
2003-02-23 00:31:32 +00:00
Andy McFadden
a55cfee11f
Turn off EOL conversion when extracting disk images.
2003-02-23 00:31:02 +00:00
Andy McFadden
da714d7c9b
Switch to case-insensitive filename comparisons. This matters most when
...
extracting or deleting files by name.
2003-02-18 22:20:30 +00:00
Andy McFadden
fa1222be3d
Switch to case-insensitive filename comparisons. This only affects the
...
comparison between an existing record and a new record being added.
2003-02-18 22:19:17 +00:00
Andy McFadden
fde7b9b18c
Resurrected HandleAddNotFound(). Updated callback setters for changed
...
semantics (return of NuCallback rather than NuError). Initialize the
new origName field.
2003-02-18 21:50:55 +00:00
Andy McFadden
6389da041b
When extracting disk images with "-ee", append ".PO" to filename.
2003-02-18 21:49:25 +00:00
Andy McFadden
8b0b89b5d4
Renamed SetFileDetails to GetFileDetails.
2003-02-18 21:46:52 +00:00
Andy McFadden
56a96dc7eb
Added "original pathname" fields to NuFileDetails and NuErrorStatus.
...
Changed callback setters to return NuCallback instead of NuError.
2003-02-18 21:43:46 +00:00
Andy McFadden
f75f26b69b
Updated for new callback setter return type.
2003-02-18 21:41:10 +00:00
Andy McFadden
e9b4107d2f
Updated comment.
2003-02-18 21:39:44 +00:00
Andy McFadden
8c43a1e571
Updated version number to 200.
...
Updated comments about building against the DLL.
2003-02-09 04:25:57 +00:00
Andy McFadden
962fc796a6
Updated DLL build info.
2003-02-09 04:23:59 +00:00
Andy McFadden
f1d3cfb9b2
Added /nodefaultlib flags to quiet a warning.
2003-02-09 04:22:41 +00:00
Andy McFadden
0564c26a22
Make sure the callback functions all have return values.
2003-02-09 03:18:49 +00:00
Andy McFadden
edb28053dd
Use __DATE__ if it's available (e.g. under MSVC++).
2003-02-09 03:16:41 +00:00
Andy McFadden
31bc838dcb
Added some Asserts.
2003-02-09 03:16:13 +00:00
Andy McFadden
102af95bdd
Track changes to DataSource API in NufxLib.
2003-02-09 01:56:05 +00:00
Andy McFadden
18775bbf04
Complain properly when adding of files fails.
2003-02-09 01:55:26 +00:00
Andy McFadden
05ffc32db0
Properly free data structures.
2003-02-09 01:54:46 +00:00
Andy McFadden
1169554de3
Changed the DataSource API to take resource release callback pointers
...
instead of a "doClose" argument. NufxLib should no longer try to free
anything allocated by the application (or vice-versa).
The DataSource "copy" function now does refcounting instead of copying.
This was done as part of cleaning up some memory leaks in the DataSource
code.
The samples were all updated with the changes to the API (and the
occasional minor valgrind-inspired bug fix).
2003-02-09 01:53:51 +00:00
Andy McFadden
067d6d8e83
Removed remarks about what hoops to jump through when linking against
...
NufxLib as a DLL.
2003-02-09 01:41:41 +00:00
Andy McFadden
9a255d521e
Make valgrind happy.
2003-02-09 01:29:31 +00:00
Andy McFadden
ba99fa7372
Updated copyright notices.
2003-02-08 22:43:24 +00:00
Andy McFadden
0d053dca09
Upped version number to v2.0.0.
...
Fixed filename conversion issues. Specifically:
- Correctly handle '%' when preservation is OFF.
- Accept 4-character extensions in '-ee' without risk of buffer overflow.
- Fixed broken assert when converting long %xx names.
- Store "AUX" as "%00AUX" when preserving names under Win32 (vs. "_AUX").
- Always store files with ':' as path separator.
- Recognize that some Win32 variants (Win2K and later at the least) will
accept both '/' and '\' as pathname separators.
- Correctly convert ".//foo" to "foo" instead of "/foo".
Corrected definition of F_OK under Win32.
2003-02-08 22:35:31 +00:00