From b4c6d9606427ba91d864d2ea97fed4f0837e5ae3 Mon Sep 17 00:00:00 2001 From: Thomas Schmitt Date: Mon, 20 Aug 2007 08:43:44 +0000 Subject: [PATCH] Corrected a bug about inclusion of cevap*.h files --- libburn/trunk/libcevap/cgen.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/libburn/trunk/libcevap/cgen.c b/libburn/trunk/libcevap/cgen.c index 77c1be97..1ff3bdfc 100644 --- a/libburn/trunk/libcevap/cgen.c +++ b/libburn/trunk/libcevap/cgen.c @@ -464,10 +464,14 @@ int flag; /* already included ? */ if(strcmp(dtype,cgen->structname)==0) continue; - for(hct= cgen->elements; hct!=NULL && hct!=ct; hct= hct->next) - if(strcmp(ct->dtype,dtype)==0) + for(hct= cgen->elements; hct!=NULL && hct!=ct; hct= hct->next) { + if(hct->is_comment) + continue; + if(hct->dtype!=NULL) + if(strcmp(hct->dtype,dtype)==0) break; - if(hct!=ct) + } + if(hct!=ct && hct!=NULL) continue; if(is_struct && (isupper(dtype[0]) && isupper(dtype[strlen(dtype)-1]))) {