r794 - in trunk: archivers lzma
DONOTREPLY at icculus.org
DONOTREPLY at icculus.org
Wed Sep 27 05:21:56 EDT 2006
Author: icculus
Date: 2006-09-27 05:21:56 -0400 (Wed, 27 Sep 2006)
New Revision: 794
Modified:
trunk/archivers/lzma.c
trunk/lzma/LZMA-LICENSE.txt
Log:
More corrections to lzma support from Dennis.
Modified: trunk/archivers/lzma.c
===================================================================
--- trunk/archivers/lzma.c 2006-09-27 09:18:07 UTC (rev 793)
+++ trunk/archivers/lzma.c 2006-09-27 09:21:56 UTC (rev 794)
@@ -3,7 +3,7 @@
*
* Please see the file LICENSE in the source's root directory.
*
- * This file written by Dennis Schridde, with some peeking at "7zMain.c"
+ * This file is written by Dennis Schridde, with some peeking at "7zMain.c"
* by Igor Pavlov.
*/
@@ -384,7 +384,7 @@
static void *LZMA_openArchive(const char *name, int forWriting)
{
- LZMAarchive *archive;
+ LZMAarchive *archive = NULL;
ISzAlloc allocImp;
ISzAlloc allocTempImp;
@@ -528,14 +528,15 @@
static fvoid *LZMA_openRead(dvoid *opaque, const char *name, int *fileExists)
{
LZMAarchive *archive = (LZMAarchive *) opaque;
+ LZMAentry *entry = NULL;
PHYSFS_uint32 index = 0;
- LZMAentry *entry;
*fileExists = lzma_find_entry(archive, name, &index);
BAIL_IF_MACRO(!*fileExists, ERR_NO_SUCH_FILE, NULL);
entry = (LZMAentry *) allocator.Malloc(sizeof (LZMAentry));
BAIL_IF_MACRO(entry == NULL, ERR_OUT_OF_MEMORY, NULL);
+
entry->index = index;
entry->archive = archive;
entry->file = archive->db.Database.Files + entry->index;
Modified: trunk/lzma/LZMA-LICENSE.txt
===================================================================
--- trunk/lzma/LZMA-LICENSE.txt 2006-09-27 09:18:07 UTC (rev 793)
+++ trunk/lzma/LZMA-LICENSE.txt 2006-09-27 09:21:56 UTC (rev 794)
@@ -1,3 +1,11 @@
+(These are the licensing details for this directory, taken from lzma.txt in
+ the original source distribution. The basic gist is you can do what you want
+ with this code, including sell it in a closed-source app...changes to LZMA
+ itself must be released as source code, which in the case of PhysicsFS, you
+ can just point people to our source code repository unless you make further
+ changes yourself. --ryan.)
+
+
LZMA SDK 4.43
-------------
More information about the physfs-commits
mailing list