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

index 08a2885..564bf0a 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 4a35e61..c2790cf 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 7cc016c..2304572 100644 (file)
@@ -1,5 +1,5 @@
 QT -= core gui
-CONFIG += console
+CONFIG += console debug_and_release
 DESTDIR = ../build
 SOURCES += \
     main.cpp