From 1a48757db8e72b0ffa3540f40166fddf5cdf8982 Mon Sep 17 00:00:00 2001 From: David Anderson Date: Wed, 21 Feb 2007 20:04:14 +0000 Subject: [PATCH] *** empty log message *** svn path=/trunk/boinc_samples/; revision=12135 --- checkin_notes | 14 +++++++++++++- sleeper/sleeper.C | 1 + uppercase/upper_case.C | 1 + win_build/libboinc.vcproj | 4 ++++ wrapper/wrapper.C | 7 +++++++ 5 files changed, 26 insertions(+), 1 deletion(-) diff --git a/checkin_notes b/checkin_notes index d6467c64d7..389a00b210 100644 --- a/checkin_notes +++ b/checkin_notes @@ -260,10 +260,22 @@ David 27 Dec 2006 uppercase/ upper_case.C -David 11 Jan 2006 +David 11 Jan 2007 - upper_case: if checkpoint found, truncate the output file to the indicated size. Otherwise a checkpoint/restart generally produces a bad result. uppercase/ upper_case.C + +David 21 Feb 2007 + - compile fixes + + sleeper/ + sleeper.C + uppercase/ + upper_case.C + win_build/ + libboinc.vcproj + wrapper/ + wrapper.C diff --git a/sleeper/sleeper.C b/sleeper/sleeper.C index a46657e1a5..6203488d88 100644 --- a/sleeper/sleeper.C +++ b/sleeper/sleeper.C @@ -20,6 +20,7 @@ // Application for testing non-CPU-intensive features of BOINC. // TODO: make it exit after a certain amount of time +#include "str_util.h" #include "util.h" #include "boinc_api.h" diff --git a/uppercase/upper_case.C b/uppercase/upper_case.C index edfd67590f..ecad4033cf 100755 --- a/uppercase/upper_case.C +++ b/uppercase/upper_case.C @@ -53,6 +53,7 @@ #endif #include "diagnostics.h" +#include "str_util.h" #include "util.h" #include "filesys.h" #include "boinc_api.h" diff --git a/win_build/libboinc.vcproj b/win_build/libboinc.vcproj index 8094414f7f..557685d7a5 100644 --- a/win_build/libboinc.vcproj +++ b/win_build/libboinc.vcproj @@ -304,6 +304,10 @@ /> + + diff --git a/wrapper/wrapper.C b/wrapper/wrapper.C index 6d170afdbb..74b5360750 100644 --- a/wrapper/wrapper.C +++ b/wrapper/wrapper.C @@ -47,6 +47,7 @@ #include "diagnostics.h" #include "filesys.h" #include "parse.h" +#include "str_util.h" #include "util.h" #include "error_numbers.h" @@ -77,6 +78,8 @@ vector tasks; bool app_suspended = false; +FILE* debug; + int TASK::parse(XML_PARSER& xp) { char tag[1024]; bool is_tag; @@ -378,6 +381,10 @@ int main(int argc, char** argv) { BOINC_OPTIONS options; int retval; + debug = fopen("wrapper_log", "a"); + setbuf(debug, 0); + fprintf(debug, "foobar\n"); + boinc_init_diagnostics( BOINC_DIAG_DUMPCALLSTACKENABLED | BOINC_DIAG_HEAPCHECKENABLED