ref: 1ed232578276caf6e999a2a9c0b6fd8952af659c
parent: 2f525802258cbed79e961d81e15390adf0f597ee
author: giles <giles@ded80894-8fb9-0310-811b-c03f3676ab4d>
date: Wed May 7 18:39:09 EDT 2003
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) git-svn-id: http://svn.ghostscript.com/jbig2dec/trunk@248 ded80894-8fb9-0310-811b-c03f3676ab4d
--- a/jbig2_symbol_dict.c
+++ b/jbig2_symbol_dict.c
@@ -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