]> arthur.barton.de Git - ngircd-alex.git/blobdiff - src/portab/portabtest.c
- Reihenfolge der Tests geaendert. Ist "huebscher" :-)
[ngircd-alex.git] / src / portab / portabtest.c
index 29ea7f60a52bdfc6cf37edca5eee45cd7b185630..d2cb9204e63afff20a5b89569d7e2559a783bdb1 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.6 2002/06/26 12:48:20 alex Exp $
  *
  * portabtest.c: Testprogramm fuer portab.h
  */
 #include "exp.h"
 
 
-LOCAL BOOLEAN portab_check_types( VOID );
+LOCAL BOOLEAN portab_check_types PARAMS(( VOID ));
 
 
-GLOBAL INT main( VOID )
+GLOBAL int
+main( VOID )
 {
        INT ret = 0;
 
+       printf( "- system type: %s/%s/%s\n", TARGET_CPU, TARGET_VENDOR, TARGET_OS );
+
        printf( "- datatypes: ");
        if( ! portab_check_types( ))
        {
@@ -38,13 +41,12 @@ GLOBAL INT main( VOID )
        }
        else puts( "ok." );
 
-       puts( "- system type: "P_OSNAME"/"P_ARCHNAME );
-
        return ret;
 } /* main */
 
 
-LOCAL BOOLEAN portab_check_types( VOID )
+LOCAL BOOLEAN
+portab_check_types( VOID )
 {
        if( FALSE != 0 ) return 0;
        if( TRUE != 1 ) return 0;