1998-12-08 05:15:50 +03:00
|
|
|
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
|
|
|
|
*
|
|
|
|
* The contents of this file are subject to the Netscape Public License
|
|
|
|
* Version 1.0 (the "NPL"); you may not use this file except in
|
|
|
|
* compliance with the NPL. You may obtain a copy of the NPL at
|
|
|
|
* http://www.mozilla.org/NPL/
|
|
|
|
*
|
|
|
|
* Software distributed under the NPL is distributed on an "AS IS" basis,
|
|
|
|
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
|
|
|
|
* for the specific language governing rights and limitations under the
|
|
|
|
* NPL.
|
|
|
|
*
|
|
|
|
* The Initial Developer of this code under the NPL is Netscape
|
|
|
|
* Communications Corporation. Portions created by Netscape are
|
|
|
|
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
|
|
|
|
* Reserved.
|
|
|
|
*/
|
|
|
|
|
1998-12-09 01:45:42 +03:00
|
|
|
// First checked in on 98/11/20 by John R. McMullen in the wrong directory.
|
|
|
|
// Checked in again 98/12/04.
|
|
|
|
// Polished version 98/12/08.
|
1998-12-08 05:15:50 +03:00
|
|
|
|
|
|
|
//========================================================================================
|
|
|
|
//
|
1998-12-09 01:45:42 +03:00
|
|
|
// Classes defined:
|
|
|
|
//
|
|
|
|
// nsFilePath, nsFileURL, nsNativeFileSpec.
|
|
|
|
//
|
|
|
|
// This suite provides the following services:
|
|
|
|
//
|
|
|
|
// 1. Encapsulates all platform-specific file details, so that files can be
|
|
|
|
// described correctly without any platform #ifdefs
|
|
|
|
//
|
|
|
|
// 2. Type safety. This will fix the problems that used to occur because people
|
|
|
|
// confused file paths. They used to use const char*, which could mean three
|
|
|
|
// or four different things. Bugs were introduced as people coded, right up
|
|
|
|
// to the moment Communicator 4.5 shipped.
|
|
|
|
//
|
|
|
|
// 3. Used in conjunction with nsFileStream.h (q.v.), this supports all the power
|
|
|
|
// and readability of the ansi stream syntax. ALL METHODS OF istream, ostream,
|
|
|
|
// AND iostream ARE AVAILABLE!
|
|
|
|
//
|
|
|
|
// Basic example:
|
|
|
|
//
|
|
|
|
// nsFilePath myPath("/Development/iotest.txt");
|
|
|
|
//
|
|
|
|
// nsOutputFileStream testStream(myPath);
|
|
|
|
// testStream << "Hello World" << endl;
|
|
|
|
//
|
|
|
|
// 4. Handy methods for manipulating file specifiers safely, e.g. MakeUnique(),
|
|
|
|
// SetLeafName(), Exists().
|
|
|
|
//
|
|
|
|
// 5. Easy cross-conversion.
|
|
|
|
//
|
|
|
|
// Examples:
|
|
|
|
//
|
|
|
|
// Initialize a URL from a string without suffix
|
|
|
|
//
|
|
|
|
// nsFileURL fileURL("file:///Development/MPW/MPW%20Shell");
|
|
|
|
//
|
|
|
|
// Initialize a Unix path from a URL
|
|
|
|
//
|
|
|
|
// nsFilePath filePath(fileURL);
|
|
|
|
//
|
|
|
|
// Initialize a native file spec from a URL
|
1998-12-08 05:15:50 +03:00
|
|
|
//
|
1998-12-09 01:45:42 +03:00
|
|
|
// nsNativeFileSpec fileSpec(fileURL);
|
|
|
|
//
|
|
|
|
// Make the spec unique (this one has no suffix).
|
|
|
|
//
|
|
|
|
// fileSpec.MakeUnique();
|
|
|
|
//
|
|
|
|
// Assign the spec to a URL
|
|
|
|
//
|
|
|
|
// fileURL = fileSpec;
|
|
|
|
//
|
|
|
|
// Assign a unix path using a string with a suffix.
|
|
|
|
//
|
|
|
|
// filePath = "/Development/MPW/SysErrs.err";
|
|
|
|
//
|
|
|
|
// Assign to a file spec using a unix path.
|
|
|
|
//
|
|
|
|
// fileSpec = filePath;
|
|
|
|
//
|
|
|
|
// Make this unique (this one has a suffix).
|
|
|
|
//
|
|
|
|
// fileSpec.MakeUnique();
|
|
|
|
//
|
|
|
|
// 6. Fixes a bug that have been there for a long time, and
|
|
|
|
// is inevitable if you use NSPR alone, where files are described as paths.
|
|
|
|
//
|
|
|
|
// The problem affects platforms (Macintosh) in which a path does not fully
|
|
|
|
// specify a file, because two volumes can have the same name. This
|
|
|
|
// is solved by holding a "private" native file spec inside the
|
|
|
|
// nsFilePath and nsFileURL classes, which is used when appropriate.
|
|
|
|
//
|
|
|
|
// Not yet done:
|
|
|
|
//
|
|
|
|
// Equality operators... much more.
|
1998-12-08 05:15:50 +03:00
|
|
|
//
|
|
|
|
//========================================================================================
|
|
|
|
|
1998-12-09 01:45:42 +03:00
|
|
|
#ifndef _FILESPEC_H_
|
|
|
|
#define _FILESPEC_H_
|
|
|
|
|
1998-12-08 05:15:50 +03:00
|
|
|
#include <string>
|
1998-12-09 08:09:28 +03:00
|
|
|
|
|
|
|
//========================================================================================
|
|
|
|
// Compiler-specific macros, as needed
|
|
|
|
//========================================================================================
|
|
|
|
#if defined(__MWERKS__) || defined(XP_PC)
|
|
|
|
#define NS_USING_NAMESPACE
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef NS_USING_NAMESPACE
|
|
|
|
#define NS_NAMESPACE_PROTOTYPE
|
|
|
|
#define NS_NAMESPACE namespace
|
|
|
|
#define NS_NAMESPACE_END
|
|
|
|
using std::string;
|
|
|
|
using std::ostream;
|
|
|
|
#else
|
|
|
|
#define NS_NAMESPACE_PROTOTYPE static
|
|
|
|
#define NS_NAMESPACE struct
|
|
|
|
#define NS_NAMESPACE_END ;
|
|
|
|
#endif
|
|
|
|
//=========================== End Compiler-specific macros ===============================
|
|
|
|
|
1998-12-08 05:15:50 +03:00
|
|
|
#include "nsDebug.h"
|
|
|
|
#ifdef XP_MAC
|
|
|
|
#include <Files.h>
|
|
|
|
#endif
|
|
|
|
|
|
|
|
//========================================================================================
|
|
|
|
// Here are the allowable ways to describe a file.
|
|
|
|
//========================================================================================
|
|
|
|
|
1998-12-09 01:45:42 +03:00
|
|
|
class nsFilePath; // This can be passed to NSPR file I/O routines.
|
1998-12-08 05:15:50 +03:00
|
|
|
class nsFileURL;
|
|
|
|
class nsNativeFileSpec;
|
|
|
|
|
|
|
|
#define kFileURLPrefix "file://"
|
|
|
|
#define kFileURLPrefixLength (7)
|
|
|
|
|
|
|
|
//========================================================================================
|
|
|
|
class nsNativeFileSpec
|
1998-12-09 01:45:42 +03:00
|
|
|
// This is whatever each platform really prefers to describe files as. Declared first
|
|
|
|
// because the other two types have an embeded nsNativeFileSpec object.
|
1998-12-08 05:15:50 +03:00
|
|
|
//========================================================================================
|
|
|
|
{
|
1998-12-09 01:45:42 +03:00
|
|
|
public:
|
|
|
|
nsNativeFileSpec();
|
1998-12-09 08:09:28 +03:00
|
|
|
explicit nsNativeFileSpec(const string& inString);
|
1998-12-09 01:45:42 +03:00
|
|
|
nsNativeFileSpec(const nsFilePath& inPath);
|
|
|
|
nsNativeFileSpec(const nsFileURL& inURL);
|
|
|
|
nsNativeFileSpec(const nsNativeFileSpec& inPath);
|
|
|
|
|
1998-12-09 08:09:28 +03:00
|
|
|
void operator = (const string& inPath);
|
1998-12-09 01:45:42 +03:00
|
|
|
void operator = (const nsFilePath& inPath);
|
|
|
|
void operator = (const nsFileURL& inURL);
|
|
|
|
void operator = (const nsNativeFileSpec& inOther);
|
1998-12-08 05:15:50 +03:00
|
|
|
|
|
|
|
#ifdef XP_MAC
|
1998-12-09 01:45:42 +03:00
|
|
|
// For Macintosh people, this is meant to be useful in its own right as a C++ version
|
|
|
|
// of the FSSPec class.
|
|
|
|
nsNativeFileSpec(
|
|
|
|
short vRefNum,
|
|
|
|
long parID,
|
|
|
|
ConstStr255Param name);
|
|
|
|
nsNativeFileSpec(const FSSpec& inSpec)
|
|
|
|
: mSpec(inSpec), mError(noErr) {}
|
|
|
|
|
|
|
|
operator FSSpec* () { return &mSpec; }
|
|
|
|
operator const FSSpec* const () { return &mSpec; }
|
|
|
|
operator FSSpec& () { return mSpec; }
|
|
|
|
operator const FSSpec& () const { return mSpec; }
|
|
|
|
bool Valid() const { return mError == noErr; }
|
|
|
|
OSErr Error() const { return mError; }
|
|
|
|
void MakeUnique(ConstStr255Param inSuggestedLeafName);
|
|
|
|
StringPtr GetLeafPName() { return mSpec.name; }
|
|
|
|
ConstStr255Param GetLeafPName() const { return mSpec.name; }
|
1998-12-08 05:15:50 +03:00
|
|
|
#else
|
1998-12-09 04:04:53 +03:00
|
|
|
bool Valid() const { return true; } // Fixme.
|
1998-12-08 05:15:50 +03:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#if DEBUG
|
1998-12-09 08:09:28 +03:00
|
|
|
friend ostream& operator << (ostream& s, const nsNativeFileSpec& spec);
|
1998-12-08 05:15:50 +03:00
|
|
|
#endif
|
1998-12-09 08:09:28 +03:00
|
|
|
string GetLeafName() const;
|
|
|
|
void SetLeafName(const string& inLeafName);
|
1998-12-09 01:45:42 +03:00
|
|
|
bool Exists() const;
|
|
|
|
void MakeUnique();
|
1998-12-09 08:09:28 +03:00
|
|
|
void MakeUnique(const string& inSuggestedLeafName);
|
1998-12-09 01:45:42 +03:00
|
|
|
|
|
|
|
private:
|
|
|
|
friend class nsFilePath;
|
1998-12-08 05:15:50 +03:00
|
|
|
#ifdef XP_MAC
|
1998-12-09 08:09:28 +03:00
|
|
|
FSSpec mSpec;
|
|
|
|
OSErr mError;
|
1998-12-09 04:04:53 +03:00
|
|
|
#elif defined(XP_UNIX) || defined(XP_PC)
|
1998-12-09 08:09:28 +03:00
|
|
|
string mPath;
|
1998-12-08 05:15:50 +03:00
|
|
|
#endif
|
|
|
|
}; // class nsNativeFileSpec
|
|
|
|
|
|
|
|
//========================================================================================
|
|
|
|
class nsFileURL
|
1998-12-09 01:45:42 +03:00
|
|
|
// This is an escaped string that looks like "file:///foo/bar/mumble%20fish". Since URLs
|
|
|
|
// are the standard way of doing things in mozilla, this allows a string constructor,
|
|
|
|
// which just stashes the string with no conversion.
|
1998-12-08 05:15:50 +03:00
|
|
|
//========================================================================================
|
|
|
|
{
|
1998-12-09 01:45:42 +03:00
|
|
|
public:
|
|
|
|
nsFileURL(const nsFileURL& inURL);
|
1998-12-09 08:09:28 +03:00
|
|
|
explicit nsFileURL(const string& inString);
|
1998-12-09 01:45:42 +03:00
|
|
|
nsFileURL(const nsFilePath& inPath);
|
|
|
|
nsFileURL(const nsNativeFileSpec& inPath);
|
|
|
|
|
1998-12-09 08:09:28 +03:00
|
|
|
// string GetString() const { return mPath; }
|
1998-12-09 01:45:42 +03:00
|
|
|
// may be needed for implementation reasons,
|
|
|
|
// but should not provide a conversion constructor.
|
|
|
|
|
|
|
|
void operator = (const nsFileURL& inURL);
|
1998-12-09 08:09:28 +03:00
|
|
|
void operator = (const string& inString);
|
1998-12-09 01:45:42 +03:00
|
|
|
void operator = (const nsFilePath& inOther);
|
|
|
|
void operator = (const nsNativeFileSpec& inOther);
|
1998-12-08 05:15:50 +03:00
|
|
|
|
|
|
|
#ifdef XP_MAC
|
1998-12-09 01:45:42 +03:00
|
|
|
// Accessor to allow quick assignment to a mNativeFileSpec
|
|
|
|
const nsNativeFileSpec& GetNativeSpec() const { return mNativeFileSpec; }
|
1998-12-08 05:15:50 +03:00
|
|
|
#endif
|
1998-12-09 01:45:42 +03:00
|
|
|
private:
|
|
|
|
// Should not be defined (only nsFilePath is to be treated as strings.
|
1998-12-09 08:09:28 +03:00
|
|
|
operator string& ();
|
1998-12-09 01:45:42 +03:00
|
|
|
private:
|
|
|
|
|
1998-12-09 08:09:28 +03:00
|
|
|
string mURL;
|
1998-12-08 05:15:50 +03:00
|
|
|
#ifdef XP_MAC
|
1998-12-09 01:45:42 +03:00
|
|
|
// Since the path on the macintosh does not uniquely specify a file (volumes
|
|
|
|
// can have the same name), stash the secret nsNativeFileSpec, too.
|
|
|
|
nsNativeFileSpec mNativeFileSpec;
|
1998-12-08 05:15:50 +03:00
|
|
|
#endif
|
|
|
|
}; // class nsFileURL
|
|
|
|
|
|
|
|
//========================================================================================
|
1998-12-09 01:45:42 +03:00
|
|
|
class nsFilePath
|
|
|
|
// This is a string that looks like "/foo/bar/mumble%20fish". Same as nsFileURL, but
|
|
|
|
// without the "file:// prefix".
|
1998-12-08 05:15:50 +03:00
|
|
|
//========================================================================================
|
|
|
|
{
|
1998-12-09 01:45:42 +03:00
|
|
|
public:
|
|
|
|
nsFilePath(const nsFilePath& inPath);
|
1998-12-09 08:09:28 +03:00
|
|
|
explicit nsFilePath(const string& inString);
|
1998-12-09 01:45:42 +03:00
|
|
|
nsFilePath(const nsFileURL& inURL);
|
|
|
|
nsFilePath(const nsNativeFileSpec& inPath);
|
|
|
|
|
|
|
|
|
|
|
|
operator const char* () const { return mPath.c_str(); }
|
|
|
|
// This is the only automatic conversion to const char*
|
|
|
|
// that is provided, and it allows the
|
|
|
|
// path to be "passed" to NSPR file routines.
|
1998-12-09 08:09:28 +03:00
|
|
|
operator string& () { return mPath; }
|
1998-12-09 01:45:42 +03:00
|
|
|
// This is the only automatic conversion to string
|
|
|
|
// that is provided, because a naked string should
|
|
|
|
// only mean a standard file path.
|
|
|
|
|
|
|
|
void operator = (const nsFilePath& inPath);
|
1998-12-09 08:09:28 +03:00
|
|
|
void operator = (const string& inString);
|
1998-12-09 01:45:42 +03:00
|
|
|
void operator = (const nsFileURL& inURL);
|
|
|
|
void operator = (const nsNativeFileSpec& inOther);
|
1998-12-08 05:15:50 +03:00
|
|
|
|
|
|
|
#ifdef XP_MAC
|
1998-12-09 01:45:42 +03:00
|
|
|
public:
|
|
|
|
// Accessor to allow quick assignment to a mNativeFileSpec
|
|
|
|
const nsNativeFileSpec& GetNativeSpec() const { return mNativeFileSpec; }
|
1998-12-08 05:15:50 +03:00
|
|
|
#endif
|
|
|
|
|
1998-12-09 01:45:42 +03:00
|
|
|
private:
|
1998-12-08 05:15:50 +03:00
|
|
|
|
1998-12-09 08:09:28 +03:00
|
|
|
string mPath;
|
1998-12-08 05:15:50 +03:00
|
|
|
#ifdef XP_MAC
|
1998-12-09 01:45:42 +03:00
|
|
|
// Since the path on the macintosh does not uniquely specify a file (volumes
|
|
|
|
// can have the same name), stash the secret nsNativeFileSpec, too.
|
|
|
|
nsNativeFileSpec mNativeFileSpec;
|
1998-12-08 05:15:50 +03:00
|
|
|
#endif
|
1998-12-09 01:45:42 +03:00
|
|
|
}; // class nsFilePath
|
1998-12-08 05:15:50 +03:00
|
|
|
|
|
|
|
#ifdef XP_UNIX
|
|
|
|
//========================================================================================
|
1998-12-09 01:45:42 +03:00
|
|
|
// UNIX nsFilePath implementation
|
1998-12-08 05:15:50 +03:00
|
|
|
//========================================================================================
|
|
|
|
|
|
|
|
//----------------------------------------------------------------------------------------
|
1998-12-09 01:45:42 +03:00
|
|
|
inline nsFilePath::nsFilePath(const nsNativeFileSpec& inOther)
|
1998-12-08 05:15:50 +03:00
|
|
|
//----------------------------------------------------------------------------------------
|
1998-12-09 08:09:28 +03:00
|
|
|
: mPath((string&)inOther)
|
1998-12-08 05:15:50 +03:00
|
|
|
{
|
|
|
|
}
|
|
|
|
//----------------------------------------------------------------------------------------
|
1998-12-09 01:45:42 +03:00
|
|
|
inline void nsFilePath::operator = (const nsNativeFileSpec& inOther)
|
1998-12-08 05:15:50 +03:00
|
|
|
//----------------------------------------------------------------------------------------
|
|
|
|
{
|
1998-12-09 08:09:28 +03:00
|
|
|
mPath = (string&)inOther;
|
1998-12-08 05:15:50 +03:00
|
|
|
}
|
|
|
|
#endif // XP_UNIX
|
|
|
|
|
|
|
|
//========================================================================================
|
1998-12-09 01:45:42 +03:00
|
|
|
// COMMON nsNativeFileSpec implementation
|
1998-12-08 05:15:50 +03:00
|
|
|
//========================================================================================
|
|
|
|
|
|
|
|
//----------------------------------------------------------------------------------------
|
|
|
|
inline nsNativeFileSpec::nsNativeFileSpec(const nsFileURL& inURL)
|
|
|
|
//----------------------------------------------------------------------------------------
|
|
|
|
{
|
1998-12-09 01:45:42 +03:00
|
|
|
*this = nsFilePath(inURL); // convert to unix path first
|
1998-12-08 05:15:50 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
//----------------------------------------------------------------------------------------
|
|
|
|
inline void nsNativeFileSpec::operator = (const nsFileURL& inURL)
|
|
|
|
//----------------------------------------------------------------------------------------
|
|
|
|
{
|
1998-12-09 01:45:42 +03:00
|
|
|
*this = nsFilePath(inURL); // convert to unix path first
|
1998-12-08 05:15:50 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
//========================================================================================
|
1998-12-09 01:45:42 +03:00
|
|
|
// UNIX & WIN nsNativeFileSpec implementation
|
1998-12-08 05:15:50 +03:00
|
|
|
//========================================================================================
|
|
|
|
|
|
|
|
#ifdef XP_UNIX
|
|
|
|
//----------------------------------------------------------------------------------------
|
1998-12-09 01:45:42 +03:00
|
|
|
inline nsNativeFileSpec::nsNativeFileSpec(const nsFilePath& inPath)
|
1998-12-08 05:15:50 +03:00
|
|
|
//----------------------------------------------------------------------------------------
|
1998-12-09 08:09:28 +03:00
|
|
|
: mPath((string&)inPath)
|
1998-12-08 05:15:50 +03:00
|
|
|
{
|
|
|
|
}
|
|
|
|
#endif // XP_UNIX
|
|
|
|
|
|
|
|
#ifdef XP_UNIX
|
|
|
|
//----------------------------------------------------------------------------------------
|
1998-12-09 01:45:42 +03:00
|
|
|
inline void nsNativeFileSpec::operator = (const nsFilePath& inPath)
|
1998-12-08 05:15:50 +03:00
|
|
|
//----------------------------------------------------------------------------------------
|
|
|
|
{
|
1998-12-09 08:09:28 +03:00
|
|
|
mPath = (string&)inPath;
|
1998-12-08 05:15:50 +03:00
|
|
|
}
|
|
|
|
#endif //XP_UNIX
|
|
|
|
|
1998-12-09 04:04:53 +03:00
|
|
|
#if defined(XP_UNIX) || defined(XP_PC)
|
1998-12-08 05:15:50 +03:00
|
|
|
//----------------------------------------------------------------------------------------
|
|
|
|
inline nsNativeFileSpec::nsNativeFileSpec(const nsNativeFileSpec& inSpec)
|
|
|
|
//----------------------------------------------------------------------------------------
|
1998-12-09 08:09:28 +03:00
|
|
|
: mPath((string&)inSpec)
|
1998-12-08 05:15:50 +03:00
|
|
|
{
|
|
|
|
}
|
|
|
|
#endif //XP_UNIX
|
|
|
|
|
1998-12-09 04:04:53 +03:00
|
|
|
#if defined(XP_UNIX) || defined(XP_PC)
|
1998-12-08 05:15:50 +03:00
|
|
|
//----------------------------------------------------------------------------------------
|
1998-12-09 08:09:28 +03:00
|
|
|
inline nsNativeFileSpec::nsNativeFileSpec(const string& inString)
|
1998-12-08 05:15:50 +03:00
|
|
|
//----------------------------------------------------------------------------------------
|
1998-12-09 01:45:42 +03:00
|
|
|
: mPath(inString)
|
1998-12-08 05:15:50 +03:00
|
|
|
{
|
|
|
|
}
|
|
|
|
#endif //XP_UNIX
|
|
|
|
|
1998-12-09 04:04:53 +03:00
|
|
|
#if defined(XP_UNIX) || defined(XP_PC)
|
1998-12-08 05:15:50 +03:00
|
|
|
//----------------------------------------------------------------------------------------
|
|
|
|
inline void nsNativeFileSpec::operator = (const nsNativeFileSpec& inSpec)
|
|
|
|
//----------------------------------------------------------------------------------------
|
|
|
|
{
|
1998-12-09 08:09:28 +03:00
|
|
|
mPath = (string&)inSpec;
|
1998-12-08 05:15:50 +03:00
|
|
|
}
|
|
|
|
#endif //XP_UNIX
|
|
|
|
|
|
|
|
|
1998-12-09 04:04:53 +03:00
|
|
|
#if defined(XP_UNIX) || defined(XP_PC)
|
1998-12-08 05:15:50 +03:00
|
|
|
//----------------------------------------------------------------------------------------
|
1998-12-09 08:09:28 +03:00
|
|
|
inline nsNativeFileSpec::operator = (const string& inString)
|
1998-12-08 05:15:50 +03:00
|
|
|
//----------------------------------------------------------------------------------------
|
|
|
|
{
|
1998-12-09 01:45:42 +03:00
|
|
|
mPath = inString;
|
1998-12-08 05:15:50 +03:00
|
|
|
}
|
|
|
|
#endif //XP_UNIX
|
|
|
|
|
1998-12-09 04:04:53 +03:00
|
|
|
#if (defined(XP_UNIX) || defined(XP_PC)) && DEBUG
|
1998-12-08 05:15:50 +03:00
|
|
|
//----------------------------------------------------------------------------------------
|
1998-12-09 08:09:28 +03:00
|
|
|
inline ostream& operator << (ostream& s, const nsNativeFileSpec& spec)
|
1998-12-08 05:15:50 +03:00
|
|
|
//----------------------------------------------------------------------------------------
|
|
|
|
{
|
1998-12-09 08:09:28 +03:00
|
|
|
return (s << (string&)spec.mPath);
|
1998-12-08 05:15:50 +03:00
|
|
|
}
|
|
|
|
#endif // DEBUG && XP_UNIX
|
|
|
|
|
|
|
|
#endif // _FILESPEC_H_
|