]> git.saurik.com Git - apple/icu.git/blame - icuSources/test/letest/letest.h
ICU-551.24.tar.gz
[apple/icu.git] / icuSources / test / letest / letest.h
CommitLineData
b75a7d8f
A
1/*
2 *******************************************************************************
3 *
b331163b 4 * Copyright (C) 1999-2014, 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
b331163b
A
17
18#ifdef USING_ICULEHB
19#include "layout/LETypes.h"
20#else
b75a7d8f 21#include "LETypes.h"
b331163b 22#endif
46f4442e 23#include "unicode/ctest.h"
b75a7d8f 24
73c04bcf
A
25#include <stdlib.h>
26#include <string.h>
b75a7d8f 27
46f4442e
A
28U_NAMESPACE_USE
29
73c04bcf
A
30#define ARRAY_SIZE(array) (sizeof array / sizeof array[0])
31
32#define ARRAY_COPY(dst, src, count) memcpy((void *) (dst), (void *) (src), (count) * sizeof (src)[0])
b75a7d8f 33
73c04bcf 34#define NEW_ARRAY(type,count) (type *) malloc((count) * sizeof(type))
b75a7d8f 35
73c04bcf
A
36#define DELETE_ARRAY(array) free((void *) (array))
37
38#define GROW_ARRAY(array,newSize) realloc((void *) (array), (newSize) * sizeof (array)[0])
b75a7d8f
A
39
40struct TestResult
41{
42 le_int32 glyphCount;
43 LEGlyphID *glyphs;
44 le_int32 *indices;
45 float *positions;
46};
46f4442e 47
4388f060 48#ifndef __cplusplus
46f4442e
A
49typedef struct TestResult TestResult;
50#endif
51
52U_CFUNC void addCTests(TestNode **root);
53
73c04bcf 54#endif