]> arthur.barton.de Git - ngircd-alex.git/blobdiff - src/portab/portabtest.c
- Test auf zlib sowie neue Option "--disable-zlib".
[ngircd-alex.git] / src / portab / portabtest.c
index 29ea7f60a52bdfc6cf37edca5eee45cd7b185630..d7e8d8146be58a56326d89489c3833df9ebde094 100644 (file)
@@ -9,7 +9,7 @@
  * Naehere Informationen entnehmen Sie bitter der Datei COPYING. Eine Liste
  * der an ngIRCd beteiligten Autoren finden Sie in der Datei AUTHORS.
  *
- * $Id: portabtest.c,v 1.1 2002/03/12 14:36:44 alex Exp $
+ * $Id: portabtest.c,v 1.8 2002/09/09 10:05:10 alex Exp $
  *
  * portabtest.c: Testprogramm fuer portab.h
  */
 #include "exp.h"
 
 
-LOCAL BOOLEAN portab_check_types( VOID );
-
-
-GLOBAL INT main( VOID )
-{
-       INT ret = 0;
-
-       printf( "- datatypes: ");
-       if( ! portab_check_types( ))
-       {
-               puts( "FAILED!" );
-               ret = 1;
-       }
-       else puts( "ok." );
-
-       puts( "- system type: "P_OSNAME"/"P_ARCHNAME );
-
-       return ret;
-} /* main */
-
-
-LOCAL BOOLEAN portab_check_types( VOID )
+GLOBAL int
+main( VOID )
 {
-       if( FALSE != 0 ) return 0;
-       if( TRUE != 1 ) return 0;
-       if( sizeof( INT8 ) != 1 ) return 0;
-       if( sizeof( UINT8 ) != 1 ) return 0;
-       if( sizeof( INT16 ) != 2 ) return 0;
-       if( sizeof( UINT16 ) != 2 ) return 0;
-       if( sizeof( INT32 ) != 4 ) return 0;
-       if( sizeof( UINT32 ) != 4 ) return 0;
-       return 1;
+       /* Datentypen pruefen */
+       if( FALSE != 0 ) return 1;
+       if( TRUE != 1 ) return 1;
+       if( sizeof( INT8 ) != 1 ) return 1;
+       if( sizeof( UINT8 ) != 1 ) return 1;
+       if( sizeof( INT16 ) != 2 ) return 1;
+       if( sizeof( UINT16 ) != 2 ) return 1;
+       if( sizeof( INT32 ) != 4 ) return 1;
+       if( sizeof( UINT32 ) != 4 ) return 1;
+       
+       /* kein Fehler */
+       return 0;
 } /* portab_check_types */