forked from hashcat/hashcat
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update LZMA SDK files to version 18.05
- Loading branch information
Showing
9 changed files
with
2,950 additions
and
2,380 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,37 +1,51 @@ | ||
/* Alloc.h -- Memory allocation functions | ||
2017-04-03 : Igor Pavlov : Public domain */ | ||
|
||
#ifndef __COMMON_ALLOC_H | ||
#define __COMMON_ALLOC_H | ||
|
||
#include "7zTypes.h" | ||
|
||
EXTERN_C_BEGIN | ||
|
||
void *MyAlloc(size_t size); | ||
void MyFree(void *address); | ||
|
||
#ifdef _WIN32 | ||
|
||
void SetLargePageSize(void); | ||
|
||
void *MidAlloc(size_t size); | ||
void MidFree(void *address); | ||
void *BigAlloc(size_t size); | ||
void BigFree(void *address); | ||
|
||
#else | ||
|
||
#define MidAlloc(size) MyAlloc(size) | ||
#define MidFree(address) MyFree(address) | ||
#define BigAlloc(size) MyAlloc(size) | ||
#define BigFree(address) MyFree(address) | ||
|
||
#endif | ||
|
||
extern const ISzAlloc g_Alloc; | ||
extern const ISzAlloc g_BigAlloc; | ||
|
||
EXTERN_C_END | ||
|
||
#endif | ||
/* Alloc.h -- Memory allocation functions | ||
2018-02-19 : Igor Pavlov : Public domain */ | ||
|
||
#ifndef __COMMON_ALLOC_H | ||
#define __COMMON_ALLOC_H | ||
|
||
#include "7zTypes.h" | ||
|
||
EXTERN_C_BEGIN | ||
|
||
void *MyAlloc(size_t size); | ||
void MyFree(void *address); | ||
|
||
#ifdef _WIN32 | ||
|
||
void SetLargePageSize(); | ||
|
||
void *MidAlloc(size_t size); | ||
void MidFree(void *address); | ||
void *BigAlloc(size_t size); | ||
void BigFree(void *address); | ||
|
||
#else | ||
|
||
#define MidAlloc(size) MyAlloc(size) | ||
#define MidFree(address) MyFree(address) | ||
#define BigAlloc(size) MyAlloc(size) | ||
#define BigFree(address) MyFree(address) | ||
|
||
#endif | ||
|
||
extern const ISzAlloc g_Alloc; | ||
extern const ISzAlloc g_BigAlloc; | ||
extern const ISzAlloc g_MidAlloc; | ||
extern const ISzAlloc g_AlignedAlloc; | ||
|
||
|
||
typedef struct | ||
{ | ||
ISzAlloc vt; | ||
ISzAllocPtr baseAlloc; | ||
unsigned numAlignBits; /* ((1 << numAlignBits) >= sizeof(void *)) */ | ||
size_t offset; /* (offset == (k * sizeof(void *)) && offset < (1 << numAlignBits) */ | ||
} CAlignOffsetAlloc; | ||
|
||
void AlignOffsetAlloc_CreateVTable(CAlignOffsetAlloc *p); | ||
|
||
|
||
EXTERN_C_END | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,33 @@ | ||
/* Compiler.h | ||
2017-04-03 : Igor Pavlov : Public domain */ | ||
|
||
#ifndef __7Z_COMPILER_H | ||
#define __7Z_COMPILER_H | ||
|
||
#ifdef _MSC_VER | ||
|
||
#ifdef UNDER_CE | ||
#define RPC_NO_WINDOWS_H | ||
/* #pragma warning(disable : 4115) // '_RPC_ASYNC_STATE' : named type definition in parentheses */ | ||
#pragma warning(disable : 4201) // nonstandard extension used : nameless struct/union | ||
#pragma warning(disable : 4214) // nonstandard extension used : bit field types other than int | ||
#endif | ||
|
||
#if _MSC_VER >= 1300 | ||
#pragma warning(disable : 4996) // This function or variable may be unsafe | ||
#else | ||
#pragma warning(disable : 4511) // copy constructor could not be generated | ||
#pragma warning(disable : 4512) // assignment operator could not be generated | ||
#pragma warning(disable : 4514) // unreferenced inline function has been removed | ||
#pragma warning(disable : 4702) // unreachable code | ||
#pragma warning(disable : 4710) // not inlined | ||
#pragma warning(disable : 4714) // function marked as __forceinline not inlined | ||
#pragma warning(disable : 4786) // identifier was truncated to '255' characters in the debug information | ||
#endif | ||
|
||
#endif | ||
|
||
#define UNUSED_VAR(x) (void)x; | ||
/* #define UNUSED_VAR(x) x=x; */ | ||
|
||
#endif | ||
/* Compiler.h | ||
2017-04-03 : Igor Pavlov : Public domain */ | ||
|
||
#ifndef __7Z_COMPILER_H | ||
#define __7Z_COMPILER_H | ||
|
||
#ifdef _MSC_VER | ||
|
||
#ifdef UNDER_CE | ||
#define RPC_NO_WINDOWS_H | ||
/* #pragma warning(disable : 4115) // '_RPC_ASYNC_STATE' : named type definition in parentheses */ | ||
#pragma warning(disable : 4201) // nonstandard extension used : nameless struct/union | ||
#pragma warning(disable : 4214) // nonstandard extension used : bit field types other than int | ||
#endif | ||
|
||
#if _MSC_VER >= 1300 | ||
#pragma warning(disable : 4996) // This function or variable may be unsafe | ||
#else | ||
#pragma warning(disable : 4511) // copy constructor could not be generated | ||
#pragma warning(disable : 4512) // assignment operator could not be generated | ||
#pragma warning(disable : 4514) // unreferenced inline function has been removed | ||
#pragma warning(disable : 4702) // unreachable code | ||
#pragma warning(disable : 4710) // not inlined | ||
#pragma warning(disable : 4714) // function marked as __forceinline not inlined | ||
#pragma warning(disable : 4786) // identifier was truncated to '255' characters in the debug information | ||
#endif | ||
|
||
#endif | ||
|
||
#define UNUSED_VAR(x) (void)x; | ||
/* #define UNUSED_VAR(x) x=x; */ | ||
|
||
#endif |
Oops, something went wrong.