iOS/buildlibs/armv7/allegro-4.4.2/addons/jpgalleg/src/io.c
/* _jpeg_getc:
 *  Reads a byte from the input stream.
 */
Reads a byte from the input stream.
Reads a byte from the input stream .
int
_jpeg_getc(void)
{
	bytes_read++;
	if (_jpeg_io.current_bit < 8) {
		if (*_jpeg_io.buffer == 0xff)
			_jpeg_io.buffer++;
		_jpeg_io.buffer++;
	}
	_jpeg_io.current_bit = 8;
	if (_jpeg_io.buffer >= _jpeg_io.buffer_end) {
		TRACE("Tried to read memory past buffer size");
		jpgalleg_error = JPG_ERROR_INPUT_BUFFER_TOO_SMALL;
		return -1;
	}
	return *_jpeg_io.buffer++;
}
int _jpeg_getc ( void ) { bytes_read ++ ; if ( _jpeg_io . current_bit < 8 ) { if ( * _jpeg_io . buffer == 0xff ) _jpeg_io . buffer ++ ; _jpeg_io . buffer ++ ; } _jpeg_io . current_bit = 8 ; if ( _jpeg_io . buffer >= _jpeg_io . buffer_end ) { TRACE ( " " ) ; jpgalleg_error = JPG_ERROR_INPUT_BUFFER_TOO_SMALL ; return -1 ; } return * _jpeg_io . buffer ++ ; }
_jpeg_getc:
  Reads a byte from the input stream.
_jpeg_getc : Reads a byte from the input stream .