diff options
Diffstat (limited to 'Build/source/texk/dvisvgm/dvisvgm-src/src/InputBuffer.cpp')
-rw-r--r-- | Build/source/texk/dvisvgm/dvisvgm-src/src/InputBuffer.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Build/source/texk/dvisvgm/dvisvgm-src/src/InputBuffer.cpp b/Build/source/texk/dvisvgm/dvisvgm-src/src/InputBuffer.cpp index b290c28d628..53d7eeee9d0 100644 --- a/Build/source/texk/dvisvgm/dvisvgm-src/src/InputBuffer.cpp +++ b/Build/source/texk/dvisvgm/dvisvgm-src/src/InputBuffer.cpp @@ -2,7 +2,7 @@ ** InputBuffer.cpp ** ** ** ** This file is part of dvisvgm -- a fast DVI to SVG converter ** -** Copyright (C) 2005-2016 Martin Gieseking <martin.gieseking@uos.de> ** +** Copyright (C) 2005-2017 Martin Gieseking <martin.gieseking@uos.de> ** ** ** ** This program is free software; you can redistribute it and/or ** ** modify it under the terms of the GNU General Public License as ** @@ -21,13 +21,13 @@ #include <config.h> #include <cmath> #include <cstring> -#include "InputBuffer.h" +#include "InputBuffer.hpp" using namespace std; StreamInputBuffer::StreamInputBuffer (istream &is, size_t bufsize) - : _is(is), _bufsize(bufsize), _buf1(new UInt8[_bufsize]), _buf2(new UInt8[_bufsize]), _bufptr(_buf1) + : _is(is), _bufsize(bufsize), _buf1(new uint8_t[_bufsize]), _buf2(new uint8_t[_bufsize]), _bufptr(_buf1) { _size1 = fillBuffer(_buf1); _size2 = fillBuffer(_buf2); @@ -49,7 +49,7 @@ int StreamInputBuffer::get () { _bufptr = _buf1; _size2 = fillBuffer(_buf2); } - UInt8 c = *_bufptr++; + uint8_t c = *_bufptr++; return c; } @@ -77,7 +77,7 @@ int StreamInputBuffer::peek (size_t n) const { * input stream. * @param[in] buf pointer to character buffer to be filled * @return number of characters read */ -int StreamInputBuffer::fillBuffer (UInt8 *buf) { +int StreamInputBuffer::fillBuffer (uint8_t *buf) { if (_is && !_is.eof()) { _is.read((char*)buf, _bufsize); return _is.gcount(); |