4b260f490e
global scope to static scope in encoder.c / decoder.c and initialise it from main. Fix a nice side-effect from a macro, which is not a macro in DragonFly: if feof(tablefile) does not parse correctly.
25 lines
694 B
Text
25 lines
694 B
Text
$NetBSD: patch-ak,v 1.1 2005/12/30 23:23:54 joerg Exp $
|
|
|
|
--- Encoder/encoder.c.orig 2005-12-30 23:14:44.000000000 +0000
|
|
+++ Encoder/encoder.c
|
|
@@ -102,6 +102,8 @@ int lutmax; /* lutmax is either 256
|
|
int bpp16; /* Indicates if 16 bits per pixel mode or not */
|
|
char *mappingtablefilename=NULL; /* Mapping table filename */
|
|
|
|
+static FILE *msgfile;
|
|
+
|
|
/* reset */
|
|
#ifndef FIXRESET
|
|
int RESET;
|
|
@@ -674,9 +676,10 @@ int main (int argc, char *argv[]) {
|
|
int temp_columns;
|
|
int MCUs_counted;
|
|
|
|
-
|
|
pixel *local_scanl0,*local_scanl1,*local_pscanline,*local_cscanline;
|
|
|
|
+ msgfile = stdout;
|
|
+
|
|
application_header = all_header = 0;
|
|
|
|
/* Parse the parameters, initialize */
|