diff options
Diffstat (limited to 'MoonParser/pegtl/file_input.hpp')
-rw-r--r-- | MoonParser/pegtl/file_input.hpp | 37 |
1 files changed, 0 insertions, 37 deletions
diff --git a/MoonParser/pegtl/file_input.hpp b/MoonParser/pegtl/file_input.hpp deleted file mode 100644 index 625d491..0000000 --- a/MoonParser/pegtl/file_input.hpp +++ /dev/null | |||
@@ -1,37 +0,0 @@ | |||
1 | // Copyright (c) 2015-2017 Dr. Colin Hirsch and Daniel Frey | ||
2 | // Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ | ||
3 | |||
4 | #ifndef TAOCPP_PEGTL_INCLUDE_FILE_INPUT_HPP | ||
5 | #define TAOCPP_PEGTL_INCLUDE_FILE_INPUT_HPP | ||
6 | |||
7 | #include "config.hpp" | ||
8 | #include "eol.hpp" | ||
9 | #include "tracking_mode.hpp" | ||
10 | |||
11 | #if defined( __unix__ ) || ( defined( __APPLE__ ) && defined( __MACH__ ) ) | ||
12 | #include <unistd.h> // Required for _POSIX_MAPPED_FILES | ||
13 | #endif | ||
14 | |||
15 | #if defined( _POSIX_MAPPED_FILES ) | ||
16 | #include "mmap_input.hpp" | ||
17 | #else | ||
18 | #include "read_input.hpp" | ||
19 | #endif | ||
20 | |||
21 | namespace tao | ||
22 | { | ||
23 | namespace TAOCPP_PEGTL_NAMESPACE | ||
24 | { | ||
25 | #if defined( _POSIX_MAPPED_FILES ) | ||
26 | template< tracking_mode P = tracking_mode::IMMEDIATE, typename Eol = eol::lf_crlf > | ||
27 | using file_input = mmap_input< P, Eol >; | ||
28 | #else | ||
29 | template< tracking_mode P = tracking_mode::IMMEDIATE, typename Eol = eol::lf_crlf > | ||
30 | using file_input = read_input< P, Eol >; | ||
31 | #endif | ||
32 | |||
33 | } // namespace TAOCPP_PEGTL_NAMESPACE | ||
34 | |||
35 | } // namespace tao | ||
36 | |||
37 | #endif | ||