Fix the SecUnicodeMapFile and SecUnicodeCodePage

This commit is contained in:
Felipe Zimmerle
2018-10-19 11:00:50 -03:00
parent 3d83ed257f
commit 23e0d35d2d
10 changed files with 6640 additions and 6373 deletions

View File

@@ -1,4 +1,4 @@
// A Bison parser, made by GNU Bison 3.0.5.
// A Bison parser, made by GNU Bison 3.1.
// Stack handling for Bison parsers in C++
@@ -42,7 +42,7 @@
namespace yy {
#line 46 "stack.hh" // stack.hh:131
#line 46 "stack.hh" // stack.hh:132
/// A stack with random access from its top.
template <class T, class S = std::vector<T> >
class stack
@@ -51,14 +51,14 @@ namespace yy {
// Hide our reversed order.
typedef typename S::reverse_iterator iterator;
typedef typename S::const_reverse_iterator const_iterator;
typedef typename S::size_type size_type;
stack ()
: seq_ ()
{
seq_.reserve (200);
}
stack (unsigned n)
stack (size_type n)
: seq_ (n)
{}
@@ -66,7 +66,7 @@ namespace yy {
///
/// Index 0 returns the topmost element.
T&
operator[] (unsigned i)
operator[] (size_type i)
{
return seq_[seq_.size () - 1 - i];
}
@@ -75,7 +75,7 @@ namespace yy {
///
/// Index 0 returns the topmost element.
const T&
operator[] (unsigned i) const
operator[] (size_type i) const
{
return seq_[seq_.size () - 1 - i];
}
@@ -91,7 +91,7 @@ namespace yy {
}
void
pop (unsigned n = 1)
pop (size_type n = 1)
{
for (; n; --n)
seq_.pop_back ();
@@ -103,7 +103,7 @@ namespace yy {
seq_.clear ();
}
typename S::size_type
size_type
size () const
{
return seq_.size ();
@@ -133,24 +133,25 @@ namespace yy {
class slice
{
public:
slice (const S& stack, unsigned range)
typedef typename S::size_type size_type;
slice (const S& stack, size_type range)
: stack_ (stack)
, range_ (range)
{}
const T&
operator [] (unsigned i) const
operator[] (size_type i) const
{
return stack_[range_ - i];
}
private:
const S& stack_;
unsigned range_;
size_type range_;
};
} // yy
#line 155 "stack.hh" // stack.hh:131
#line 156 "stack.hh" // stack.hh:132
#endif // !YY_YY_STACK_HH_INCLUDED