summaryrefslogtreecommitdiffstats
path: root/src/tools/tqglobal.cpp
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2025-12-22 12:05:18 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2025-12-22 12:13:05 +0900
commita4ebd73f48610ed351c9c53f3646d0597f8ea7bc (patch)
tree2edd219eef4cb8f35bb3844d06902ae8b2fcb565 /src/tools/tqglobal.cpp
parent7d612f7c91d55501276a385a30dbadb121e7bd9f (diff)
downloadtqt-rename/true-false-9.tar.gz
tqt-rename/true-false-9.zip
Replace TRUE/FALSE with boolean values true/false - part 9rename/true-false-9
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'src/tools/tqglobal.cpp')
-rw-r--r--src/tools/tqglobal.cpp46
1 files changed, 23 insertions, 23 deletions
diff --git a/src/tools/tqglobal.cpp b/src/tools/tqglobal.cpp
index 038e1225c..14ed0d40b 100644
--- a/src/tools/tqglobal.cpp
+++ b/src/tools/tqglobal.cpp
@@ -72,9 +72,9 @@ const char *tqVersion()
bool tqSharedBuild()
{
#ifdef QT_SHARED
- return TRUE;
+ return true;
#else
- return FALSE;
+ return false;
#endif
}
@@ -82,7 +82,7 @@ bool tqSharedBuild()
System detection routines
*****************************************************************************/
-static bool si_alreadyDone = FALSE;
+static bool si_alreadyDone = false;
static int si_wordSize;
static bool si_bigEndian;
@@ -92,12 +92,12 @@ static bool si_bigEndian;
Obtains information about the system.
The system's word size in bits (typically 32) is returned in \a
- *wordSize. The \a *bigEndian is set to TRUE if this is a big-endian
- machine, or to FALSE if this is a little-endian machine.
+ *wordSize. The \a *bigEndian is set to true if this is a big-endian
+ machine, or to false if this is a little-endian machine.
In debug mode, this function calls tqFatal() with a message if the
computer is truly weird (i.e. different endianness for 16 bit and
- 32 bit integers); in release mode it returns FALSE.
+ 32 bit integers); in release mode it returns false.
*/
bool tqSysInfo( int *wordSize, bool *bigEndian )
@@ -110,7 +110,7 @@ bool tqSysInfo( int *wordSize, bool *bigEndian )
if ( si_alreadyDone ) { // run it only once
*wordSize = si_wordSize;
*bigEndian = si_bigEndian;
- return TRUE;
+ return true;
}
si_wordSize = 0;
@@ -127,14 +127,14 @@ bool tqSysInfo( int *wordSize, bool *bigEndian )
#if defined(QT_CHECK_RANGE)
tqFatal( "qSysInfo: Unsupported system word size %d", *wordSize );
#endif
- return FALSE;
+ return false;
}
if ( sizeof(TQ_INT8) != 1 || sizeof(TQ_INT16) != 2 || sizeof(TQ_INT32) != 4 ||
sizeof(TQ_ULONG)*8 != si_wordSize || sizeof(float) != 4 || sizeof(double) != 8 ) {
#if defined(QT_CHECK_RANGE)
tqFatal( "qSysInfo: Unsupported system data type size" );
#endif
- return FALSE;
+ return false;
}
bool be16, be32; // determine byte ordering
@@ -146,10 +146,10 @@ bool tqSysInfo( int *wordSize, bool *bigEndian )
p = (unsigned char *)(&nl); // 32-bit integer
if ( p[0] == 0x12 && p[1] == 0x34 && p[2] == 0x56 && p[3] == 0x78 )
- be32 = TRUE;
+ be32 = true;
else
if ( p[0] == 0x78 && p[1] == 0x56 && p[2] == 0x34 && p[3] == 0x12 )
- be32 = FALSE;
+ be32 = false;
else
be32 = !be16;
@@ -157,12 +157,12 @@ bool tqSysInfo( int *wordSize, bool *bigEndian )
#if defined(QT_CHECK_RANGE)
tqFatal( "qSysInfo: Inconsistent system byte order" );
#endif
- return FALSE;
+ return false;
}
*bigEndian = si_bigEndian = be32;
- si_alreadyDone = TRUE;
- return TRUE;
+ si_alreadyDone = true;
+ return true;
}
#if defined(Q_OS_MAC)
@@ -220,9 +220,9 @@ TQString p2qstring(const unsigned char *c) {
int qMacVersion()
{
static int macver = TQt::MV_Unknown;
- static bool first = TRUE;
+ static bool first = true;
if(first) {
- first = FALSE;
+ first = false;
long gestalt_version;
if(Gestalt(gestaltSystemVersion, &gestalt_version) == noErr) {
macver = ((gestalt_version & 0x00f0) >> 4) + 2;
@@ -330,10 +330,10 @@ int qWinVersion()
#if defined(UNICODE)
if ( winver & TQt::WV_NT_based )
- qt_winunicode = TRUE;
+ qt_winunicode = true;
else
#endif
- qt_winunicode = FALSE;
+ qt_winunicode = false;
return winver;
}
@@ -641,7 +641,7 @@ void tqSystemWarning( const char* msg, int code )
\relates TQApplication
Prints a warning message containing the source code file name and
- line number if \a test is FALSE.
+ line number if \a test is false.
This is really a macro defined in \c tqglobal.h.
@@ -703,7 +703,7 @@ bool tqt_check_pointer( bool c, const char *n, int l )
{
if ( c )
tqWarning( "In file %s, line %d: Out of memory", n, l );
- return TRUE;
+ return true;
}
@@ -724,12 +724,12 @@ static bool firstObsoleteWarning(const char *obj, const char *oldfunc )
s += oldfunc;
if ( obsoleteDict->find(s.data()) == 0 ) {
obsoleteDict->insert( s.data(), (int*)1 ); // anything different from 0
- return TRUE;
+ return true;
}
- return FALSE;
+ return false;
}
-static bool suppressObsolete = FALSE;
+static bool suppressObsolete = false;
void tqSuppressObsoleteWarnings( bool suppress )
{