1 /*=============================================================================
2 Boost.Wave: A Standard compliant C++ preprocessor library
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 =============================================================================*/
12 #if !defined(AQ_HPP_A21D9145_B643_44C0_81E7_DB346DD67EE1_INCLUDED)
13 #define AQ_HPP_A21D9145_B643_44C0_81E7_DB346DD67EE1_INCLUDED
15 #include <boost/wave/wave_config.hpp>
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
23 ///////////////////////////////////////////////////////////////////////////////
29 typedef std::size_t aq_stdelement;
31 typedef struct tag_aq_queuetype
40 typedef aq_queuetype* aq_queue;
42 int aq_enqueue(aq_queue q, aq_stdelement e);
43 int aq_enqueue_front(aq_queue q, aq_stdelement e);
44 int aq_serve(aq_queue q, aq_stdelement *e);
45 int aq_pop(aq_queue q);
46 #define AQ_EMPTY(q) (q->size == 0)
47 #define AQ_FULL(q) (q->size == q->max_size)
48 int aq_grow(aq_queue q);
50 BOOST_WAVE_DECL aq_queue aq_create(void);
51 BOOST_WAVE_DECL void aq_terminate(aq_queue q);
53 ///////////////////////////////////////////////////////////////////////////////
54 } // namespace re2clex
55 } // namespace cpplexer
59 // the suffix header occurs after all of the code
60 #ifdef BOOST_HAS_ABI_HEADERS
61 #include BOOST_ABI_SUFFIX
64 #endif // !defined(AQ_HPP_A21D9145_B643_44C0_81E7_DB346DD67EE1_INCLUDED)