From f796c24a2669698b221de059bf47df7ccedc15ae Mon Sep 17 00:00:00 2001 From: Eyck Jentzsch Date: Mon, 3 Jul 2023 20:59:16 +0200 Subject: [PATCH] prepares templates for CoreDSL 2.0.9 drop --- gen_input/templates/CORENAME.h.gtl | 7 +------ gen_input/templates/interp/CORENAME.cpp.gtl | 2 -- 2 files changed, 1 insertion(+), 8 deletions(-) diff --git a/gen_input/templates/CORENAME.h.gtl b/gen_input/templates/CORENAME.h.gtl index 9c8082e..83fb8e1 100644 --- a/gen_input/templates/CORENAME.h.gtl +++ b/gen_input/templates/CORENAME.h.gtl @@ -30,8 +30,6 @@ * *******************************************************************************/ <% -import com.minres.coredsl.util.BigIntegerWithRadix - def nativeTypeSize(int size){ if(size<=8) return 8; else if(size<=16) return 16; else if(size<=32) return 32; else return 64; } @@ -57,10 +55,7 @@ def byteSize(int size){ return 128; } def getCString(def val){ - if(val instanceof BigIntegerWithRadix) - return ((BigIntegerWithRadix)val).toCString() - else - return val.toString() + return val.toString() } %> #ifndef _${coreDef.name.toUpperCase()}_H_ diff --git a/gen_input/templates/interp/CORENAME.cpp.gtl b/gen_input/templates/interp/CORENAME.cpp.gtl index ef645bf..acf7afd 100644 --- a/gen_input/templates/interp/CORENAME.cpp.gtl +++ b/gen_input/templates/interp/CORENAME.cpp.gtl @@ -30,8 +30,6 @@ * *******************************************************************************/ <% -import com.minres.coredsl.util.BigIntegerWithRadix - def nativeTypeSize(int size){ if(size<=8) return 8; else if(size<=16) return 16; else if(size<=32) return 32; else return 64; }