]> Some of my projects - tal.git/commitdiff
Unix fixes.
authorAPTX <marek321@gmail.com>
Wed, 1 Dec 2010 15:49:02 +0000 (16:49 +0100)
committerAPTX <marek321@gmail.com>
Wed, 1 Dec 2010 15:49:02 +0000 (16:49 +0100)
shared/shared.h
tal-algorithm/main.cpp
tal-algorithm/tal-algorithm.pro

index 08a2885ffcbd85f87c9af8a98a3d7da724f31d4e..564bf0ad10810c741e23fe9b8444e28ba280fc5c 100644 (file)
@@ -55,11 +55,11 @@ inline int max(int a, int b)
 
 #      define START_CPU \
        timeval starttime; \
-       gettimeofday(&starttime, NULL);starttime;
+       gettimeofday(&starttime, NULL);
 
 #      define STOP_CPU \
        timeval endtime; \
-       gettimeofday(&endtime, NULL);endtime;
+       gettimeofday(&endtime, NULL);
 
 #      define CPU_ELAPSED (double(endtime.tv_sec - starttime.tv_sec) * 1000 + double(endtime.tv_usec - starttime.tv_usec) / 1000)
 #else
index 4a35e61024a20b37dacf8322c91afda7c4c3f32a..c2790cf46e11f71d83703704811d3227fb888628 100644 (file)
@@ -323,7 +323,9 @@ int main(int argc, char **argv)
        bool run_greedy_LowestWeight = false;
        bool run_greedy_BestRatio = false;
        int runs = 1;
+
        Problem *p = 0;
+       bool printSolutions = true;
 
        if (argc < 2)
                goto help;
@@ -370,7 +372,6 @@ int main(int argc, char **argv)
        }
 cout << *p;
 
-       bool printSolutions = true;
        for (int i = 0; i < runs; ++i)
        {
                if (run_dp)
index 7cc016cf87e17a0c5e5e8eacacbaef05b269c88a..23045729a8cdde62aa8930bda6124f5eca642392 100644 (file)
@@ -1,5 +1,5 @@
 QT -= core gui
-CONFIG += console
+CONFIG += console debug_and_release
 DESTDIR = ../build
 SOURCES += \
     main.cpp