Blame


1 d18ca0b8 2002-03-12 alex /*
2 d18ca0b8 2002-03-12 alex * ngIRCd -- The Next Generation IRC Daemon
3 d18ca0b8 2002-03-12 alex * Copyright (c)2001,2002 by Alexander Barton (alex@barton.de)
4 d18ca0b8 2002-03-12 alex *
5 f0d633b5 2002-12-12 alex * This program is free software; you can redistribute it and/or modify
6 f0d633b5 2002-12-12 alex * it under the terms of the GNU General Public License as published by
7 f0d633b5 2002-12-12 alex * the Free Software Foundation; either version 2 of the License, or
8 f0d633b5 2002-12-12 alex * (at your option) any later version.
9 f0d633b5 2002-12-12 alex * Please read the file COPYING, README and AUTHORS for more information.
10 d18ca0b8 2002-03-12 alex *
11 f0d633b5 2002-12-12 alex * test program for portab.h and friends ;-)
12 d18ca0b8 2002-03-12 alex */
13 d18ca0b8 2002-03-12 alex
14 d18ca0b8 2002-03-12 alex
15 d18ca0b8 2002-03-12 alex #include "portab.h"
16 d18ca0b8 2002-03-12 alex
17 f0d633b5 2002-12-12 alex static char UNUSED id[] = "$Id: portabtest.c,v 1.9 2002/12/12 11:38:46 alex Exp $";
18 f0d633b5 2002-12-12 alex
19 d18ca0b8 2002-03-12 alex #include "imp.h"
20 d18ca0b8 2002-03-12 alex #include <stdio.h>
21 d18ca0b8 2002-03-12 alex
22 d18ca0b8 2002-03-12 alex #include "exp.h"
23 d18ca0b8 2002-03-12 alex
24 d18ca0b8 2002-03-12 alex
25 ba258e65 2002-05-27 alex GLOBAL int
26 ba258e65 2002-05-27 alex main( VOID )
27 d18ca0b8 2002-03-12 alex {
28 dd4535b7 2002-09-09 alex /* Datentypen pruefen */
29 dd4535b7 2002-09-09 alex if( FALSE != 0 ) return 1;
30 dd4535b7 2002-09-09 alex if( TRUE != 1 ) return 1;
31 dd4535b7 2002-09-09 alex if( sizeof( INT8 ) != 1 ) return 1;
32 dd4535b7 2002-09-09 alex if( sizeof( UINT8 ) != 1 ) return 1;
33 dd4535b7 2002-09-09 alex if( sizeof( INT16 ) != 2 ) return 1;
34 dd4535b7 2002-09-09 alex if( sizeof( UINT16 ) != 2 ) return 1;
35 dd4535b7 2002-09-09 alex if( sizeof( INT32 ) != 4 ) return 1;
36 dd4535b7 2002-09-09 alex if( sizeof( UINT32 ) != 4 ) return 1;
37 dd4535b7 2002-09-09 alex
38 dd4535b7 2002-09-09 alex /* kein Fehler */
39 dd4535b7 2002-09-09 alex return 0;
40 d18ca0b8 2002-03-12 alex } /* portab_check_types */
41 d18ca0b8 2002-03-12 alex
42 d18ca0b8 2002-03-12 alex
43 d18ca0b8 2002-03-12 alex /* -eof- */