ReactOS 0.4.16-dev-125-g798ea90
|
#include "config.h"
#include <string.h>
#include <ctype.h>
#include <sys/types.h>
#include <stdarg.h>
#include <stdio.h>
#include "windef.h"
#include "winbase.h"
#include "lzexpand.h"
#include "wine/unicode.h"
#include "wine/debug.h"
Go to the source code of this file.
Classes | |
struct | lzfileheader |
struct | lzstate |
Macros | |
#define | GETLEN 2048 |
#define | LZ_MAGIC_LEN 8 |
#define | LZ_HEADER_LEN 14 |
#define | LZ_TABLE_SIZE 0x1000 |
#define | MAX_LZSTATES 16 |
#define | LZ_MIN_HANDLE 0x400 |
#define | IS_LZ_HANDLE(h) (((h) >= LZ_MIN_HANDLE) && ((h) < LZ_MIN_HANDLE+MAX_LZSTATES)) |
#define | GET_LZ_STATE(h) (IS_LZ_HANDLE(h) ? lzstates[(h)-LZ_MIN_HANDLE] : NULL) |
#define | GET(lzs, b) _lzget(lzs,&b) |
#define | GET_FLUSH(lzs) lzs->getcur=lzs->getlen; |
#define | DECOMPRESS_ONE_BYTE |
#define | BUFLEN 1000 |
Functions | |
WINE_DEFAULT_DEBUG_CHANNEL (file) | |
static int | _lzget (struct lzstate *lzs, BYTE *b) |
static INT | read_header (HFILE fd, struct lzfileheader *head) |
INT WINAPI | LZStart (void) |
HFILE WINAPI | LZInit (HFILE hfSrc) |
void WINAPI | LZDone (void) |
INT WINAPI | GetExpandedNameA (LPSTR in, LPSTR out) |
INT WINAPI | GetExpandedNameW (LPWSTR in, LPWSTR out) |
INT WINAPI | LZRead (HFILE fd, LPSTR vbuf, INT toread) |
LONG WINAPI | LZSeek (HFILE fd, LONG off, INT type) |
LONG WINAPI | LZCopy (HFILE src, HFILE dest) |
static LPSTR | LZEXPAND_MangleName (LPCSTR fn) |
HFILE WINAPI | LZOpenFileA (LPSTR fn, LPOFSTRUCT ofs, WORD mode) |
HFILE WINAPI | LZOpenFileW (LPWSTR fn, LPOFSTRUCT ofs, WORD mode) |
void WINAPI | LZClose (HFILE fd) |
Variables | |
static const BYTE | LZMagic [LZ_MAGIC_LEN] ={'S','Z','D','D',0x88,0xf0,0x27,0x33} |
static struct lzstate * | lzstates [MAX_LZSTATES] |
#define BUFLEN 1000 |
#define DECOMPRESS_ONE_BYTE |
#define GET_FLUSH | ( | lzs | ) | lzs->getcur=lzs->getlen; |
Definition at line 124 of file lzexpand.c.
#define GET_LZ_STATE | ( | h | ) | (IS_LZ_HANDLE(h) ? lzstates[(h)-LZ_MIN_HANDLE] : NULL) |
Definition at line 120 of file lzexpand.c.
#define GETLEN 2048 |
Definition at line 77 of file lzexpand.c.
#define IS_LZ_HANDLE | ( | h | ) | (((h) >= LZ_MIN_HANDLE) && ((h) < LZ_MIN_HANDLE+MAX_LZSTATES)) |
Definition at line 119 of file lzexpand.c.
#define LZ_HEADER_LEN 14 |
Definition at line 80 of file lzexpand.c.
#define LZ_MAGIC_LEN 8 |
Definition at line 79 of file lzexpand.c.
#define LZ_MIN_HANDLE 0x400 |
Definition at line 118 of file lzexpand.c.
#define LZ_TABLE_SIZE 0x1000 |
Definition at line 91 of file lzexpand.c.
#define MAX_LZSTATES 16 |
Definition at line 115 of file lzexpand.c.
Definition at line 127 of file lzexpand.c.
Definition at line 257 of file lzexpand.c.
Referenced by GetExpandedNameW(), and main().
Definition at line 327 of file lzexpand.c.
Definition at line 595 of file lzexpand.c.
Referenced by create_file(), create_fileW(), decompress_file_lz(), delete_file(), delete_fileW(), do_file_copyW(), get_file_sizes_lz(), GetFileVersionInfoExW(), GetFileVersionInfoSizeExW(), Imm32CopyImeFile(), LZCopy(), main(), test_LZCopy(), test_LZOpenFileA(), test_LZOpenFileA_existing_compressed(), test_LZOpenFileW(), test_LZOpenFileW_existing_compressed(), test_LZRead(), TLB_NEFile_Open(), and VerInstallFileA().
Definition at line 467 of file lzexpand.c.
Referenced by decompress_file_lz(), do_file_copyW(), Imm32CopyImeFile(), main(), test_LZCopy(), and VerInstallFileA().
Definition at line 240 of file lzexpand.c.
Definition at line 528 of file lzexpand.c.
Referenced by LZOpenFileA().
Definition at line 197 of file lzexpand.c.
Referenced by LZCopy(), and LZOpenFileA().
HFILE WINAPI LZOpenFileA | ( | LPSTR | fn, |
LPOFSTRUCT | ofs, | ||
WORD | mode | ||
) |
Definition at line 551 of file lzexpand.c.
Referenced by create_file(), delete_file(), LZOpenFileW(), main(), test_LZCopy(), test_LZOpenFileA(), test_LZOpenFileA_existing_compressed(), test_LZOpenFileA_nonexisting_compressed(), test_LZRead(), and VerInstallFileA().
HFILE WINAPI LZOpenFileW | ( | LPWSTR | fn, |
LPOFSTRUCT | ofs, | ||
WORD | mode | ||
) |
Definition at line 580 of file lzexpand.c.
Referenced by create_fileW(), decompress_file_lz(), delete_fileW(), do_file_copyW(), get_file_sizes_lz(), GetFileVersionInfoExW(), GetFileVersionInfoSizeExW(), Imm32CopyImeFile(), test_LZOpenFileW(), test_LZOpenFileW_existing_compressed(), test_LZOpenFileW_nonexisting_compressed(), and TLB_NEFile_Open().
Definition at line 345 of file lzexpand.c.
Referenced by find_ne_resource(), find_pe_resource(), GetFileVersionInfoExW(), LZCopy(), read_xx_header(), test_LZRead(), and TLB_NEFile_Open().
Definition at line 431 of file lzexpand.c.
Referenced by find_ne_resource(), find_pe_resource(), get_file_sizes_lz(), GetFileVersionInfoExW(), read_xx_header(), and TLB_NEFile_Open().
Definition at line 179 of file lzexpand.c.
|
static |
Definition at line 149 of file lzexpand.c.
Referenced by GetExpandedNameA(), and LZInit().
WINE_DEFAULT_DEBUG_CHANNEL | ( | file | ) |
Definition at line 89 of file lzexpand.c.
Referenced by read_header().
|
static |
Definition at line 116 of file lzexpand.c.