From a8f16b82f32693500551108af818342f4a2faa63 Mon Sep 17 00:00:00 2001 From: johnvg Date: Mon, 6 Jun 2016 12:46:40 +0000 Subject: remove #ifdef CLEAN2 git-svn-id: https://svn.cs.ru.nl/repos/clean-compiler/trunk@2719 1f8540f1-abd5-4d5b-9d24-4c5ce8603e2d --- backendC/CleanCompilerSources/checker_2.c | 35 ++++++++++++++----------------- 1 file changed, 16 insertions(+), 19 deletions(-) diff --git a/backendC/CleanCompilerSources/checker_2.c b/backendC/CleanCompilerSources/checker_2.c index 9399b0d..41b3219 100644 --- a/backendC/CleanCompilerSources/checker_2.c +++ b/backendC/CleanCompilerSources/checker_2.c @@ -96,7 +96,6 @@ void ReadInlineCode (void) } } - Ident AnnotatedId, ListId, TupleId, ConsId, NilId, ApplyId, SelectId, #ifdef CLEAN2 DynamicId, @@ -230,21 +229,19 @@ void InitChecker (void) OpenDefinitionModules = NIL; } -#ifdef CLEAN2 - void ClearOpenDefinitionModules (void) - { - OpenDefinitionModules = NULL; - } - - void AddOpenDefinitionModule (SymbolP moduleNameSymbol, DefMod definitionModule) - { - DefModList openModule; - - openModule = CompAllocType (DefModElem); - openModule->mod_name = moduleNameSymbol; - openModule->mod_body = definitionModule; - openModule->mod_next = OpenDefinitionModules; - - OpenDefinitionModules = openModule; - } -#endif +void ClearOpenDefinitionModules (void) +{ + OpenDefinitionModules = NULL; +} + +void AddOpenDefinitionModule (SymbolP moduleNameSymbol, DefMod definitionModule) +{ + DefModList openModule; + + openModule = CompAllocType (DefModElem); + openModule->mod_name = moduleNameSymbol; + openModule->mod_body = definitionModule; + openModule->mod_next = OpenDefinitionModules; + + OpenDefinitionModules = openModule; +} -- cgit v1.2.3