From 48d8c94022dfec271b331604f9274b4cb8e83c12 Mon Sep 17 00:00:00 2001 From: Jeff Hill Date: Wed, 29 May 2002 00:37:06 +0000 Subject: [PATCH] print out a warning when there is a bogus type in the table --- src/gdd/gddAppTable.cc | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/gdd/gddAppTable.cc b/src/gdd/gddAppTable.cc index 519612f16..6a4bd840a 100644 --- a/src/gdd/gddAppTable.cc +++ b/src/gdd/gddAppTable.cc @@ -4,6 +4,9 @@ // $Id$ // // $Log$ +// Revision 1.10 1999/04/30 15:24:53 jhill +// fixed improper container index bug +// // Revision 1.9 1997/08/05 00:51:14 jhill // fixed problems in aitString and the conversion matrix // @@ -462,11 +465,15 @@ gddStatus gddApplicationTypeTable::freeDD(gdd* dd) dd->setNext(attr_table[group][app].free_list); attr_table[group][app].free_list=dd; } - else + else if (attr_table[group][app].type==gddApplicationTypeNormal) { // fprintf(stderr,"freeDD a normal DD\n"); dd->unreference(); } + else { + fprintf ( stderr,"gddApplicationTypeTable::freeDD - unexpected DD type was %d\n", + attr_table[group][app].type ); + } return 0; }