Debian Codegraph @

Source/7zip/Common/Alloc.h

raw
1 /*
2 * Alloc.h
3 *
4 * This file is a part of LZMA compression module for NSIS.
5 *
6 * Original LZMA SDK Copyright (C) 1999-2006 Igor Pavlov
7 * Modifications Copyright (C) 2003-2026 Amir Szekely <[email protected]>
8 *
9 * Licensed under the Common Public License version 1.0 (the "License");
10 * you may not use this file except in compliance with the License.
11 *
12 * Licence details can be found in the file COPYING.
13 *
14 * This software is provided 'as-is', without any express or implied
15 * warranty.
16 *
17 * Reviewed for Unicode support by Jim Park -- 08/28/2007
18 */
19
20 #ifndef __COMMON_ALLOC_H
21 #define __COMMON_ALLOC_H
22
23 #include <stddef.h>
24
25 void *MyAlloc(size_t size) throw();
26 void MyFree(void *address) throw();
27
28 #ifdef _WIN32
29
30 bool SetLargePageSize();
31
32 void *MidAlloc(size_t size) throw();
33 void MidFree(void *address) throw();
34 void *BigAlloc(size_t size) throw();
35 void BigFree(void *address) throw();
36
37 #else
38
39 #define MidAlloc(size) MyAlloc(size)
40 #define MidFree(address) MyFree(address)
41 #define BigAlloc(size) MyAlloc(size)
42 #define BigFree(address) MyFree(address)
43
44 #endif
45
46 #endif