* supplies the equivalent of the main buffer in that case.
*/
+/* suppress the warnings about using main for the variable names */
+#define main jpegMain
+
#define JPEG_INTERNALS
#include "jinclude.h"
#include "jpeglib.h"
-
/*
* In the current system design, the main buffer need never be a full-image
* buffer; any full-height buffers will be found inside the coefficient or
/* Pointer to allocated workspace (M or M+2 row groups). */
JSAMPARRAY buffer[MAX_COMPONENTS];
- boolean buffer_full; /* Have we gotten an iMCU row from decoder? */
+ wxjpeg_boolean buffer_full; /* Have we gotten an iMCU row from decoder? */
JDIMENSION rowgroup_ctr; /* counts row groups output to postprocessor */
/* Remaining fields are only used in the context case. */
#define CTX_POSTPONED_ROW 2 /* feeding postponed row group */
+#if defined(__VISAGECPP__)
+/* Visual Age fixups for multiple declarations */
+# define start_pass_main start_pass_main2 /* already in jcmaint.c */
+# define process_data_simple_main process_data_simple_main2 /* already in jcmaint.c */
+#endif
+
/* Forward declarations */
METHODDEF(void) process_data_simple_main
JPP((j_decompress_ptr cinfo, JSAMPARRAY output_buf,
*/
GLOBAL(void)
-jinit_d_main_controller (j_decompress_ptr cinfo, boolean need_full_buffer)
+jinit_d_main_controller (j_decompress_ptr cinfo, wxjpeg_boolean need_full_buffer)
{
my_main_ptr main;
int ci, rgroup, ngroups;
(JDIMENSION) (rgroup * ngroups));
}
}
+
+#if defined(__VISAGECPP__)
+# ifdef start_pass_main2
+# undef start_pass_main2
+# endif
+# ifdef process_data_simple_main2
+# undef process_data_simple_main2
+# endif
+#endif