Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(65)

Side by Side Diff: third_party/lzma_sdk/Alloc.h

Issue 10152012: Second attempt to update lzma_sdk to 9.20 (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « third_party/lzma_sdk/7z_C.vcproj ('k') | third_party/lzma_sdk/Alloc.c » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* Alloc.h */ 1 /* Alloc.h -- Memory allocation functions
2 2009-02-07 : Igor Pavlov : Public domain */
2 3
3 #ifndef __COMMON_ALLOC_H 4 #ifndef __COMMON_ALLOC_H
4 #define __COMMON_ALLOC_H 5 #define __COMMON_ALLOC_H
5 6
6 #include <stddef.h> 7 #include <stddef.h>
7 8
9 #ifdef __cplusplus
10 extern "C" {
11 #endif
12
8 void *MyAlloc(size_t size); 13 void *MyAlloc(size_t size);
9 void MyFree(void *address); 14 void MyFree(void *address);
10 15
11 #ifdef _WIN32 16 #ifdef _WIN32
12 17
13 void SetLargePageSize(); 18 void SetLargePageSize();
14 19
15 void *MidAlloc(size_t size); 20 void *MidAlloc(size_t size);
16 void MidFree(void *address); 21 void MidFree(void *address);
17 void *BigAlloc(size_t size); 22 void *BigAlloc(size_t size);
18 void BigFree(void *address); 23 void BigFree(void *address);
19 24
20 #else 25 #else
21 26
22 #define MidAlloc(size) MyAlloc(size) 27 #define MidAlloc(size) MyAlloc(size)
23 #define MidFree(address) MyFree(address) 28 #define MidFree(address) MyFree(address)
24 #define BigAlloc(size) MyAlloc(size) 29 #define BigAlloc(size) MyAlloc(size)
25 #define BigFree(address) MyFree(address) 30 #define BigFree(address) MyFree(address)
26 31
27 #endif 32 #endif
28 33
34 #ifdef __cplusplus
35 }
29 #endif 36 #endif
37
38 #endif
OLDNEW
« no previous file with comments | « third_party/lzma_sdk/7z_C.vcproj ('k') | third_party/lzma_sdk/Alloc.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698