/*
- * jdatasrc.c
+ * jdatasrc.cxx
*
* Copyright (C) 1994-1996, Thomas G. Lane.
* This file is part of the Independent JPEG Group's software.
/* Expanded data source object for stdio input */
extern "C" {
- typedef int(*int_jpeg_decompress_struct)(jpeg_decompress_struct*);
+ typedef boolean(*boolean_jpeg_decompress_struct)(jpeg_decompress_struct*);
typedef void(*void_jpeg_decompress_struct)(jpeg_decompress_struct*);
typedef void(*void_jpeg_decompress_struct_long)(jpeg_decompress_struct*,long);
}
src = (my_src_ptr) cinfo->src;
src->pub.init_source = reinterpret_cast<void_jpeg_decompress_struct>(init_source);
- src->pub.fill_input_buffer = reinterpret_cast<int_jpeg_decompress_struct>(fill_input_buffer);
+ src->pub.fill_input_buffer = reinterpret_cast<boolean_jpeg_decompress_struct>(fill_input_buffer);
src->pub.skip_input_data = reinterpret_cast<void_jpeg_decompress_struct_long>(skip_input_data);
src->pub.resync_to_restart = jpeg_resync_to_restart; /* use default method */
src->pub.term_source = reinterpret_cast<void_jpeg_decompress_struct>(term_source);