#define PGMNAME PGMPREFIX "d"
#define EPGMNAME PGMPREFIX "e"
-static char *banner="\n\
+/* define color mode strings */
+char plane_int_string[] = "plane by plane",
+ line_int_string[] = "line intlv",
+ pixel_int_string[] = "sample intlv";
+
+static char banner[]="\n\
=============================================\n\
SPMG/JPEG-LS DECOMPRESSOR " JPEGLSVERSION "\n\
=============================================\n\
/* command line argument parsing */
int initialize(int argc, char *argv[])
{
- char *infilename = NULL,
- *outfilename = OUTFILE ".out",
- *c_outfilename[MAX_COMPONENTS],
+ char *infilename = NULL;
+ const char *outfilename = OUTFILE ".out";
+ char *c_outfilename[MAX_COMPONENTS],
*color_mode_string;
int i, max_samp_columns, max_samp_rows, mk, n_s,
end_of_seek=0,
limit_reduce; /* reduction on above for EOR states */
-/* define color mode strings */
-char plane_int_string[] = "plane by plane",
- line_int_string[] = "line intlv",
- pixel_int_string[] = "sample intlv";
/* function to print out error messages */
#endif
void
-check_range(int param, char *name, int low, int high)
+check_range(int param, const char *name, int low, int high)
{
if ( param < low || param > high ) {
fprintf(stderr,"Allowed range for %s is [%d..%d]: got %d\n",