]> Creatis software - gdcm.git/blobdiff - Testing/TestInline.cxx
* Some classes inherit now from gdcm::RefCounter
[gdcm.git] / Testing / TestInline.cxx
index a8170c8c69c3f3feed6d3270fd6ead71368a84fb..e28c473ac29b1343c8e1007e68333969f8cc47a4 100755 (executable)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: TestInline.cxx,v $
   Language:  C++
-  Date:      $Date: 2005/10/23 14:49:51 $
-  Version:   $Revision: 1.1 $
+  Date:      $Date: 2005/10/24 16:01:39 $
+  Version:   $Revision: 1.6 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
 #include <iostream>
 
 #include <time.h>
+#ifdef CMAKE_HAVE_SYS_TIMES_H
 #include <sys/times.h>
+#else
+#include <sys/timeb.h>
+#endif
 
 void        frswap (double &a, double &b);
 void        fpswap (double *a, double *b);
@@ -53,28 +57,6 @@ double     passDirect(double a,  double b);
 double     passRef(double &a, double &b);
 double     passPtr(double *a, double *b);
 
-/*  
-//To perform a full check, just put the two 'static' functions
-//hifpswap and  hNoifpswap in a .h
-
-   static inline void hifpswap(double *a, double *b)    
-   {
-      double tmp;
-      tmp = *a;
-      *a = *b;
-      *b = tmp;
-   }
-
-   static void hNoifpswap(double *a, double *b)    
-   {
-      double tmp;
-      tmp = *a;
-      *a = *b;
-      *b = tmp;
-   }
-    
-*/
-
 #define       \
 mswap(a, b)   \
 {             \
@@ -175,7 +157,7 @@ int TestInline(int argc, char *argv[])
    double a = 1, b = 2;
    double tmp;
    
-   uint16_t x, y;    
+   uint16_t x=1, y=2;    
  // ----------------------------------------
  
    std::cout << "Use a macro "<< std::endl;