diff options
author | Tim Landscheidt <tim@tim-landscheidt.de> | 2019-01-15 14:21:19 +0000 |
---|---|---|
committer | Martin Michlmayr <tbm@cyrius.com> | 2019-01-25 17:10:13 -0300 |
commit | 0e5f0792ff7cfcc2012a53fa5372f4d6d04b5948 (patch) | |
tree | afdbc0ee4d51b2e163e16310ff9d21529cb2c9fe /src/expr.cc | |
parent | ccd330746a77cf335b2816a3048a8e25e61f8ed4 (diff) | |
download | fork-ledger-0e5f0792ff7cfcc2012a53fa5372f4d6d04b5948.tar.gz fork-ledger-0e5f0792ff7cfcc2012a53fa5372f4d6d04b5948.tar.bz2 fork-ledger-0e5f0792ff7cfcc2012a53fa5372f4d6d04b5948.zip |
Drop support for gcc 2 and earlier
Diffstat (limited to 'src/expr.cc')
-rw-r--r-- | src/expr.cc | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/expr.cc b/src/expr.cc index 85818e4b..c8945d3d 100644 --- a/src/expr.cc +++ b/src/expr.cc @@ -1,5 +1,5 @@ /* - * Copyright (c) 2003-2018, John Wiegley. All rights reserved. + * Copyright (c) 2003-2019, John Wiegley. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are @@ -94,9 +94,9 @@ void expr_t::parse(std::istream& in, const parse_flags_t& flags, const optional<string>& original_string) { parser_t parser; - istream_pos_type start_pos = in.tellg(); + std::istream::pos_type start_pos = in.tellg(); ptr = parser.parse(in, flags, original_string); - istream_pos_type end_pos = in.tellg(); + std::istream::pos_type end_pos = in.tellg(); if (original_string) { set_text(*original_string); @@ -290,10 +290,10 @@ value_t source_command(call_scope_t& args) in = &std::cin; } - symbol_scope_t file_locals(args); - std::size_t linenum = 0; - char buf[4096]; - istream_pos_type pos; + symbol_scope_t file_locals(args); + std::size_t linenum = 0; + char buf[4096]; + std::istream::pos_type pos; while (in->good() && ! in->eof()) { pos = in->tellg(); |