4 |
/* */ |
/* */ |
5 |
/* The FreeType memory management macros (specification). */ |
/* The FreeType memory management macros (specification). */ |
6 |
/* */ |
/* */ |
7 |
/* Copyright 1996-2001, 2002, 2004 by */ |
/* Copyright 1996-2001, 2002, 2004, 2005 by */ |
8 |
/* David Turner, Robert Wilhelm, and Werner Lemberg */ |
/* David Turner, Robert Wilhelm, and Werner Lemberg */ |
9 |
/* */ |
/* */ |
10 |
/* This file is part of the FreeType project, and may only be used, */ |
/* This file is part of the FreeType project, and may only be used, */ |
260 |
|
|
261 |
#define FT_ZERO( p ) FT_MEM_ZERO( p, sizeof ( *(p) ) ) |
#define FT_ZERO( p ) FT_MEM_ZERO( p, sizeof ( *(p) ) ) |
262 |
|
|
263 |
#define FT_ARRAY_ZERO( dest, count ) \ |
#define FT_ARRAY_ZERO( dest, count ) \ |
264 |
FT_MEM_ZERO( dest, (count)*sizeof( *(dest) ) ) |
FT_MEM_ZERO( dest, (count) * sizeof ( *(dest) ) ) |
265 |
|
|
266 |
#define FT_ARRAY_COPY( dest, source, count ) \ |
#define FT_ARRAY_COPY( dest, source, count ) \ |
267 |
FT_MEM_COPY( dest, source, (count) * sizeof( *(dest) ) ) |
FT_MEM_COPY( dest, source, (count) * sizeof ( *(dest) ) ) |
268 |
|
|
269 |
#define FT_ARRAY_MOVE( dest, source, count ) \ |
#define FT_ARRAY_MOVE( dest, source, count ) \ |
270 |
FT_MEM_MOVE( dest, source, (count) * sizeof( *(dest) ) ) |
FT_MEM_MOVE( dest, source, (count) * sizeof ( *(dest) ) ) |
271 |
|
|
272 |
|
|
273 |
/*************************************************************************/ |
/*************************************************************************/ |