mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2026-07-29 22:54:12 +02:00
e4b4ba875b
Replaces the QProcess->7z shim with the public-domain LZMA SDK (23.01) 7-Zip reader, vendored under sources/import/edz/lzma/ (decode-only subset). New edzsevenzip.cpp wraps SzArEx_Open/SzArEx_Extract and writes entries via Qt, so EdzArchive no longer needs an external 7-Zip at runtime. Enables the C language in CMake for the vendored sources. Verified: the bundled decoder extracts all three ifm sample .edz and the generated elements still match the Python oracle exactly (byte-correct decode), with no 7z on the path. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
20 lines
380 B
C
20 lines
380 B
C
/* 7zAlloc.h -- Allocation functions
|
|
2023-03-04 : Igor Pavlov : Public domain */
|
|
|
|
#ifndef ZIP7_INC_7Z_ALLOC_H
|
|
#define ZIP7_INC_7Z_ALLOC_H
|
|
|
|
#include "7zTypes.h"
|
|
|
|
EXTERN_C_BEGIN
|
|
|
|
void *SzAlloc(ISzAllocPtr p, size_t size);
|
|
void SzFree(ISzAllocPtr p, void *address);
|
|
|
|
void *SzAllocTemp(ISzAllocPtr p, size_t size);
|
|
void SzFreeTemp(ISzAllocPtr p, void *address);
|
|
|
|
EXTERN_C_END
|
|
|
|
#endif
|