Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions boost.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,7 @@ def build(bld):
from waflib.Configure import conf
from waflib.TaskGen import feature, after_method

BOOST_LIBS = ['/usr/lib/x86_64-linux-gnu', '/usr/lib/i386-linux-gnu',
'/usr/lib', '/usr/local/lib', '/opt/local/lib', '/sw/lib', '/lib']
BOOST_LIBS = ['/usr/lib/x86_64-linux-gnu', '/usr/lib/i386-linux-gnu', '/usr/lib/aarch64-linux-gnu', '/usr/lib', '/usr/local/lib', '/opt/local/lib', '/sw/lib', '/lib']
BOOST_INCLUDES = ['/usr/include', '/usr/local/include', '/opt/local/include', '/sw/include']
BOOST_VERSION_FILE = 'boost/version.hpp'
BOOST_VERSION_CODE = '''
Expand Down
34 changes: 17 additions & 17 deletions json5_parser/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
SET(JSON_SPIRIT_SRCS
json5_parser_reader.cpp json5_parser_reader.h
json5_parser_value.cpp json5_parser_value.h
json5_parser_writer.cpp json5_parser_writer.h
json5_parser.h
json5_parser_error_position.h
json5_parser_reader_template.h
json5_parser_stream_reader.h
json5_parser_utils.h
json5_parser_writer_options.h
json5_parser_writer_template.h )
FIND_PACKAGE(Boost 1.34 REQUIRED)
INCLUDE_DIRECTORIES(${Boost_INCLUDE_DIR})
ADD_LIBRARY(json5_parser STATIC ${JSON_SPIRIT_SRCS})
SET(JSON_SPIRIT_SRCS
json5_parser_reader.cpp json5_parser_reader.h
json5_parser_value.cpp json5_parser_value.h
json5_parser_writer.cpp json5_parser_writer.h
json5_parser.h
json5_parser_error_position.h
json5_parser_reader_template.h
json5_parser_stream_reader.h
json5_parser_utils.h
json5_parser_writer_options.h
json5_parser_writer_template.h )

#FIND_PACKAGE(Boost 1.34 REQUIRED)
INCLUDE_DIRECTORIES(${Boost_INCLUDE_DIR})

ADD_LIBRARY(json5_parser STATIC ${JSON_SPIRIT_SRCS})

36 changes: 18 additions & 18 deletions json5_parser/json5_parser.h
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
#ifndef JSON_SPIRIT
#define JSON_SPIRIT
// Copyright John W. Wilkinson 2007 - 2014
// Distributed under the MIT License, see accompanying file LICENSE.txt
// json spirit version 4.08
#if defined(_MSC_VER) && (_MSC_VER >= 1020)
# pragma once
#endif
#include "json5_parser_value.h"
#include "json5_parser_reader.h"
#include "json5_parser_writer.h"
#include "json5_parser_utils.h"
#endif
#ifndef JSON_SPIRIT
#define JSON_SPIRIT

// Copyright John W. Wilkinson 2007 - 2014
// Distributed under the MIT License, see accompanying file LICENSE.txt

// json spirit version 4.08

#if defined(_MSC_VER) && (_MSC_VER >= 1020)
#pragma once
#endif

#include "json5_parser_reader.h"
#include "json5_parser_utils.h"
#include "json5_parser_value.h"
#include "json5_parser_writer.h"

#endif
96 changes: 42 additions & 54 deletions json5_parser/json5_parser_error_position.h
Original file line number Diff line number Diff line change
@@ -1,54 +1,42 @@
#ifndef JSON_SPIRIT_ERROR_POSITION
#define JSON_SPIRIT_ERROR_POSITION

// Copyright John W. Wilkinson 2007 - 2014
// Distributed under the MIT License, see accompanying file LICENSE.txt

// json spirit version 4.08

#if defined(_MSC_VER) && (_MSC_VER >= 1020)
# pragma once
#endif

#include <string>

namespace json5_parser
{
// An Error_position exception is thrown by the "read_or_throw" functions below on finding an error.
// Note the "read_or_throw" functions are around 3 times slower than the standard functions "read"
// functions that return a bool.
//
struct Error_position
{
Error_position();
Error_position( unsigned int line, unsigned int column, const std::string& reason );
bool operator==( const Error_position& lhs ) const;
unsigned int line_;
unsigned int column_;
std::string reason_;
};

inline Error_position::Error_position()
: line_( 0 )
, column_( 0 )
{
}

inline Error_position::Error_position( unsigned int line, unsigned int column, const std::string& reason )
: line_( line )
, column_( column )
, reason_( reason )
{
}

inline bool Error_position::operator==( const Error_position& lhs ) const
{
if( this == &lhs ) return true;

return ( reason_ == lhs.reason_ ) &&
( line_ == lhs.line_ ) &&
( column_ == lhs.column_ );
}
}

#endif
#ifndef JSON_SPIRIT_ERROR_POSITION
#define JSON_SPIRIT_ERROR_POSITION

// Copyright John W. Wilkinson 2007 - 2014
// Distributed under the MIT License, see accompanying file LICENSE.txt

// json spirit version 4.08

#if defined(_MSC_VER) && (_MSC_VER >= 1020)
#pragma once
#endif

#include <string>

namespace json5_parser {
// An Error_position exception is thrown by the "read_or_throw" functions below on
// finding an error. Note the "read_or_throw" functions are around 3 times slower than
// the standard functions "read" functions that return a bool.
//
struct Error_position {
Error_position();
Error_position(unsigned int line, unsigned int column, const std::string& reason);
bool operator==(const Error_position& lhs) const;
unsigned int line_;
unsigned int column_;
std::string reason_;
};

inline Error_position::Error_position() : line_(0), column_(0) {}

inline Error_position::Error_position(unsigned int line, unsigned int column,
const std::string& reason)
: line_(line), column_(column), reason_(reason) {}

inline bool Error_position::operator==(const Error_position& lhs) const {
if (this == &lhs) return true;

return (reason_ == lhs.reason_) && (line_ == lhs.line_) && (column_ == lhs.column_);
}
} // namespace json5_parser

#endif
Loading