From 80b79875615a033d223eaaa30891d7962a4dc2cc Mon Sep 17 00:00:00 2001 From: Matthias Braun Date: Fri, 14 Mar 2008 16:29:47 +0000 Subject: [PATCH] don't emit enum declarations when printing declaration statements [r18944] --- TODO | 1 + ast.c | 3 +++ 2 files changed, 4 insertions(+) diff --git a/TODO b/TODO index 272f5aa..9944e79 100644 --- a/TODO +++ b/TODO @@ -38,6 +38,7 @@ Spec-Status: (only test datasets tried yet) 164.gzip: works 175.vpr: works +176.gcc: not ok 181.mcf: works 186.crafty: works (~though an asm is replaced with a stub) 253.perlbmk: not ok diff --git a/ast.c b/ast.c index 23ad48f..aca6742 100644 --- a/ast.c +++ b/ast.c @@ -931,6 +931,9 @@ static void print_declaration_statement( declaration_t *declaration = statement->declarations_begin; for( ; declaration != statement->declarations_end->next; declaration = declaration->next) { + if(declaration->storage_class == STORAGE_CLASS_ENUM_ENTRY) + continue; + if(!first) { print_indent(); } else { -- 2.20.1