source: trunk/src/win32k/include/smalloc.h@ 2912

Last change on this file since 2912 was 2506, checked in by bird, 26 years ago

Heap coding nearly completed....

File size: 1.1 KB
Line 
1/* $Id: smalloc.h,v 1.1 2000-01-24 01:44:08 bird Exp $
2 *
3 * Swappable Heap.
4 *
5 * Note: This heap does very little checking on input.
6 * Use with care! We're running at Ring-0!
7 *
8 * Copyright (c) 1999-2000 knut st. osmundsen
9 *
10 * Project Odin Software License can be found in LICENSE.TXT
11 *
12 */
13
14/* XLATOFF */
15#ifndef _SMALLOC_H_
16#define _SMALLOC_H_
17
18#ifdef __cplusplus
19extern "C" {
20#endif
21/* XLATON */
22
23/*******************************************************************************
24* Exported Functions and Variables *
25*******************************************************************************/
26int swpHeapInit(unsigned, unsigned);
27void * smalloc(unsigned);
28void * srealloc(void *, unsigned);
29void sfree(void *);
30
31unsigned _swp_msize(void *);
32int _swp_validptr(void *);
33int _swp_validptr2(void *, unsigned);
34unsigned _swp_memfree(void);
35int _swp_heap_check(void);
36void _swp_heapmin(void);
37void _swp_dump_subheaps(void);
38void _swp_dump_allocated(unsigned);
39
40/* XLATOFF */
41#ifdef __cplusplus
42}
43#endif
44#endif /* _MALLOC_H_ */
45/* XLATON */
46
Note: See TracBrowser for help on using the repository browser.