From b81d04e636abc0217c86cff2589eb078001ba6da Mon Sep 17 00:00:00 2001 From: Pablo Garrido Date: Thu, 5 Oct 2023 10:20:24 +0200 Subject: [PATCH 1/2] Force 4 Bytes to enum types (#69) --- .../resources/com/eprosima/uxr/idl/templates/TypesHeader.stg | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main/resources/com/eprosima/uxr/idl/templates/TypesHeader.stg b/src/main/resources/com/eprosima/uxr/idl/templates/TypesHeader.stg index 7e667b0..30c3e7c 100644 --- a/src/main/resources/com/eprosima/uxr/idl/templates/TypesHeader.stg +++ b/src/main/resources/com/eprosima/uxr/idl/templates/TypesHeader.stg @@ -96,6 +96,8 @@ typedef enum $enum.name$ { $enum.members:{$it.name$}; separator=",\n"$ } $enum.name$; + +typedef uint32_t $enum.name$_cdr; >> /***** Utils *****/ @@ -119,6 +121,8 @@ $member.typecode.contentTypeCode.cTypename$ $member.name$; $endif$ $elseif(member.typecode.isType_f)$ $member.typecode.cTypename$ $member.name$$member.typecode.cTypeDimensions$; +$elseif(member.typecode.isType_c)$ +$member.typecode.cTypename$_cdr $member.name$; $else$ $member.typecode.cTypename$ $member.name$; $endif$ From 4d5ef5565dd9b973adcadeccb6066f1f299e891a Mon Sep 17 00:00:00 2001 From: Pablo Garrido Date: Wed, 22 Nov 2023 08:21:54 +0100 Subject: [PATCH 2/2] Bump version --- build.gradle | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.gradle b/build.gradle index 0a821fd..df1c60a 100644 --- a/build.gradle +++ b/build.gradle @@ -15,7 +15,7 @@ apply plugin: 'java-library' apply plugin: 'eclipse' // Eclipse integration -version = '2.0.1' +version = '2.0.2' description = 'Build script with all necessary tasks to compile and test MicroXRCEDDSGen' repositories {