Stopped using the generic "unsigned int" in favor of more specific types.
This commit is contained in:
parent
119b5dc197
commit
05c77351e4
27 changed files with 120 additions and 120 deletions
|
|
@ -111,10 +111,10 @@ class account_t : public scope_t
|
||||||
value_t value;
|
value_t value;
|
||||||
value_t total;
|
value_t total;
|
||||||
value_t sort_value;
|
value_t sort_value;
|
||||||
unsigned int count; // xacts counted toward amount
|
std::size_t count; // xacts counted toward amount
|
||||||
unsigned int total_count; // xacts counted toward total
|
std::size_t total_count; // xacts counted toward total
|
||||||
unsigned int virtuals;
|
std::size_t virtuals;
|
||||||
unsigned short dflags;
|
uint_least8_t dflags;
|
||||||
|
|
||||||
xdata_t()
|
xdata_t()
|
||||||
: supports_flags<>(), count(0), total_count(0),
|
: supports_flags<>(), count(0), total_count(0),
|
||||||
|
|
|
||||||
|
|
@ -1341,7 +1341,7 @@ void amount_t::read(const char *& data,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void amount_t::write(std::ostream& out, unsigned int index) const
|
void amount_t::write(std::ostream& out, std::size_t index) const
|
||||||
{
|
{
|
||||||
using namespace ledger::binary;
|
using namespace ledger::binary;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -104,7 +104,7 @@ public:
|
||||||
* The number of places of precision by which values are extended to
|
* The number of places of precision by which values are extended to
|
||||||
* avoid losing precision during division and multiplication.
|
* avoid losing precision during division and multiplication.
|
||||||
*/
|
*/
|
||||||
static const unsigned int extend_by_digits = 6U;
|
static const std::size_t extend_by_digits = 6U;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The current_pool is a static variable indicating which commodity
|
* The current_pool is a static variable indicating which commodity
|
||||||
|
|
@ -805,7 +805,7 @@ public:
|
||||||
void read(const char *& data,
|
void read(const char *& data,
|
||||||
char ** pool = NULL,
|
char ** pool = NULL,
|
||||||
char ** pool_next = NULL);
|
char ** pool_next = NULL);
|
||||||
void write(std::ostream& out, unsigned int index = 0) const;
|
void write(std::ostream& out, std::size_t index = 0) const;
|
||||||
|
|
||||||
/*@}*/
|
/*@}*/
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -517,7 +517,7 @@ void write_account(std::ostream& out, account_t * account)
|
||||||
write_account(out, pair.second);
|
write_account(out, pair.second);
|
||||||
}
|
}
|
||||||
|
|
||||||
unsigned int read_journal(std::istream& in,
|
std::size_t read_journal(std::istream& in,
|
||||||
const path& file,
|
const path& file,
|
||||||
journal_t& journal,
|
journal_t& journal,
|
||||||
account_t * master)
|
account_t * master)
|
||||||
|
|
|
||||||
|
|
@ -86,7 +86,7 @@ expr_t& expr_t::operator=(const expr_t& _expr)
|
||||||
return *this;
|
return *this;
|
||||||
}
|
}
|
||||||
|
|
||||||
void expr_t::parse(const string& _str, const unsigned int flags)
|
void expr_t::parse(const string& _str, const uint32_t flags)
|
||||||
{
|
{
|
||||||
if (! parser.get())
|
if (! parser.get())
|
||||||
throw_(parse_error, "Value expression parser not initialized");
|
throw_(parse_error, "Value expression parser not initialized");
|
||||||
|
|
@ -96,7 +96,7 @@ void expr_t::parse(const string& _str, const unsigned int flags)
|
||||||
compiled = false;
|
compiled = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
void expr_t::parse(std::istream& in, const unsigned int flags,
|
void expr_t::parse(std::istream& in, const uint32_t flags,
|
||||||
const string * original_string)
|
const string * original_string)
|
||||||
{
|
{
|
||||||
if (! parser.get())
|
if (! parser.get())
|
||||||
|
|
|
||||||
|
|
@ -108,8 +108,8 @@ public:
|
||||||
str = txt;
|
str = txt;
|
||||||
}
|
}
|
||||||
|
|
||||||
void parse(const string& _str, const unsigned int flags = 0);
|
void parse(const string& _str, const uint32_t flags = 0);
|
||||||
void parse(std::istream& in, const unsigned int flags = 0,
|
void parse(std::istream& in, const uint32_t flags = 0,
|
||||||
const string * original_string = NULL);
|
const string * original_string = NULL);
|
||||||
|
|
||||||
void compile(scope_t& scope);
|
void compile(scope_t& scope);
|
||||||
|
|
|
||||||
|
|
@ -125,7 +125,7 @@ void sort_xacts::post_accumulated_xacts()
|
||||||
}
|
}
|
||||||
|
|
||||||
namespace {
|
namespace {
|
||||||
string to_hex(unsigned int * message_digest)
|
string to_hex(uint_least32_t * message_digest)
|
||||||
{
|
{
|
||||||
std::ostringstream buf;
|
std::ostringstream buf;
|
||||||
|
|
||||||
|
|
@ -141,7 +141,7 @@ namespace {
|
||||||
void anonymize_xacts::operator()(xact_t& xact)
|
void anonymize_xacts::operator()(xact_t& xact)
|
||||||
{
|
{
|
||||||
SHA1 sha;
|
SHA1 sha;
|
||||||
unsigned int message_digest[5];
|
uint_least32_t message_digest[5];
|
||||||
bool copy_entry_details = false;
|
bool copy_entry_details = false;
|
||||||
|
|
||||||
if (last_entry != xact.entry) {
|
if (last_entry != xact.entry) {
|
||||||
|
|
|
||||||
|
|
@ -297,7 +297,7 @@ inline void clear_entries_xacts(std::list<entry_t>& entries_list) {
|
||||||
class collapse_xacts : public item_handler<xact_t>
|
class collapse_xacts : public item_handler<xact_t>
|
||||||
{
|
{
|
||||||
value_t subtotal;
|
value_t subtotal;
|
||||||
unsigned int count;
|
std::size_t count;
|
||||||
entry_t * last_entry;
|
entry_t * last_entry;
|
||||||
xact_t * last_xact;
|
xact_t * last_xact;
|
||||||
account_t totals_account;
|
account_t totals_account;
|
||||||
|
|
|
||||||
|
|
@ -323,12 +323,12 @@ void format_t::format(std::ostream& out_str, scope_t& scope)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
string format_t::truncate(const unistring& ustr, unsigned int width,
|
string format_t::truncate(const unistring& ustr, std::size_t width,
|
||||||
const bool is_account)
|
const bool is_account)
|
||||||
{
|
{
|
||||||
assert(width < 4095);
|
assert(width < 4095);
|
||||||
|
|
||||||
const unsigned int len = ustr.length();
|
const std::size_t len = ustr.length();
|
||||||
if (len <= width)
|
if (len <= width)
|
||||||
return ustr.extract();
|
return ustr.extract();
|
||||||
|
|
||||||
|
|
@ -361,7 +361,7 @@ string format_t::truncate(const unistring& ustr, unsigned int width,
|
||||||
|
|
||||||
std::ostringstream result;
|
std::ostringstream result;
|
||||||
|
|
||||||
unsigned int newlen = len;
|
std::size_t newlen = len;
|
||||||
for (std::list<string>::iterator i = parts.begin();
|
for (std::list<string>::iterator i = parts.begin();
|
||||||
i != parts.end();
|
i != parts.end();
|
||||||
i++) {
|
i++) {
|
||||||
|
|
|
||||||
|
|
@ -185,7 +185,7 @@ public:
|
||||||
elem->dump(out);
|
elem->dump(out);
|
||||||
}
|
}
|
||||||
|
|
||||||
static string truncate(const unistring& str, unsigned int width,
|
static string truncate(const unistring& str, std::size_t width,
|
||||||
const bool is_account = false);
|
const bool is_account = false);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -55,14 +55,14 @@ static amount_t curr_quant;
|
||||||
static XML_Parser current_parser;
|
static XML_Parser current_parser;
|
||||||
static accounts_map accounts_by_id;
|
static accounts_map accounts_by_id;
|
||||||
static account_comm_map account_comms;
|
static account_comm_map account_comms;
|
||||||
static unsigned int count;
|
static std::size_t count;
|
||||||
static string have_error;
|
static string have_error;
|
||||||
|
|
||||||
static std::istream * instreamp;
|
static std::istream * instreamp;
|
||||||
static unsigned int offset;
|
static std::size_t offset;
|
||||||
static XML_Parser parser;
|
static XML_Parser parser;
|
||||||
static path pathname;
|
static path pathname;
|
||||||
static unsigned int src_idx;
|
static std::size_t src_idx;
|
||||||
static istream_pos_type beg_pos;
|
static istream_pos_type beg_pos;
|
||||||
static unsigned long beg_line;
|
static unsigned long beg_line;
|
||||||
|
|
||||||
|
|
@ -376,7 +376,7 @@ bool gnucash_parser_t::test(std::istream& in) const
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
unsigned int gnucash_parser_t::parse(std::istream& in,
|
std::size_t gnucash_parser_t::parse(std::istream& in,
|
||||||
session_t& session,
|
session_t& session,
|
||||||
journal_t& journal,
|
journal_t& journal,
|
||||||
account_t * master,
|
account_t * master,
|
||||||
|
|
|
||||||
|
|
@ -41,7 +41,7 @@ class gnucash_parser_t : public journal_t::parser_t
|
||||||
public:
|
public:
|
||||||
virtual bool test(std::istream& in) const;
|
virtual bool test(std::istream& in) const;
|
||||||
|
|
||||||
virtual unsigned int parse(std::istream& in,
|
virtual std::size_t parse(std::istream& in,
|
||||||
session_t& session,
|
session_t& session,
|
||||||
journal_t& journal,
|
journal_t& journal,
|
||||||
account_t * master = NULL,
|
account_t * master = NULL,
|
||||||
|
|
|
||||||
|
|
@ -96,7 +96,7 @@ public:
|
||||||
|
|
||||||
virtual bool test(std::istream& in) const = 0;
|
virtual bool test(std::istream& in) const = 0;
|
||||||
|
|
||||||
virtual unsigned int parse(std::istream& in,
|
virtual std::size_t parse(std::istream& in,
|
||||||
session_t& session,
|
session_t& session,
|
||||||
journal_t& journal,
|
journal_t& journal,
|
||||||
account_t * master = NULL,
|
account_t * master = NULL,
|
||||||
|
|
@ -108,7 +108,7 @@ public:
|
||||||
public:
|
public:
|
||||||
virtual bool test(std::istream& in) const;
|
virtual bool test(std::istream& in) const;
|
||||||
|
|
||||||
virtual unsigned int parse(std::istream& in,
|
virtual std::size_t parse(std::istream& in,
|
||||||
session_t& session,
|
session_t& session,
|
||||||
journal_t& journal,
|
journal_t& journal,
|
||||||
account_t * master = NULL,
|
account_t * master = NULL,
|
||||||
|
|
|
||||||
|
|
@ -230,7 +230,7 @@ bool ofx_parser_t::test(std::istream& in) const
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
unsigned int ofx_parser_t::parse(std::istream&,
|
std::size_t ofx_parser_t::parse(std::istream& in,
|
||||||
session_t& session,
|
session_t& session,
|
||||||
journal_t& journal,
|
journal_t& journal,
|
||||||
account_t * master,
|
account_t * master,
|
||||||
|
|
|
||||||
|
|
@ -41,7 +41,7 @@ class ofx_parser_t : public journal_t::parser_t
|
||||||
public:
|
public:
|
||||||
virtual bool test(std::istream& in) const;
|
virtual bool test(std::istream& in) const;
|
||||||
|
|
||||||
virtual unsigned int parse(std::istream& in,
|
virtual std::size_t parse(std::istream& in,
|
||||||
session_t& session,
|
session_t& session,
|
||||||
journal_t& journal,
|
journal_t& journal,
|
||||||
account_t * master = NULL,
|
account_t * master = NULL,
|
||||||
|
|
|
||||||
12
src/op.h
12
src/op.h
|
|
@ -49,7 +49,7 @@ private:
|
||||||
mutable short refc;
|
mutable short refc;
|
||||||
ptr_op_t left_;
|
ptr_op_t left_;
|
||||||
|
|
||||||
variant<unsigned int, // used by constant INDEX
|
variant<std::size_t, // used by constant INDEX
|
||||||
value_t, // used by constant VALUE
|
value_t, // used by constant VALUE
|
||||||
string, // used by constant IDENT
|
string, // used by constant IDENT
|
||||||
mask_t, // used by constant MASK
|
mask_t, // used by constant MASK
|
||||||
|
|
@ -122,16 +122,16 @@ public:
|
||||||
}
|
}
|
||||||
|
|
||||||
bool is_index() const {
|
bool is_index() const {
|
||||||
return data.type() == typeid(unsigned int);
|
return data.type() == typeid(std::size_t);
|
||||||
}
|
}
|
||||||
unsigned int& as_index_lval() {
|
std::size_t& as_index_lval() {
|
||||||
assert(kind == INDEX);
|
assert(kind == INDEX);
|
||||||
return boost::get<unsigned int>(data);
|
return boost::get<std::size_t>(data);
|
||||||
}
|
}
|
||||||
const unsigned int& as_index() const {
|
const std::size_t& as_index() const {
|
||||||
return const_cast<op_t *>(this)->as_index_lval();
|
return const_cast<op_t *>(this)->as_index_lval();
|
||||||
}
|
}
|
||||||
void set_index(unsigned int val) {
|
void set_index(std::size_t val) {
|
||||||
data = val;
|
data = val;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -110,7 +110,7 @@ void process_environment(const char ** envp, const string& tag,
|
||||||
scope_t& scope)
|
scope_t& scope)
|
||||||
{
|
{
|
||||||
const char * tag_p = tag.c_str();
|
const char * tag_p = tag.c_str();
|
||||||
unsigned int tag_len = tag.length();
|
std::size_t tag_len = tag.length();
|
||||||
|
|
||||||
for (const char ** p = envp; *p; p++)
|
for (const char ** p = envp; *p; p++)
|
||||||
if (! tag_p || std::strncmp(*p, tag_p, tag_len) == 0) {
|
if (! tag_p || std::strncmp(*p, tag_p, tag_len) == 0) {
|
||||||
|
|
|
||||||
|
|
@ -178,7 +178,7 @@ bool format_accounts::disp_subaccounts_p(account_t& account,
|
||||||
account_t *& to_show)
|
account_t *& to_show)
|
||||||
{
|
{
|
||||||
bool display = false;
|
bool display = false;
|
||||||
unsigned int counted = 0;
|
std::size_t counted = 0;
|
||||||
bool matches = should_display(account);
|
bool matches = should_display(account);
|
||||||
bool computed = false;
|
bool computed = false;
|
||||||
value_t acct_total;
|
value_t acct_total;
|
||||||
|
|
|
||||||
14
src/qif.cc
14
src/qif.cc
|
|
@ -39,8 +39,8 @@ namespace ledger {
|
||||||
|
|
||||||
static char line[MAX_LINE + 1];
|
static char line[MAX_LINE + 1];
|
||||||
static path pathname;
|
static path pathname;
|
||||||
static unsigned int src_idx;
|
static std::size_t src_idx;
|
||||||
static unsigned int linenum;
|
static std::size_t linenum;
|
||||||
|
|
||||||
static inline char * get_line(std::istream& in) {
|
static inline char * get_line(std::istream& in) {
|
||||||
in.getline(line, MAX_LINE);
|
in.getline(line, MAX_LINE);
|
||||||
|
|
@ -53,9 +53,9 @@ static inline char * get_line(std::istream& in) {
|
||||||
|
|
||||||
bool qif_parser_t::test(std::istream& in) const
|
bool qif_parser_t::test(std::istream& in) const
|
||||||
{
|
{
|
||||||
char magic[sizeof(unsigned int) + 1];
|
char magic[sizeof(uint32_t) + 1];
|
||||||
in.read(magic, sizeof(unsigned int));
|
in.read(magic, sizeof(uint32_t));
|
||||||
magic[sizeof(unsigned int)] = '\0';
|
magic[sizeof(uint32_t)] = '\0';
|
||||||
in.clear();
|
in.clear();
|
||||||
in.seekg(0, std::ios::beg);
|
in.seekg(0, std::ios::beg);
|
||||||
|
|
||||||
|
|
@ -64,7 +64,7 @@ bool qif_parser_t::test(std::istream& in) const
|
||||||
std::strcmp(magic, "\r\n!T") == 0);
|
std::strcmp(magic, "\r\n!T") == 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
unsigned int qif_parser_t::parse(std::istream& in,
|
std::size_t qif_parser_t::parse(std::istream& in,
|
||||||
session_t& session,
|
session_t& session,
|
||||||
journal_t& journal,
|
journal_t& journal,
|
||||||
account_t * master,
|
account_t * master,
|
||||||
|
|
@ -74,7 +74,7 @@ unsigned int qif_parser_t::parse(std::istream& in,
|
||||||
std::auto_ptr<amount_t> amount;
|
std::auto_ptr<amount_t> amount;
|
||||||
|
|
||||||
xact_t * xact;
|
xact_t * xact;
|
||||||
unsigned int count = 0;
|
std::size_t count = 0;
|
||||||
account_t * misc = NULL;
|
account_t * misc = NULL;
|
||||||
commodity_t * def_commodity = NULL;
|
commodity_t * def_commodity = NULL;
|
||||||
bool saw_splits = false;
|
bool saw_splits = false;
|
||||||
|
|
|
||||||
|
|
@ -41,7 +41,7 @@ class qif_parser_t : public journal_t::parser_t
|
||||||
public:
|
public:
|
||||||
virtual bool test(std::istream& in) const;
|
virtual bool test(std::istream& in) const;
|
||||||
|
|
||||||
virtual unsigned int parse(std::istream& in,
|
virtual std::size_t parse(std::istream& in,
|
||||||
session_t& session,
|
session_t& session,
|
||||||
journal_t& journal,
|
journal_t& journal,
|
||||||
account_t * master = NULL,
|
account_t * master = NULL,
|
||||||
|
|
|
||||||
12
src/scope.h
12
src/scope.h
|
|
@ -151,10 +151,10 @@ public:
|
||||||
return args;
|
return args;
|
||||||
}
|
}
|
||||||
|
|
||||||
value_t& operator[](const unsigned int index) {
|
value_t& operator[](const std::size_t index) {
|
||||||
return args[index];
|
return args[index];
|
||||||
}
|
}
|
||||||
const value_t& operator[](const unsigned int index) const {
|
const value_t& operator[](const std::size_t index) const {
|
||||||
return args[index];
|
return args[index];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -182,9 +182,9 @@ public:
|
||||||
: value(scope.resolve(name).template as_pointer<T>()) {
|
: value(scope.resolve(name).template as_pointer<T>()) {
|
||||||
TRACE_CTOR(ptr_t, "scope_t&, const string&");
|
TRACE_CTOR(ptr_t, "scope_t&, const string&");
|
||||||
}
|
}
|
||||||
ptr_t(call_scope_t& scope, const unsigned int idx)
|
ptr_t(call_scope_t& scope, const std::size_t idx)
|
||||||
: value(scope[idx].template as_pointer<T>()) {
|
: value(scope[idx].template as_pointer<T>()) {
|
||||||
TRACE_CTOR(ptr_t, "call_scope_t&, const unsigned int");
|
TRACE_CTOR(ptr_t, "call_scope_t&, const std::size_t");
|
||||||
}
|
}
|
||||||
~ptr_t() throw() {
|
~ptr_t() throw() {
|
||||||
TRACE_DTOR(ptr_t);
|
TRACE_DTOR(ptr_t);
|
||||||
|
|
@ -215,9 +215,9 @@ public:
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
var_t(call_scope_t& scope, const unsigned int idx)
|
var_t(call_scope_t& scope, const std::size_t idx)
|
||||||
{
|
{
|
||||||
TRACE_CTOR(var_t, "call_scope_t&, const unsigned int");
|
TRACE_CTOR(var_t, "call_scope_t&, const std::size_t");
|
||||||
|
|
||||||
if (idx < scope.size())
|
if (idx < scope.size())
|
||||||
value = scope[idx];
|
value = scope[idx];
|
||||||
|
|
|
||||||
|
|
@ -72,7 +72,7 @@ typedef std::pair<std::string, std::size_t> allocation_pair;
|
||||||
typedef std::map<void *, allocation_pair> live_memory_map;
|
typedef std::map<void *, allocation_pair> live_memory_map;
|
||||||
typedef std::multimap<void *, allocation_pair> live_objects_map;
|
typedef std::multimap<void *, allocation_pair> live_objects_map;
|
||||||
|
|
||||||
typedef std::pair<unsigned int, std::size_t> count_size_pair;
|
typedef std::pair<std::size_t, std::size_t> count_size_pair;
|
||||||
typedef std::map<std::string, count_size_pair> object_count_map;
|
typedef std::map<std::string, count_size_pair> object_count_map;
|
||||||
|
|
||||||
static live_memory_map * live_memory = NULL;
|
static live_memory_map * live_memory = NULL;
|
||||||
|
|
@ -432,7 +432,7 @@ std::ostream * _log_stream = &std::cerr;
|
||||||
std::ostringstream _log_buffer;
|
std::ostringstream _log_buffer;
|
||||||
|
|
||||||
#if defined(TRACING_ON)
|
#if defined(TRACING_ON)
|
||||||
unsigned int _trace_level;
|
uint8_t _trace_level;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef BOOST_DATE_TIME_HAS_HIGH_PRECISION_CLOCK
|
#ifdef BOOST_DATE_TIME_HAS_HIGH_PRECISION_CLOCK
|
||||||
|
|
|
||||||
|
|
@ -286,7 +286,7 @@ bool logger_func(log_level_t level);
|
||||||
|
|
||||||
#if defined(TRACING_ON)
|
#if defined(TRACING_ON)
|
||||||
|
|
||||||
extern unsigned int _trace_level;
|
extern uint8_t _trace_level;
|
||||||
|
|
||||||
#define SHOW_TRACE(lvl) \
|
#define SHOW_TRACE(lvl) \
|
||||||
(ledger::_log_level >= ledger::LOG_TRACE && lvl <= ledger::_trace_level)
|
(ledger::_log_level >= ledger::LOG_TRACE && lvl <= ledger::_trace_level)
|
||||||
|
|
|
||||||
|
|
@ -237,7 +237,7 @@ xact_context::xact_context(const xact_t& _xact, const string& desc) throw()
|
||||||
: file_context("", 0, desc), xact(_xact)
|
: file_context("", 0, desc), xact(_xact)
|
||||||
{
|
{
|
||||||
const paths_list& sources(xact.entry->journal->sources);
|
const paths_list& sources(xact.entry->journal->sources);
|
||||||
unsigned int x = 0;
|
std::size_t x = 0;
|
||||||
foreach (const path& path, sources)
|
foreach (const path& path, sources)
|
||||||
if (x == xact.entry->src_idx) {
|
if (x == xact.entry->src_idx) {
|
||||||
file = path;
|
file = path;
|
||||||
|
|
|
||||||
|
|
@ -117,7 +117,7 @@ public:
|
||||||
value_t total;
|
value_t total;
|
||||||
value_t sort_value;
|
value_t sort_value;
|
||||||
value_t value;
|
value_t value;
|
||||||
unsigned int index;
|
std::size_t index;
|
||||||
date_t date;
|
date_t date;
|
||||||
account_t * account;
|
account_t * account;
|
||||||
void * ptr;
|
void * ptr;
|
||||||
|
|
|
||||||
|
|
@ -36,7 +36,7 @@
|
||||||
namespace ledger {
|
namespace ledger {
|
||||||
|
|
||||||
static irr::io::IrrXMLReader * current_parser;
|
static irr::io::IrrXMLReader * current_parser;
|
||||||
static unsigned int count;
|
static std::size_t count;
|
||||||
|
|
||||||
static journal_t * curr_journal;
|
static journal_t * curr_journal;
|
||||||
static entry_t * curr_entry;
|
static entry_t * curr_entry;
|
||||||
|
|
@ -213,7 +213,7 @@ bool xml_parser_t::test(std::istream& in) const
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
unsigned int xml_parser_t::parse(std::istream& in,
|
std::size_t xml_parser_t::parse(std::istream& in,
|
||||||
session_t& session,
|
session_t& session,
|
||||||
journal_t& journal,
|
journal_t& journal,
|
||||||
account_t * master,
|
account_t * master,
|
||||||
|
|
|
||||||
|
|
@ -75,7 +75,7 @@ class xml_parser_t : public journal_t::parser_t
|
||||||
public:
|
public:
|
||||||
virtual bool test(std::istream& in) const;
|
virtual bool test(std::istream& in) const;
|
||||||
|
|
||||||
virtual unsigned int parse(std::istream& in,
|
virtual std::size_t parse(std::istream& in,
|
||||||
session_t& session,
|
session_t& session,
|
||||||
journal_t& journal,
|
journal_t& journal,
|
||||||
account_t * master = NULL,
|
account_t * master = NULL,
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue