// ----------------------------------------------------------------------------
// default type is the native one
-// the native type under Mac OS X is:
-// - Unix when compiling with the Apple Developer Tools (__UNIX__)
-// - Mac when compiling with CodeWarrior (__WXMAC__)
const wxTextFileType wxTextBuffer::typeDefault =
-#if defined(__WINDOWS__) || defined(__DOS__) || defined(__PALMOS__)
+#if defined(__WINDOWS__) || defined(__DOS__)
wxTextFileType_Dos;
#elif defined(__UNIX__)
wxTextFileType_Unix;
-#elif defined(__WXMAC__)
- wxTextFileType_Mac;
#elif defined(__OS2__)
wxTextFileType_Os2;
#else
{
wxChar ch = *i;
switch ( ch ) {
- case _T('\n'):
+ case wxT('\n'):
// Dos/Unix line termination
result += eol;
chLast = 0;
break;
- case _T('\r'):
- if ( chLast == _T('\r') ) {
+ case wxT('\r'):
+ if ( chLast == wxT('\r') ) {
// Mac empty line
result += eol;
}
else {
// just remember it: we don't know whether it is just "\r"
// or "\r\n" yet
- chLast = _T('\r');
+ chLast = wxT('\r');
}
break;
default:
- if ( chLast == _T('\r') ) {
+ if ( chLast == wxT('\r') ) {
// Mac line termination
result += eol;
case wxTextFileType_Unix: nUnix++; break; \
case wxTextFileType_Dos: nDos++; break; \
case wxTextFileType_Mac: nMac++; break; \
- default: wxFAIL_MSG(_T("unknown line terminator")); \
+ default: wxFAIL_MSG(wxT("unknown line terminator")); \
}
size_t n;