summaryrefslogtreecommitdiffstats
path: root/src/tools
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2018-09-25 20:57:27 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2018-09-25 20:57:27 +0900
commit230ed5e400ea4276d927570a7781cfcb5c7a534a (patch)
tree56bb72cae9206a3a6734a380f48b85051d054614 /src/tools
parent2df70f03d493f5226821dd2e1da3759e3abceb02 (diff)
downloadqt3-230ed5e400ea4276d927570a7781cfcb5c7a534a.tar.gz
qt3-230ed5e400ea4276d927570a7781cfcb5c7a534a.zip
Always build with a clean namespace
QT_CLEAN_NAMESPACE constant is no more needed This may theoretically affect applications created for Qt1 and Qt2, but such applications require further modifications as well. --------------------------- Cherry picked and adapted from commit ff63338d in tqt3 from Slávek Banko <slavek.banko@axis.cz> Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'src/tools')
-rw-r--r--src/tools/qcstring.h14
-rw-r--r--src/tools/qglobal.h32
2 files changed, 0 insertions, 46 deletions
diff --git a/src/tools/qcstring.h b/src/tools/qcstring.h
index 372ae80..a48cce8 100644
--- a/src/tools/qcstring.h
+++ b/src/tools/qcstring.h
@@ -81,20 +81,6 @@ Q_EXPORT int qstricmp( const char *, const char * );
Q_EXPORT int qstrnicmp( const char *, const char *, uint len );
-#ifndef QT_CLEAN_NAMESPACE
-Q_EXPORT inline uint cstrlen( const char *str )
-{ return (uint)strlen(str); }
-
-Q_EXPORT inline char *cstrcpy( char *dst, const char *src )
-{ return strcpy(dst,src); }
-
-Q_EXPORT inline int cstrcmp( const char *str1, const char *str2 )
-{ return strcmp(str1,str2); }
-
-Q_EXPORT inline int cstrncmp( const char *str1, const char *str2, uint len )
-{ return strncmp(str1,str2,len); }
-#endif
-
// qChecksum: Internet checksum
diff --git a/src/tools/qglobal.h b/src/tools/qglobal.h
index 62de654..27f784e 100644
--- a/src/tools/qglobal.h
+++ b/src/tools/qglobal.h
@@ -700,16 +700,6 @@ inline int qRound( double d )
// Size-dependent types (architechture-dependent byte order)
//
-#if !defined(QT_CLEAN_NAMESPACE)
-// source compatibility with Qt 1.x
-typedef signed char INT8; // 8 bit signed
-typedef unsigned char UINT8; // 8 bit unsigned
-typedef short INT16; // 16 bit signed
-typedef unsigned short UINT16; // 16 bit unsigned
-typedef int INT32; // 32 bit signed
-typedef unsigned int UINT32; // 32 bit unsigned
-#endif
-
typedef signed char Q_INT8; // 8 bit signed
typedef unsigned char Q_UINT8; // 8 bit unsigned
typedef short Q_INT16; // 16 bit signed
@@ -987,28 +977,6 @@ Q_EXPORT void qFatal( const char *, ... ) // print fatal message and exit
Q_EXPORT void qSystemWarning( const char *, int code = -1 );
-#if !defined(QT_CLEAN_NAMESPACE) // compatibility with Qt 1
-
-Q_EXPORT void debug( const char *, ... ) // print debug message
-#if defined(Q_CC_GNU) && !defined(__INSURE__)
- __attribute__ ((format (printf, 1, 2)))
-#endif
-;
-
-Q_EXPORT void warning( const char *, ... ) // print warning message
-#if defined(Q_CC_GNU) && !defined(__INSURE__)
- __attribute__ ((format (printf, 1, 2)))
-#endif
-;
-
-Q_EXPORT void fatal( const char *, ... ) // print fatal message and exit
-#if defined(Q_CC_GNU) && !defined(__INSURE__)
- __attribute__ ((format (printf, 1, 2)))
-#endif
-;
-
-#endif // QT_CLEAN_NAMESPACE
-
#if !defined(Q_ASSERT)
# if defined(QT_CHECK_STATE)