defaultCustomNULL replaced with defaultCustomMem
This commit is contained in:
@@ -259,6 +259,5 @@ int ZSTD_isSkipFrame(ZSTD_DCtx* dctx);
|
|||||||
void* ZSTD_defaultAllocFunction(void* opaque, size_t size);
|
void* ZSTD_defaultAllocFunction(void* opaque, size_t size);
|
||||||
void ZSTD_defaultFreeFunction(void* opaque, void* address);
|
void ZSTD_defaultFreeFunction(void* opaque, void* address);
|
||||||
static ZSTD_customMem const defaultCustomMem = { ZSTD_defaultAllocFunction, ZSTD_defaultFreeFunction, NULL };
|
static ZSTD_customMem const defaultCustomMem = { ZSTD_defaultAllocFunction, ZSTD_defaultFreeFunction, NULL };
|
||||||
static ZSTD_customMem const defaultCustomNULL = { NULL, NULL, NULL };
|
|
||||||
|
|
||||||
#endif /* ZSTD_CCOMMON_H_MODULE */
|
#endif /* ZSTD_CCOMMON_H_MODULE */
|
||||||
|
|||||||
@@ -100,7 +100,7 @@ struct ZBUFF_CCtx_s {
|
|||||||
|
|
||||||
ZBUFF_CCtx* ZBUFF_createCCtx(void)
|
ZBUFF_CCtx* ZBUFF_createCCtx(void)
|
||||||
{
|
{
|
||||||
return ZBUFF_createCCtx_advanced(defaultCustomNULL);
|
return ZBUFF_createCCtx_advanced(defaultCustomMem);
|
||||||
}
|
}
|
||||||
|
|
||||||
ZBUFF_CCtx* ZBUFF_createCCtx_advanced(ZSTD_customMem customMem)
|
ZBUFF_CCtx* ZBUFF_createCCtx_advanced(ZSTD_customMem customMem)
|
||||||
|
|||||||
@@ -121,7 +121,7 @@ struct ZSTD_CCtx_s
|
|||||||
|
|
||||||
ZSTD_CCtx* ZSTD_createCCtx(void)
|
ZSTD_CCtx* ZSTD_createCCtx(void)
|
||||||
{
|
{
|
||||||
return ZSTD_createCCtx_advanced(defaultCustomNULL);
|
return ZSTD_createCCtx_advanced(defaultCustomMem);
|
||||||
}
|
}
|
||||||
|
|
||||||
ZSTD_CCtx* ZSTD_createCCtx_advanced(ZSTD_customMem customMem)
|
ZSTD_CCtx* ZSTD_createCCtx_advanced(ZSTD_customMem customMem)
|
||||||
|
|||||||
@@ -88,7 +88,7 @@ struct ZBUFF_DCtx_s {
|
|||||||
|
|
||||||
ZBUFF_DCtx* ZBUFF_createDCtx(void)
|
ZBUFF_DCtx* ZBUFF_createDCtx(void)
|
||||||
{
|
{
|
||||||
return ZBUFF_createDCtx_advanced(defaultCustomNULL);
|
return ZBUFF_createDCtx_advanced(defaultCustomMem);
|
||||||
}
|
}
|
||||||
|
|
||||||
ZBUFF_DCtx* ZBUFF_createDCtx_advanced(ZSTD_customMem customMem)
|
ZBUFF_DCtx* ZBUFF_createDCtx_advanced(ZSTD_customMem customMem)
|
||||||
|
|||||||
@@ -166,7 +166,7 @@ ZSTD_DCtx* ZSTD_createDCtx_advanced(ZSTD_customMem customMem)
|
|||||||
|
|
||||||
ZSTD_DCtx* ZSTD_createDCtx(void)
|
ZSTD_DCtx* ZSTD_createDCtx(void)
|
||||||
{
|
{
|
||||||
return ZSTD_createDCtx_advanced(defaultCustomNULL);
|
return ZSTD_createDCtx_advanced(defaultCustomMem);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user