You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

27 lines
774 B

  1. --- a/block.h
  2. +++ b/block.h
  3. @@ -34,6 +34,7 @@ class Block
  4. { if( size_ < 0 || size_ > LLONG_MAX - pos_ ) size_ = LLONG_MAX - pos_; }
  5. public:
  6. + Block() {} // default constructor
  7. Block( const long long p, const long long s ) : pos_( p ), size_( s )
  8. { if( p < 0 ) { pos_ = 0; if( s > 0 ) size_ -= std::min( s, -p ); }
  9. fix_size(); }
  10. @@ -102,6 +103,7 @@ private:
  11. Status status_;
  12. public:
  13. + Sblock() {} // default constructor
  14. Sblock( const Block & b, const Status st )
  15. : Block( b ), status_( st ) {}
  16. Sblock( const long long p, const long long s, const Status st )
  17. --- a/mapbook.cc
  18. +++ b/mapbook.cc
  19. @@ -19,6 +19,7 @@
  20. #include <algorithm>
  21. #include <cerrno>
  22. +#include <cctype>
  23. #include <climits>
  24. #include <cstdio>
  25. #include <cstdlib>