]> git.saurik.com Git - apple/icu.git/blob - icuSources/test/letest/letest.h
ICU-8.11.tar.gz
[apple/icu.git] / icuSources / test / letest / letest.h
1 /*
2 *******************************************************************************
3 *
4 * Copyright (C) 1999-2006, International Business Machines
5 * Corporation and others. All Rights Reserved.
6 *
7 *******************************************************************************
8 * file name: letest.h
9 *
10 * created on: 11/06/2000
11 * created by: Eric R. Mader
12 */
13
14 #ifndef __LETEST_H
15 #define __LETEST_H
16
17 #include "LETypes.h"
18
19 #include <stdlib.h>
20 #include <string.h>
21
22 #define ARRAY_SIZE(array) (sizeof array / sizeof array[0])
23
24 #define ARRAY_COPY(dst, src, count) memcpy((void *) (dst), (void *) (src), (count) * sizeof (src)[0])
25
26 #define NEW_ARRAY(type,count) (type *) malloc((count) * sizeof(type))
27
28 #define DELETE_ARRAY(array) free((void *) (array))
29
30 #define GROW_ARRAY(array,newSize) realloc((void *) (array), (newSize) * sizeof (array)[0])
31
32 struct TestResult
33 {
34 le_int32 glyphCount;
35 LEGlyphID *glyphs;
36 le_int32 *indices;
37 float *positions;
38 };
39 #endif