]>
Commit | Line | Data |
---|---|---|
b75a7d8f A |
1 | /* |
2 | ******************************************************************************* | |
3 | * | |
4388f060 | 4 | * Copyright (C) 1999-2011, International Business Machines |
b75a7d8f A |
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 | ||
73c04bcf A |
14 | #ifndef __LETEST_H |
15 | #define __LETEST_H | |
16 | ||
b75a7d8f | 17 | #include "LETypes.h" |
46f4442e | 18 | #include "unicode/ctest.h" |
b75a7d8f | 19 | |
73c04bcf A |
20 | #include <stdlib.h> |
21 | #include <string.h> | |
b75a7d8f | 22 | |
46f4442e A |
23 | U_NAMESPACE_USE |
24 | ||
73c04bcf A |
25 | #define ARRAY_SIZE(array) (sizeof array / sizeof array[0]) |
26 | ||
27 | #define ARRAY_COPY(dst, src, count) memcpy((void *) (dst), (void *) (src), (count) * sizeof (src)[0]) | |
b75a7d8f | 28 | |
73c04bcf | 29 | #define NEW_ARRAY(type,count) (type *) malloc((count) * sizeof(type)) |
b75a7d8f | 30 | |
73c04bcf A |
31 | #define DELETE_ARRAY(array) free((void *) (array)) |
32 | ||
33 | #define GROW_ARRAY(array,newSize) realloc((void *) (array), (newSize) * sizeof (array)[0]) | |
b75a7d8f A |
34 | |
35 | struct TestResult | |
36 | { | |
37 | le_int32 glyphCount; | |
38 | LEGlyphID *glyphs; | |
39 | le_int32 *indices; | |
40 | float *positions; | |
41 | }; | |
46f4442e | 42 | |
4388f060 | 43 | #ifndef __cplusplus |
46f4442e A |
44 | typedef struct TestResult TestResult; |
45 | #endif | |
46 | ||
47 | U_CFUNC void addCTests(TestNode **root); | |
48 | ||
73c04bcf | 49 | #endif |