moved implementation of CLZMA into clzma.cpp
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@3704 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
parent
38b693f19a
commit
85b2ea48a3
8 changed files with 474 additions and 426 deletions
|
@ -33,22 +33,6 @@ using namespace std;
|
|||
return rc; \
|
||||
} while (false)
|
||||
|
||||
#ifdef NSIS_CONFIG_COMPRESSION_SUPPORT
|
||||
#ifdef _WIN32
|
||||
DWORD WINAPI lzmaCompressThread(LPVOID lpParameter)
|
||||
#else
|
||||
void *lzmaCompressThread(void *lpParameter)
|
||||
#endif
|
||||
{
|
||||
CLZMA *Compressor = (CLZMA *) lpParameter;
|
||||
if (!Compressor)
|
||||
return 0;
|
||||
|
||||
Compressor->CompressReal();
|
||||
return 0;
|
||||
}
|
||||
#endif
|
||||
|
||||
namespace { // begin anonymous namespace
|
||||
|
||||
bool isSimpleChar(char ch)
|
||||
|
@ -2768,7 +2752,7 @@ int CEXEBuild::deflateToFile(FILE *fp, char *buf, int len) // len==0 to flush
|
|||
build_compressor_set=true;
|
||||
|
||||
char obuf[65536];
|
||||
int flush=0;
|
||||
bool flush=false;
|
||||
compressor->SetNextIn(buf,len);
|
||||
if (!buf||!len)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue