#define off_t _off_t
#endif
+#if defined(__BORLANDC__) && defined(__WIN16__)
+typedef long off_t;
+#endif
+
const off_t wxInvalidOffset = (off_t)-1;
typedef enum {
wxFromEnd
} wxSeekMode;
+WXDLLEXPORT_DATA(extern const char*) wxEmptyString;
+
// ----------------------------------------------------------------------------
// functions
// ----------------------------------------------------------------------------
// and make (if under the home tree) relative to home
// [caller must copy-- volatile]
WXDLLEXPORT char* wxContractPath (const wxString& filename,
- const wxString& envname = "", const wxString& user = "");
+ const wxString& envname = wxEmptyString, const wxString& user = wxEmptyString);
// Destructive removal of /./ and /../ stuff
WXDLLEXPORT char* wxRealPath(char *path);
// ----------------------------------------------------------------------------
// Path searching
-class WXDLLEXPORT wxPathList: public wxStringList
+class WXDLLEXPORT wxPathList : public wxStringList
{
- DECLARE_DYNAMIC_CLASS(wxPathList)
-
- public:
- void AddEnvList(const wxString& envVariable); // Adds all paths in environment variable
- void Add(const wxString& path);
- wxString FindValidPath(const wxString& filename); // Find the first full path
- // for which the file exists
- wxString FindAbsoluteValidPath(const wxString& filename); // Find the first full path
- // for which the file exists; ensure it's an absolute
- // path that gets returned.
- void EnsureFileAccessible(const wxString& path); // Given full path and filename,
- // add path to list
- bool Member(const wxString& path);
+public:
+ void AddEnvList(const wxString& envVariable); // Adds all paths in environment variable
+ void Add(const wxString& path);
+ wxString FindValidPath(const wxString& filename); // Find the first full path
+ // for which the file exists
+ wxString FindAbsoluteValidPath(const wxString& filename); // Find the first full path
+ // for which the file exists; ensure it's an absolute
+ // path that gets returned.
+ void EnsureFileAccessible(const wxString& path); // Given full path and filename,
+ // add path to list
+ bool Member(const wxString& path);
+
+private:
+ DECLARE_DYNAMIC_CLASS(wxPathList)
};
#endif