1
0
mirror of https://foundry.openuru.org/gitblit/r/CWE-ou-minkata.git synced 2025-07-18 19:29:09 +00:00

Obliterate hsBool

This commit is contained in:
2012-07-11 01:28:00 -04:00
parent 5f78b33db4
commit a709e17069
1041 changed files with 7889 additions and 8070 deletions

View File

@ -65,7 +65,7 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
//
#define MAGICWINDOWSOFFSET ((__int64)11644473600) // magic number, taken from Python Source
//
hsBool plUnifiedTime::SetFromWinFileTime(const FILETIME ft)
bool plUnifiedTime::SetFromWinFileTime(const FILETIME ft)
{
// FILETIME resolution seems to be 0.01 sec
@ -87,7 +87,7 @@ hsBool plUnifiedTime::SetFromWinFileTime(const FILETIME ft)
//
// Sets the unified time to the current UTC time
//
hsBool plUnifiedTime::SetToUTC()
bool plUnifiedTime::SetToUTC()
{
FILETIME ft;
@ -99,7 +99,7 @@ hsBool plUnifiedTime::SetToUTC()
//
// Sets the unified time to the current UTC time
//
hsBool plUnifiedTime::SetToUTC()
bool plUnifiedTime::SetToUTC()
{
struct timeval tv;
@ -257,7 +257,7 @@ void plUnifiedTime::ToCurrentTime()
SetToUTC();
}
hsBool plUnifiedTime::SetGMTime(short year, short month, short day, short hour, short minute, short second, unsigned long usec)
bool plUnifiedTime::SetGMTime(short year, short month, short day, short hour, short minute, short second, unsigned long usec)
{
if( !SetTime( year, month, day, hour, minute, second, usec, 0 ) )
return false;
@ -268,7 +268,7 @@ hsBool plUnifiedTime::SetGMTime(short year, short month, short day, short hour,
return true;
}
hsBool plUnifiedTime::SetTime(short year, short month, short day, short hour, short minute, short second, unsigned long usec, int dst)
bool plUnifiedTime::SetTime(short year, short month, short day, short hour, short minute, short second, unsigned long usec, int dst)
{
struct tm atm;
atm.tm_sec = second;
@ -288,7 +288,7 @@ hsBool plUnifiedTime::SetTime(short year, short month, short day, short hour, sh
return true;
}
hsBool plUnifiedTime::GetTime(short &year, short &month, short &day, short &hour, short &minute, short &second) const
bool plUnifiedTime::GetTime(short &year, short &month, short &day, short &hour, short &minute, short &second) const
{
struct tm* time = IGetTime(&fSecs);
if (!time)

View File

@ -111,7 +111,7 @@ public:
time_t GetSecs() const { return fSecs; }
uint32_t GetMicros() const { return fMicros; }
double GetSecsDouble() const; // get the secs and micros as a double floating point value
hsBool GetTime(short &year, short &month, short &day, short &hour, short &minute, short &second) const;
bool GetTime(short &year, short &month, short &day, short &hour, short &minute, short &second) const;
struct tm * GetTm(struct tm * ptm=nil) const;
int GetYear() const;
int GetMonth() const;
@ -127,14 +127,14 @@ public:
void SetSecs(const time_t secs) { fSecs = secs; }
void SetSecsDouble(double secs);
void SetMicros(const uint32_t micros) { fMicros = micros; }
hsBool SetTime(short year, short month, short day, short hour, short minute, short second, unsigned long usec=0, int dst=-1);
hsBool SetGMTime(short year, short month, short day, short hour, short minute, short second, unsigned long usec=0);
hsBool SetToUTC();
bool SetTime(short year, short month, short day, short hour, short minute, short second, unsigned long usec=0, int dst=-1);
bool SetGMTime(short year, short month, short day, short hour, short minute, short second, unsigned long usec=0);
bool SetToUTC();
void ToCurrentTime();
void ToEpoch() { fSecs = 0; fMicros = 0;}
void SetMode(Mode mode) { fMode=mode;}
#if HS_BUILD_FOR_WIN32
hsBool SetFromWinFileTime(const FILETIME ft);
bool SetFromWinFileTime(const FILETIME ft);
#endif
// query