]> git.proxmox.com Git - ceph.git/blame - ceph/src/boost/libs/wave/include/boost/wave/cpplexer/re2clex/scanner.hpp
bump version to 12.2.2-pve1
[ceph.git] / ceph / src / boost / libs / wave / include / boost / wave / cpplexer / re2clex / scanner.hpp
CommitLineData
7c673cae
FG
1/*=============================================================================
2 Boost.Wave: A Standard compliant C++ preprocessor library
3
4 http://www.boost.org/
5
6 Copyright (c) 2001 Daniel C. Nuffer.
7 Copyright (c) 2001-2012 Hartmut Kaiser.
8 Distributed under the Boost Software License, Version 1.0. (See accompanying
9 file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
10=============================================================================*/
11
12#if !defined(SCANNER_HPP_F4FB01EB_E75C_4537_A146_D34B9895EF37_INCLUDED)
13#define SCANNER_HPP_F4FB01EB_E75C_4537_A146_D34B9895EF37_INCLUDED
14
15#include <boost/wave/wave_config.hpp>
16#include <boost/wave/cpplexer/re2clex/aq.hpp>
17
18// this must occur after all of the includes and before any code appears
19#ifdef BOOST_HAS_ABI_HEADERS
20#include BOOST_ABI_PREFIX
21#endif
22
23///////////////////////////////////////////////////////////////////////////////
24namespace boost {
25namespace wave {
26namespace cpplexer {
27namespace re2clex {
28
29struct Scanner;
30typedef unsigned char uchar;
31typedef int (* ReportErrorProc)(struct Scanner const *, int errorcode,
32 char const *, ...);
33
34typedef struct Scanner {
35 uchar* first; /* start of input buffer */
36 uchar* act; /* act position of input buffer */
37 uchar* last; /* end (one past last char) of input buffer */
38 uchar* bot; /* beginning of the current buffer */
39 uchar* top; /* top of the current buffer */
40 uchar* eof; /* when we read in the last buffer, will point 1 past the
41 end of the file, otherwise 0 */
42 uchar* tok; /* points to the beginning of the current token */
43 uchar* ptr; /* used for YYMARKER - saves backtracking info */
44 uchar* cur; /* saves the cursor (maybe is redundant with tok?) */
45 uchar* lim; /* used for YYLIMIT - points to the end of the buffer */
46 /* (lim == top) except for the last buffer, it points to
47 the end of the input (lim == eof - 1) */
48 std::size_t line; /* current line being lex'ed */
49 std::size_t column; /* current token start column position */
50 std::size_t curr_column; /* current column position */
51 ReportErrorProc error_proc; /* must be != 0, this function is called to
52 report an error */
53 char const *file_name; /* name of the lex'ed file */
54 aq_queue eol_offsets;
55 bool enable_ms_extensions; /* enable MS extensions */
56 bool act_in_c99_mode; /* lexer works in C99 mode */
57 bool detect_pp_numbers; /* lexer should prefer to detect pp-numbers */
58 bool enable_import_keyword; /* recognize import as a keyword */
59 bool single_line_only; /* don't report missing eol's in C++ comments */
60 bool act_in_cpp0x_mode; /* lexer works in C++11 mode */
61} Scanner;
62
63///////////////////////////////////////////////////////////////////////////////
64} // namespace re2clex
65} // namespace cpplexer
66} // namespace wave
67} // namespace boost
68
69// the suffix header occurs after all of the code
70#ifdef BOOST_HAS_ABI_HEADERS
71#include BOOST_ABI_SUFFIX
72#endif
73
74#endif // !defined(SCANNER_HPP_F4FB01EB_E75C_4537_A146_D34B9895EF37_INCLUDED)