[jbig2-cvs] rev 248 - trunk
giles@ghostscript.com
giles@ghostscript.com
Wed, 7 May 2003 15:39:09 -0700
Author: giles
Date: 2003-05-07 15:39:09 -0700 (Wed, 07 May 2003)
New Revision: 248
Modified:
trunk/jbig2_symbol_dict.c
Log:
Further conditionalize the symbol dictionary debug dump: it's now enabled with DUMP_SYMDICT
instead of just DEBUG.
(recommitted after repository became corrupt. original change date Mon May 5 10:26:31 2003)
Modified: trunk/jbig2_symbol_dict.c
==============================================================================
--- trunk/jbig2_symbol_dict.c (r247)
+++ trunk/jbig2_symbol_dict.c (r248)
@@ -1,7 +1,7 @@
/*
jbig2dec
- Copyright (C) 2001-2002 artofcode LLC.
+ Copyright (C) 2001-2003 artofcode LLC.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -28,12 +28,11 @@
#include "jbig2_generic.h"
#include "jbig2_symbol_dict.h"
-#if defined(OUTPUT_PBM) || defined(HAVE_LIBPNG)
+#if defined(OUTPUT_PBM) || defined(DUMP_SYMDICT)
#include <stdio.h>
#include "jbig2_image.h"
#endif
-
/* Table 13 */
typedef struct {
bool SDHUFF;
@@ -52,7 +51,7 @@
int8_t sdrat[4];
} Jbig2SymbolDictParams;
-#ifdef DEBUG
+#ifdef DUMP_SYMDICT
void
jbig2_dump_symbol_dict(Jbig2SymbolDict *dict)
{
@@ -69,7 +68,7 @@
#endif
}
}
-#endif /* DEBUG */
+#endif /* DUMP_SYMDICT */
/* 6.5 */
static Jbig2SymbolDict *
@@ -300,7 +299,7 @@
segment_data + offset,
segment->data_length - offset,
GB_stats);
-#ifdef DEBUG
+#ifdef DUMP_SYMDICT
jbig2_dump_symbol_dict(segment->result);
#endif