|
@ -54,20 +54,20 @@ namespace parser { |
|
|
class MappedFile |
|
|
class MappedFile |
|
|
{ |
|
|
{ |
|
|
private: |
|
|
private: |
|
|
|
|
|
#if defined LINUX || defined MACOSX |
|
|
/*! |
|
|
/*! |
|
|
* @brief file descriptor obtained by open(). |
|
|
* @brief file descriptor obtained by open(). |
|
|
*/ |
|
|
*/ |
|
|
#if defined LINUX || defined MACOSX |
|
|
|
|
|
int file; |
|
|
int file; |
|
|
#elif defined WINDOWS |
|
|
#elif defined WINDOWS |
|
|
HANDLE file; |
|
|
HANDLE file; |
|
|
HANDLE mapping; |
|
|
HANDLE mapping; |
|
|
#endif |
|
|
#endif |
|
|
|
|
|
|
|
|
|
|
|
#if defined LINUX || defined MACOSX |
|
|
/*! |
|
|
/*! |
|
|
* @brief stat information about the file. |
|
|
* @brief stat information about the file. |
|
|
*/ |
|
|
*/ |
|
|
#if defined LINUX || defined MACOSX |
|
|
|
|
|
struct stat64 st; |
|
|
struct stat64 st; |
|
|
#elif defined WINDOWS |
|
|
#elif defined WINDOWS |
|
|
struct __stat64 st; |
|
|
struct __stat64 st; |
|
|