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