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 d18ca0b8 2002-03-12 alex * Dieses Programm ist freie Software. Sie koennen es unter den Bedingungen
6 d18ca0b8 2002-03-12 alex * der GNU General Public License (GPL), wie von der Free Software Foundation
7 d18ca0b8 2002-03-12 alex * herausgegeben, weitergeben und/oder modifizieren, entweder unter Version 2
8 d18ca0b8 2002-03-12 alex * der Lizenz oder (wenn Sie es wuenschen) jeder spaeteren Version.
9 d18ca0b8 2002-03-12 alex * Naehere Informationen entnehmen Sie bitter der Datei COPYING. Eine Liste
10 d18ca0b8 2002-03-12 alex * der an ngIRCd beteiligten Autoren finden Sie in der Datei AUTHORS.
11 d18ca0b8 2002-03-12 alex *
12 dd4535b7 2002-09-09 alex * $Id: portabtest.c,v 1.8 2002/09/09 10:05:10 alex Exp $
13 d18ca0b8 2002-03-12 alex *
14 d18ca0b8 2002-03-12 alex * portabtest.c: Testprogramm fuer portab.h
15 d18ca0b8 2002-03-12 alex */
16 d18ca0b8 2002-03-12 alex
17 d18ca0b8 2002-03-12 alex
18 d18ca0b8 2002-03-12 alex #include "portab.h"
19 d18ca0b8 2002-03-12 alex
20 d18ca0b8 2002-03-12 alex #include "imp.h"
21 d18ca0b8 2002-03-12 alex #include <stdio.h>
22 d18ca0b8 2002-03-12 alex
23 d18ca0b8 2002-03-12 alex #include "exp.h"
24 d18ca0b8 2002-03-12 alex
25 d18ca0b8 2002-03-12 alex
26 ba258e65 2002-05-27 alex GLOBAL int
27 ba258e65 2002-05-27 alex main( VOID )
28 d18ca0b8 2002-03-12 alex {
29 dd4535b7 2002-09-09 alex /* Datentypen pruefen */
30 dd4535b7 2002-09-09 alex if( FALSE != 0 ) return 1;
31 dd4535b7 2002-09-09 alex if( TRUE != 1 ) return 1;
32 dd4535b7 2002-09-09 alex if( sizeof( INT8 ) != 1 ) return 1;
33 dd4535b7 2002-09-09 alex if( sizeof( UINT8 ) != 1 ) return 1;
34 dd4535b7 2002-09-09 alex if( sizeof( INT16 ) != 2 ) return 1;
35 dd4535b7 2002-09-09 alex if( sizeof( UINT16 ) != 2 ) return 1;
36 dd4535b7 2002-09-09 alex if( sizeof( INT32 ) != 4 ) return 1;
37 dd4535b7 2002-09-09 alex if( sizeof( UINT32 ) != 4 ) return 1;
38 dd4535b7 2002-09-09 alex
39 dd4535b7 2002-09-09 alex /* kein Fehler */
40 dd4535b7 2002-09-09 alex return 0;
41 d18ca0b8 2002-03-12 alex } /* portab_check_types */
42 d18ca0b8 2002-03-12 alex
43 d18ca0b8 2002-03-12 alex
44 d18ca0b8 2002-03-12 alex /* -eof- */