cscg24-guacamole

CSCG 2024 Challenge 'Guacamole Mashup'
git clone https://git.sinitax.com/sinitax/cscg24-guacamole
Log | Files | Refs | sfeed.txt

heap.h (1407B)


      1/**
      2 * WinPR: Windows Portable Runtime
      3 * Heap Memory Allocation
      4 *
      5 * Copyright 2012 Marc-Andre Moreau <marcandre.moreau@gmail.com>
      6 *
      7 * Licensed under the Apache License, Version 2.0 (the "License");
      8 * you may not use this file except in compliance with the License.
      9 * You may obtain a copy of the License at
     10 *
     11 *     http://www.apache.org/licenses/LICENSE-2.0
     12 *
     13 * Unless required by applicable law or agreed to in writing, software
     14 * distributed under the License is distributed on an "AS IS" BASIS,
     15 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     16 * See the License for the specific language governing permissions and
     17 * limitations under the License.
     18 */
     19
     20#ifndef WINPR_HEAP_H
     21#define WINPR_HEAP_H
     22
     23#include <stdio.h>
     24#include <stdlib.h>
     25#include <string.h>
     26#include <winpr/winpr.h>
     27#include <winpr/wtypes.h>
     28
     29#ifndef _WIN32
     30
     31#define HEAP_GENERATE_EXCEPTIONS 0x00000004
     32#define HEAP_NO_SERIALIZE 0x00000001
     33#define HEAP_ZERO_MEMORY 0x00000008
     34#define HEAP_REALLOC_IN_PLACE_ONLY 0x00000010
     35
     36#ifdef __cplusplus
     37extern "C"
     38{
     39#endif
     40
     41	WINPR_API HANDLE GetProcessHeap(void);
     42	WINPR_API LPVOID HeapAlloc(HANDLE hHeap, DWORD dwFlags, SIZE_T dwBytes);
     43	WINPR_API LPVOID HeapReAlloc(HANDLE hHeap, DWORD dwFlags, LPVOID lpMem, SIZE_T dwBytes);
     44	WINPR_API BOOL HeapFree(HANDLE hHeap, DWORD dwFlags, LPVOID lpMem);
     45
     46#ifdef __cplusplus
     47}
     48#endif
     49
     50#endif
     51
     52#endif /* WINPR_HEAP_H */