wxMaxima
Loading...
Searching...
No Matches
types.h
Go to the documentation of this file.
1/* Copyright 2013 Google Inc. All Rights Reserved.
2
3 Distributed under MIT license.
4 See file LICENSE for detail or copy at https://opensource.org/licenses/MIT
5*/
6
12#ifndef BROTLI_COMMON_TYPES_H_
13#define BROTLI_COMMON_TYPES_H_
14
15#include <stddef.h> /* for size_t */
16
17#if defined(_MSC_VER) && (_MSC_VER < 1600)
18typedef __int8 int8_t;
19typedef unsigned __int8 uint8_t;
20typedef __int16 int16_t;
21typedef unsigned __int16 uint16_t;
22typedef __int32 int32_t;
23typedef unsigned __int32 uint32_t;
24typedef unsigned __int64 uint64_t;
25typedef __int64 int64_t;
26#else
27#include <stdint.h>
28#endif /* defined(_MSC_VER) && (_MSC_VER < 1600) */
29
49#define BROTLI_BOOL int
51#define BROTLI_TRUE 1
53#define BROTLI_FALSE 0
55#define TO_BROTLI_BOOL(X) (!!(X) ? BROTLI_TRUE : BROTLI_FALSE)
56
57#define BROTLI_MAKE_UINT64_T(high, low) ((((uint64_t)(high)) << 32) | low)
58
59#define BROTLI_UINT32_MAX (~((uint32_t)0))
60#define BROTLI_SIZE_MAX (~((size_t)0))
61
71typedef void* (*brotli_alloc_func)(void* opaque, size_t size);
72
81typedef void (*brotli_free_func)(void* opaque, void* address);
82
83#endif /* BROTLI_COMMON_TYPES_H_ */
void(* brotli_free_func)(void *opaque, void *address)
Deallocating function pointer type.
Definition: types.h:81