X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Flog.cpp;h=97f07338c551697633afb520286f60f4672a8db6;hb=8ba4c4438d796f83851cd53914dff928193ed658;hp=623a6b97e187a27c226890ad1d0734b050c0ff40;hpb=2fe4f4d3720583b59e0412d2a0cb72109db78573;p=thunder diff --git a/src/log.cpp b/src/log.cpp index 623a6b9..97f0733 100644 --- a/src/log.cpp +++ b/src/log.cpp @@ -11,14 +11,13 @@ // JLH 07/23/2009 Added changelog ;-) // -#include "types.h" #include "log.h" +#include #define MAX_LOG_SIZE 10000000 // Maximum size of log file (10 MB) static FILE * logStream = NULL; -static uint32 logSize = 0; - +static uint32_t logSize = 0; bool InitLog(const char * path) { @@ -30,14 +29,12 @@ bool InitLog(const char * path) return true; } - void LogDone(void) { if (logStream) fclose(logStream); } - // // This logger is used mainly to ensure that text gets written to the log file // even if the program crashes. The performance hit is acceptable in this case! @@ -62,4 +59,3 @@ void WriteLog(const char * text, ...) va_end(arg); fflush(logStream); // Make sure that text is written! } -