World of Might and Magic
0.2.0
Open reimplementation of Might and Magic 6 7 8 game engine
|
См. документацию.
103 #if defined(__INTEL_COMPILER) && __INTEL_COMPILER < 1110 || defined(__SUNPRO_C)
104 #define DECLARE_ALIGNED(n,t,v) t __attribute__ ((aligned (n))) v
105 #define DECLARE_ASM_ALIGNED(n,t,v) t __attribute__ ((aligned (n))) v
106 #define DECLARE_ASM_CONST(n,t,v) const t __attribute__ ((aligned (n))) v
107 #elif defined(__DJGPP__)
108 #define DECLARE_ALIGNED(n,t,v) t __attribute__ ((aligned (FFMIN(n, 16)))) v
109 #define DECLARE_ASM_ALIGNED(n,t,v) t av_used __attribute__ ((aligned (FFMIN(n, 16)))) v
110 #define DECLARE_ASM_CONST(n,t,v) static const t av_used __attribute__ ((aligned (FFMIN(n, 16)))) v
111 #elif defined(__GNUC__) || defined(__clang__)
112 #define DECLARE_ALIGNED(n,t,v) t __attribute__ ((aligned (n))) v
113 #define DECLARE_ASM_ALIGNED(n,t,v) t av_used __attribute__ ((aligned (n))) v
114 #define DECLARE_ASM_CONST(n,t,v) static const t av_used __attribute__ ((aligned (n))) v
115 #elif defined(_MSC_VER)
116 #define DECLARE_ALIGNED(n,t,v) __declspec(align(n)) t v
117 #define DECLARE_ASM_ALIGNED(n,t,v) __declspec(align(n)) t v
118 #define DECLARE_ASM_CONST(n,t,v) __declspec(align(n)) static const t v
120 #define DECLARE_ALIGNED(n,t,v) t v
121 #define DECLARE_ASM_ALIGNED(n,t,v) t v
122 #define DECLARE_ASM_CONST(n,t,v) static const t v
145 #if AV_GCC_VERSION_AT_LEAST(3,1)
146 #define av_malloc_attrib __attribute__((__malloc__))
148 #define av_malloc_attrib
166 #if AV_GCC_VERSION_AT_LEAST(4,3)
167 #define av_alloc_size(...) __attribute__((alloc_size(__VA_ARGS__)))
169 #define av_alloc_size(...)
285 av_warn_unused_result
303 void *
av_realloc_f(
void *ptr,
size_t nelem,
size_t elsize);
473 char *
av_strdup(const
char *
s) av_malloc_attrib;
621 av_warn_unused_result
674 if ((
a |
b) >= ((
size_t)1 << (
sizeof(
size_t) * 4)) &&
a &&
t /
a !=
b)
675 return AVERROR(EINVAL);
void * av_malloc(size_t size) av_malloc_attrib av_alloc_size(1)
void * av_dynarray2_add(void **tab_ptr, int *nb_ptr, size_t elem_size, const uint8_t *elem_data)
void * av_memdup(const void *p, size_t size)
void av_max_alloc(size_t max)
void * av_realloc_f(void *ptr, size_t nelem, size_t elsize)
void * av_realloc(void *ptr, size_t size) av_alloc_size(2)
void av_memcpy_backptr(uint8_t *dst, int back, int cnt)
void * av_fast_realloc(void *ptr, unsigned int *size, size_t min_size)
static int av_size_mult(size_t a, size_t b, size_t *r)
void av_fast_mallocz(void *ptr, unsigned int *size, size_t min_size)
void * av_mallocz(size_t size) av_malloc_attrib av_alloc_size(1)
void av_dynarray_add(void *tab_ptr, int *nb_ptr, void *elem)
av_warn_unused_result int av_reallocp(void *ptr, size_t size)
int av_reallocp_array(void *ptr, size_t nmemb, size_t size)
typedef void(SDLCALL *SDL_AudioFilter)(struct SDL_AudioCVT *cvt
GLboolean GLboolean GLboolean b
GLdouble GLdouble GLdouble r
av_warn_unused_result int av_dynarray_add_nofree(void *tab_ptr, int *nb_ptr, void *elem)
void * av_calloc(size_t nmemb, size_t size) av_malloc_attrib
GLboolean GLboolean GLboolean GLboolean a
char * av_strdup(const char *s) av_malloc_attrib
av_alloc_size(1, 2) void *av_malloc_array(size_t nmemb
void av_fast_malloc(void *ptr, unsigned int *size, size_t min_size)
char * av_strndup(const char *s, size_t len) av_malloc_attrib