Remove wxPM, wxWidgets port to OS/2.
This port is not used and is not being worked on, so remove it to reduce the amount of the code which needs to be updated for every global change. Also remove tests for VisualAge compiler which isn't used since ages. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@76533 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -126,17 +126,6 @@
|
||||
#include <sys/stat.h>
|
||||
#endif
|
||||
|
||||
#ifdef __VISAGECPP__
|
||||
#ifndef MAX_PATH
|
||||
#define MAX_PATH 256
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#ifdef __EMX__
|
||||
#include <os2.h>
|
||||
#define MAX_PATH _MAX_PATH
|
||||
#endif
|
||||
|
||||
#ifndef S_ISREG
|
||||
#define S_ISREG(mode) ((mode) & S_IFREG)
|
||||
#endif
|
||||
@@ -324,7 +313,7 @@ static bool IsUNCPath(const wxString& path, wxPathFormat format)
|
||||
// the appropriate file with an extra twist that it also works when there is no
|
||||
// wxFileName object at all, as is the case in static methods.
|
||||
|
||||
#if defined(__UNIX_LIKE__) || defined(__WXMAC__) || defined(__OS2__) || (defined(__DOS__) && defined(__WATCOMC__))
|
||||
#if defined(__UNIX_LIKE__) || defined(__WXMAC__) || (defined(__DOS__) && defined(__WATCOMC__))
|
||||
#define wxHAVE_LSTAT
|
||||
#endif
|
||||
|
||||
@@ -653,7 +642,7 @@ void RemoveTrailingSeparatorsFromPath(wxString& strPath)
|
||||
}
|
||||
}
|
||||
|
||||
#endif // __WINDOWS__ || __OS2__
|
||||
#endif // __WINDOWS_
|
||||
|
||||
bool
|
||||
wxFileSystemObjectExists(const wxString& path, int flags)
|
||||
@@ -687,34 +676,6 @@ wxFileSystemObjectExists(const wxString& path, int flags)
|
||||
// Anything else must be a file (perhaps we should check for
|
||||
// FILE_ATTRIBUTE_REPARSE_POINT?)
|
||||
return acceptFile;
|
||||
#elif defined(__OS2__)
|
||||
if ( acceptDir )
|
||||
{
|
||||
// OS/2 can't handle "d:", it wants either "d:\" or "d:."
|
||||
if (strPath.length() == 2 && strPath[1u] == wxT(':'))
|
||||
strPath << wxT('.');
|
||||
}
|
||||
|
||||
FILESTATUS3 Info = {{0}};
|
||||
APIRET rc = ::DosQueryPathInfo((PSZ)(WXSTRINGCAST strPath), FIL_STANDARD,
|
||||
(void*) &Info, sizeof(FILESTATUS3));
|
||||
|
||||
if ( rc == NO_ERROR )
|
||||
{
|
||||
if ( Info.attrFile & FILE_DIRECTORY )
|
||||
return acceptDir;
|
||||
else
|
||||
return acceptFile;
|
||||
}
|
||||
|
||||
// We consider that the path must exist if we get a sharing violation for
|
||||
// it but we don't know what is it in this case.
|
||||
if ( rc == ERROR_SHARING_VIOLATION )
|
||||
return flags & wxFILE_EXISTS_ANY;
|
||||
|
||||
// Any other error (usually ERROR_PATH_NOT_FOUND), means there is nothing
|
||||
// there.
|
||||
return false;
|
||||
#else // Non-MSW, non-OS/2
|
||||
wxStructStat st;
|
||||
if ( !StatAny(st, strPath, flags) )
|
||||
@@ -2338,7 +2299,7 @@ wxPathFormat wxFileName::GetFormat( wxPathFormat format )
|
||||
{
|
||||
if (format == wxPATH_NATIVE)
|
||||
{
|
||||
#if defined(__WINDOWS__) || defined(__OS2__) || defined(__DOS__)
|
||||
#if defined(__WINDOWS__) || defined(__DOS__)
|
||||
format = wxPATH_DOS;
|
||||
#elif defined(__VMS)
|
||||
format = wxPATH_VMS;
|
||||
|
||||
Reference in New Issue
Block a user