1ca08ab68Smrg/*
2ca08ab68Smrg * Copyright © 2002 Keith Packard
3ca08ab68Smrg * Copyright © 2010 Behdad Esfahbod
4ca08ab68Smrg *
5ca08ab68Smrg * Permission to use, copy, modify, distribute, and sell this software and its
6ca08ab68Smrg * documentation for any purpose is hereby granted without fee, provided that
7ca08ab68Smrg * the above copyright notice appear in all copies and that both that
8ca08ab68Smrg * copyright notice and this permission notice appear in supporting
9ca08ab68Smrg * documentation, and that the name of the author(s) not be used in
10ca08ab68Smrg * advertising or publicity pertaining to distribution of the software without
11ca08ab68Smrg * specific, written prior permission.  The authors make no
12ca08ab68Smrg * representations about the suitability of this software for any purpose.  It
13ca08ab68Smrg * is provided "as is" without express or implied warranty.
14ca08ab68Smrg *
15ca08ab68Smrg * THE AUTHOR(S) DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
16ca08ab68Smrg * INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
17ca08ab68Smrg * EVENT SHALL THE AUTHOR(S) BE LIABLE FOR ANY SPECIAL, INDIRECT OR
18ca08ab68Smrg * CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
19ca08ab68Smrg * DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
20ca08ab68Smrg * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
21ca08ab68Smrg * PERFORMANCE OF THIS SOFTWARE.
22ca08ab68Smrg */
23ca08ab68Smrg
24ca08ab68Smrg#include "fcint.h"
25ca08ab68Smrg#include "fcarch.h"
26953daebaSmrg#include <stdio.h>
27ca08ab68Smrg
28ca08ab68SmrgFC_ASSERT_STATIC (1 == sizeof (char));
29ca08ab68SmrgFC_ASSERT_STATIC (2 == sizeof (FcChar16));
30ca08ab68SmrgFC_ASSERT_STATIC (4 == sizeof (int));
31ca08ab68SmrgFC_ASSERT_STATIC (4 == sizeof (FcChar32));
32ca08ab68SmrgFC_ASSERT_STATIC (4 == sizeof (FcObject));
33ca08ab68SmrgFC_ASSERT_STATIC (4 == sizeof (FcValueBinding));
34ca08ab68SmrgFC_ASSERT_STATIC (8 == sizeof (FcAlign));
35ca08ab68SmrgFC_ASSERT_STATIC (0x20 == sizeof (FcCharLeaf));
36ca08ab68Smrg
37ca08ab68SmrgFC_ASSERT_STATIC (SIZEOF_VOID_P == sizeof (intptr_t));
38ca08ab68SmrgFC_ASSERT_STATIC (SIZEOF_VOID_P == sizeof (FcPatternEltPtr));
39ca08ab68SmrgFC_ASSERT_STATIC (SIZEOF_VOID_P == sizeof (FcValueListPtr));
40ca08ab68SmrgFC_ASSERT_STATIC (SIZEOF_VOID_P == sizeof (char *));
41ca08ab68SmrgFC_ASSERT_STATIC (SIZEOF_VOID_P == sizeof (struct FcPatternElt *));
42ca08ab68SmrgFC_ASSERT_STATIC (SIZEOF_VOID_P == sizeof (FcValueList *));
43ca08ab68SmrgFC_ASSERT_STATIC (SIZEOF_VOID_P == sizeof (FcStrSet *));
44ca08ab68SmrgFC_ASSERT_STATIC (SIZEOF_VOID_P == sizeof (FcCharLeaf **));
45ca08ab68SmrgFC_ASSERT_STATIC (SIZEOF_VOID_P == sizeof (FcChar16 *));
46ca08ab68Smrg
476fc018e4SmrgFC_ASSERT_STATIC (0x08 + 1*FC_MAX(SIZEOF_VOID_P,ALIGNOF_DOUBLE) == sizeof (FcValue));
48ca08ab68SmrgFC_ASSERT_STATIC (0x00 + 2*SIZEOF_VOID_P == sizeof (FcPatternElt));
49ca08ab68SmrgFC_ASSERT_STATIC (0x08 + 2*SIZEOF_VOID_P == sizeof (FcPattern));
50ca08ab68SmrgFC_ASSERT_STATIC (0x08 + 2*SIZEOF_VOID_P == sizeof (FcCharSet));
51953daebaSmrgFC_ASSERT_STATIC (0x10 + 6*SIZEOF_VOID_P == sizeof (FcCache));
52ca08ab68Smrg
53ca08ab68Smrg
54ca08ab68Smrgint
55c9710b42Smrgmain (int argc FC_UNUSED, char **argv FC_UNUSED)
56ca08ab68Smrg{
57ca08ab68Smrg    printf ("%s\n", FC_ARCHITECTURE);
58ca08ab68Smrg    return 0;
59ca08ab68Smrg}
60