Skip to content

Commit

Permalink
Drop support for long double/float128. (#12)
Browse files Browse the repository at this point in the history
Signed-off-by: Chris Lalancette <[email protected]>
  • Loading branch information
clalancette authored Nov 19, 2024
1 parent 96d1cb6 commit d971a88
Show file tree
Hide file tree
Showing 6 changed files with 0 additions and 122 deletions.
18 changes: 0 additions & 18 deletions include/rosidl_dynamic_typesupport/api/dynamic_data.h
Original file line number Diff line number Diff line change
Expand Up @@ -224,12 +224,6 @@ rosidl_dynamic_typesupport_dynamic_data_get_float64_value(
const rosidl_dynamic_typesupport_dynamic_data_t * dynamic_data,
rosidl_dynamic_typesupport_member_id_t id, double * value);

ROSIDL_DYNAMIC_TYPESUPPORT_PUBLIC
rcutils_ret_t
rosidl_dynamic_typesupport_dynamic_data_get_float128_value(
const rosidl_dynamic_typesupport_dynamic_data_t * dynamic_data,
rosidl_dynamic_typesupport_member_id_t id, long double * value);

ROSIDL_DYNAMIC_TYPESUPPORT_PUBLIC
rcutils_ret_t
rosidl_dynamic_typesupport_dynamic_data_get_int8_value(
Expand Down Expand Up @@ -356,12 +350,6 @@ rosidl_dynamic_typesupport_dynamic_data_set_float64_value(
rosidl_dynamic_typesupport_dynamic_data_t * dynamic_data,
rosidl_dynamic_typesupport_member_id_t id, double value);

ROSIDL_DYNAMIC_TYPESUPPORT_PUBLIC
rcutils_ret_t
rosidl_dynamic_typesupport_dynamic_data_set_float128_value(
rosidl_dynamic_typesupport_dynamic_data_t * dynamic_data,
rosidl_dynamic_typesupport_member_id_t id, long double value);

ROSIDL_DYNAMIC_TYPESUPPORT_PUBLIC
rcutils_ret_t
rosidl_dynamic_typesupport_dynamic_data_set_int8_value(
Expand Down Expand Up @@ -505,12 +493,6 @@ rosidl_dynamic_typesupport_dynamic_data_insert_float64_value(
rosidl_dynamic_typesupport_dynamic_data_t * dynamic_data, double value,
rosidl_dynamic_typesupport_member_id_t * out_id);

ROSIDL_DYNAMIC_TYPESUPPORT_PUBLIC
rcutils_ret_t
rosidl_dynamic_typesupport_dynamic_data_insert_float128_value(
rosidl_dynamic_typesupport_dynamic_data_t * dynamic_data, long double value,
rosidl_dynamic_typesupport_member_id_t * out_id);

ROSIDL_DYNAMIC_TYPESUPPORT_PUBLIC
rcutils_ret_t
rosidl_dynamic_typesupport_dynamic_data_insert_int8_value(
Expand Down
34 changes: 0 additions & 34 deletions include/rosidl_dynamic_typesupport/api/dynamic_type.h
Original file line number Diff line number Diff line change
Expand Up @@ -233,14 +233,6 @@ rosidl_dynamic_typesupport_dynamic_type_builder_add_float64_member(
const char * name, size_t name_length,
const char * default_value, size_t default_value_length);

ROSIDL_DYNAMIC_TYPESUPPORT_PUBLIC
rcutils_ret_t
rosidl_dynamic_typesupport_dynamic_type_builder_add_float128_member(
rosidl_dynamic_typesupport_dynamic_type_builder_t * dynamic_type_builder,
rosidl_dynamic_typesupport_member_id_t id,
const char * name, size_t name_length,
const char * default_value, size_t default_value_length);

ROSIDL_DYNAMIC_TYPESUPPORT_PUBLIC
rcutils_ret_t
rosidl_dynamic_typesupport_dynamic_type_builder_add_int8_member(
Expand Down Expand Up @@ -413,15 +405,6 @@ rosidl_dynamic_typesupport_dynamic_type_builder_add_float64_array_member(
const char * default_value, size_t default_value_length,
size_t array_length);

ROSIDL_DYNAMIC_TYPESUPPORT_PUBLIC
rcutils_ret_t
rosidl_dynamic_typesupport_dynamic_type_builder_add_float128_array_member(
rosidl_dynamic_typesupport_dynamic_type_builder_t * dynamic_type_builder,
rosidl_dynamic_typesupport_member_id_t id,
const char * name, size_t name_length,
const char * default_value, size_t default_value_length,
size_t array_length);

ROSIDL_DYNAMIC_TYPESUPPORT_PUBLIC
rcutils_ret_t
rosidl_dynamic_typesupport_dynamic_type_builder_add_int8_array_member(
Expand Down Expand Up @@ -598,14 +581,6 @@ rosidl_dynamic_typesupport_dynamic_type_builder_add_float64_unbounded_sequence_m
const char * name, size_t name_length,
const char * default_value, size_t default_value_length);

ROSIDL_DYNAMIC_TYPESUPPORT_PUBLIC
rcutils_ret_t
rosidl_dynamic_typesupport_dynamic_type_builder_add_float128_unbounded_sequence_member(
rosidl_dynamic_typesupport_dynamic_type_builder_t * dynamic_type_builder,
rosidl_dynamic_typesupport_member_id_t id,
const char * name, size_t name_length,
const char * default_value, size_t default_value_length);

ROSIDL_DYNAMIC_TYPESUPPORT_PUBLIC
rcutils_ret_t
rosidl_dynamic_typesupport_dynamic_type_builder_add_int8_unbounded_sequence_member(
Expand Down Expand Up @@ -778,15 +753,6 @@ rosidl_dynamic_typesupport_dynamic_type_builder_add_float64_bounded_sequence_mem
const char * default_value, size_t default_value_length,
size_t sequence_bound);

ROSIDL_DYNAMIC_TYPESUPPORT_PUBLIC
rcutils_ret_t
rosidl_dynamic_typesupport_dynamic_type_builder_add_float128_bounded_sequence_member(
rosidl_dynamic_typesupport_dynamic_type_builder_t * dynamic_type_builder,
rosidl_dynamic_typesupport_member_id_t id,
const char * name, size_t name_length,
const char * default_value, size_t default_value_length,
size_t sequence_bound);

ROSIDL_DYNAMIC_TYPESUPPORT_PUBLIC
rcutils_ret_t
rosidl_dynamic_typesupport_dynamic_type_builder_add_int8_bounded_sequence_member(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -178,13 +178,6 @@ struct rosidl_dynamic_typesupport_serialization_support_interface_s
const char * name, size_t name_length,
const char * default_value, size_t default_value_length);

rcutils_ret_t (* dynamic_type_builder_add_float128_member)(
rosidl_dynamic_typesupport_serialization_support_impl_t * serialization_support,
rosidl_dynamic_typesupport_dynamic_type_builder_impl_t * dynamic_type_builder,
rosidl_dynamic_typesupport_member_id_t id,
const char * name, size_t name_length,
const char * default_value, size_t default_value_length);

rcutils_ret_t (* dynamic_type_builder_add_int8_member)(
rosidl_dynamic_typesupport_serialization_support_impl_t * serialization_support,
rosidl_dynamic_typesupport_dynamic_type_builder_impl_t * dynamic_type_builder,
Expand Down Expand Up @@ -337,14 +330,6 @@ struct rosidl_dynamic_typesupport_serialization_support_interface_s
const char * default_value, size_t default_value_length,
size_t array_length);

rcutils_ret_t (* dynamic_type_builder_add_float128_array_member)(
rosidl_dynamic_typesupport_serialization_support_impl_t * serialization_support,
rosidl_dynamic_typesupport_dynamic_type_builder_impl_t * dynamic_type_builder,
rosidl_dynamic_typesupport_member_id_t id,
const char * name, size_t name_length,
const char * default_value, size_t default_value_length,
size_t array_length);

rcutils_ret_t (* dynamic_type_builder_add_int8_array_member)(
rosidl_dynamic_typesupport_serialization_support_impl_t * serialization_support,
rosidl_dynamic_typesupport_dynamic_type_builder_impl_t * dynamic_type_builder,
Expand Down Expand Up @@ -501,13 +486,6 @@ struct rosidl_dynamic_typesupport_serialization_support_interface_s
const char * name, size_t name_length,
const char * default_value, size_t default_value_length);

rcutils_ret_t (* dynamic_type_builder_add_float128_unbounded_sequence_member)(
rosidl_dynamic_typesupport_serialization_support_impl_t * serialization_support,
rosidl_dynamic_typesupport_dynamic_type_builder_impl_t * dynamic_type_builder,
rosidl_dynamic_typesupport_member_id_t id,
const char * name, size_t name_length,
const char * default_value, size_t default_value_length);

rcutils_ret_t (* dynamic_type_builder_add_int8_unbounded_sequence_member)(
rosidl_dynamic_typesupport_serialization_support_impl_t * serialization_support,
rosidl_dynamic_typesupport_dynamic_type_builder_impl_t * dynamic_type_builder,
Expand Down Expand Up @@ -660,14 +638,6 @@ struct rosidl_dynamic_typesupport_serialization_support_interface_s
const char * default_value, size_t default_value_length,
size_t sequence_bound);

rcutils_ret_t (* dynamic_type_builder_add_float128_bounded_sequence_member)(
rosidl_dynamic_typesupport_serialization_support_impl_t * serialization_support,
rosidl_dynamic_typesupport_dynamic_type_builder_impl_t * dynamic_type_builder,
rosidl_dynamic_typesupport_member_id_t id,
const char * name, size_t name_length,
const char * default_value, size_t default_value_length,
size_t sequence_bound);

rcutils_ret_t (* dynamic_type_builder_add_int8_bounded_sequence_member)(
rosidl_dynamic_typesupport_serialization_support_impl_t * serialization_support,
rosidl_dynamic_typesupport_dynamic_type_builder_impl_t * dynamic_type_builder,
Expand Down Expand Up @@ -1003,12 +973,6 @@ struct rosidl_dynamic_typesupport_serialization_support_interface_s
rosidl_dynamic_typesupport_member_id_t id,
double * value); // OUT

rcutils_ret_t (* dynamic_data_get_float128_value)(
rosidl_dynamic_typesupport_serialization_support_impl_t * serialization_support,
const rosidl_dynamic_typesupport_dynamic_data_impl_t * dynamic_data,
rosidl_dynamic_typesupport_member_id_t id,
long double * value); // OUT

rcutils_ret_t (* dynamic_data_get_int8_value)(
rosidl_dynamic_typesupport_serialization_support_impl_t * serialization_support,
const rosidl_dynamic_typesupport_dynamic_data_impl_t * dynamic_data,
Expand Down Expand Up @@ -1135,11 +1099,6 @@ struct rosidl_dynamic_typesupport_serialization_support_interface_s
rosidl_dynamic_typesupport_dynamic_data_impl_t * dynamic_data,
rosidl_dynamic_typesupport_member_id_t id, double value);

rcutils_ret_t (* dynamic_data_set_float128_value)(
rosidl_dynamic_typesupport_serialization_support_impl_t * serialization_support,
rosidl_dynamic_typesupport_dynamic_data_impl_t * dynamic_data,
rosidl_dynamic_typesupport_member_id_t id, long double value);

rcutils_ret_t (* dynamic_data_set_int8_value)(
rosidl_dynamic_typesupport_serialization_support_impl_t * serialization_support,
rosidl_dynamic_typesupport_dynamic_data_impl_t * dynamic_data,
Expand Down Expand Up @@ -1273,12 +1232,6 @@ struct rosidl_dynamic_typesupport_serialization_support_interface_s
double value,
rosidl_dynamic_typesupport_member_id_t * out_id); // OUT

rcutils_ret_t (* dynamic_data_insert_float128_value)(
rosidl_dynamic_typesupport_serialization_support_impl_t * serialization_support,
rosidl_dynamic_typesupport_dynamic_data_impl_t * dynamic_data,
long double value,
rosidl_dynamic_typesupport_member_id_t * out_id); // OUT

rcutils_ret_t (* dynamic_data_insert_int8_value)(
rosidl_dynamic_typesupport_serialization_support_impl_t * serialization_support,
rosidl_dynamic_typesupport_dynamic_data_impl_t * dynamic_data,
Expand Down
16 changes: 0 additions & 16 deletions include/rosidl_dynamic_typesupport/types.h
Original file line number Diff line number Diff line change
Expand Up @@ -121,10 +121,6 @@ typedef struct \
rosidl_runtime_c__type_description__FieldType__FIELD_TYPE_DOUBLE // 11
#define ROSIDL_DYNAMIC_TYPESUPPORT_FIELD_TYPE_FLOAT64 \
rosidl_runtime_c__type_description__FieldType__FIELD_TYPE_DOUBLE // 11
#define ROSIDL_DYNAMIC_TYPESUPPORT_FIELD_TYPE_LONG_DOUBLE \
rosidl_runtime_c__type_description__FieldType__FIELD_TYPE_LONG_DOUBLE // 12
#define ROSIDL_DYNAMIC_TYPESUPPORT_FIELD_TYPE_FLOAT128 \
rosidl_runtime_c__type_description__FieldType__FIELD_TYPE_LONG_DOUBLE // 12

#define ROSIDL_DYNAMIC_TYPESUPPORT_FIELD_TYPE_CHAR \
rosidl_runtime_c__type_description__FieldType__FIELD_TYPE_CHAR // 13
Expand Down Expand Up @@ -180,10 +176,6 @@ typedef struct \
rosidl_runtime_c__type_description__FieldType__FIELD_TYPE_DOUBLE_ARRAY // 59
#define ROSIDL_DYNAMIC_TYPESUPPORT_FIELD_TYPE_FLOAT64_ARRAY \
rosidl_runtime_c__type_description__FieldType__FIELD_TYPE_DOUBLE_ARRAY // 59
#define ROSIDL_DYNAMIC_TYPESUPPORT_FIELD_TYPE_LONG_DOUBLE_ARRAY \
rosidl_runtime_c__type_description__FieldType__FIELD_TYPE_LONG_DOUBLE_ARRAY // 60
#define ROSIDL_DYNAMIC_TYPESUPPORT_FIELD_TYPE_FLOAT128_ARRAY \
rosidl_runtime_c__type_description__FieldType__FIELD_TYPE_LONG_DOUBLE_ARRAY // 60
#define ROSIDL_DYNAMIC_TYPESUPPORT_FIELD_TYPE_CHAR_ARRAY \
rosidl_runtime_c__type_description__FieldType__FIELD_TYPE_CHAR_ARRAY // 61
#define ROSIDL_DYNAMIC_TYPESUPPORT_FIELD_TYPE_WCHAR_ARRAY \
Expand Down Expand Up @@ -231,10 +223,6 @@ typedef struct \
rosidl_runtime_c__type_description__FieldType__FIELD_TYPE_DOUBLE_BOUNDED_SEQUENCE // 107
#define ROSIDL_DYNAMIC_TYPESUPPORT_FIELD_TYPE_FLOAT64_BOUNDED_SEQUENCE \
rosidl_runtime_c__type_description__FieldType__FIELD_TYPE_DOUBLE_BOUNDED_SEQUENCE // 107
#define ROSIDL_DYNAMIC_TYPESUPPORT_FIELD_TYPE_LONG_DOUBLE_BOUNDED_SEQUENCE \
rosidl_runtime_c__type_description__FieldType__FIELD_TYPE_LONG_DOUBLE_BOUNDED_SEQUENCE // 108
#define ROSIDL_DYNAMIC_TYPESUPPORT_FIELD_TYPE_FLOAT128_BOUNDED_SEQUENCE \
rosidl_runtime_c__type_description__FieldType__FIELD_TYPE_LONG_DOUBLE_BOUNDED_SEQUENCE // 108
#define ROSIDL_DYNAMIC_TYPESUPPORT_FIELD_TYPE_CHAR_BOUNDED_SEQUENCE \
rosidl_runtime_c__type_description__FieldType__FIELD_TYPE_CHAR_BOUNDED_SEQUENCE // 109
#define ROSIDL_DYNAMIC_TYPESUPPORT_FIELD_TYPE_WCHAR_BOUNDED_SEQUENCE \
Expand Down Expand Up @@ -282,10 +270,6 @@ typedef struct \
rosidl_runtime_c__type_description__FieldType__FIELD_TYPE_DOUBLE_UNBOUNDED_SEQUENCE // 155
#define ROSIDL_DYNAMIC_TYPESUPPORT_FIELD_TYPE_FLOAT64_UNBOUNDED_SEQUENCE \
rosidl_runtime_c__type_description__FieldType__FIELD_TYPE_DOUBLE_UNBOUNDED_SEQUENCE // 155
#define ROSIDL_DYNAMIC_TYPESUPPORT_FIELD_TYPE_LONG_DOUBLE_UNBOUNDED_SEQUENCE \
rosidl_runtime_c__type_description__FieldType__FIELD_TYPE_LONG_DOUBLE_UNBOUNDED_SEQUENCE // 156
#define ROSIDL_DYNAMIC_TYPESUPPORT_FIELD_TYPE_FLOAT128_UNBOUNDED_SEQUENCE \
rosidl_runtime_c__type_description__FieldType__FIELD_TYPE_LONG_DOUBLE_UNBOUNDED_SEQUENCE // 156
#define ROSIDL_DYNAMIC_TYPESUPPORT_FIELD_TYPE_CHAR_UNBOUNDED_SEQUENCE \
rosidl_runtime_c__type_description__FieldType__FIELD_TYPE_CHAR_UNBOUNDED_SEQUENCE // 157
#define ROSIDL_DYNAMIC_TYPESUPPORT_FIELD_TYPE_WCHAR_UNBOUNDED_SEQUENCE \
Expand Down
3 changes: 0 additions & 3 deletions src/api/dynamic_data.c
Original file line number Diff line number Diff line change
Expand Up @@ -429,7 +429,6 @@ ROSIDL_DYNAMIC_DATA_GET_VALUE_FN(char, char)
ROSIDL_DYNAMIC_DATA_GET_VALUE_FN(wchar, char16_t)
ROSIDL_DYNAMIC_DATA_GET_VALUE_FN(float32, float)
ROSIDL_DYNAMIC_DATA_GET_VALUE_FN(float64, double)
ROSIDL_DYNAMIC_DATA_GET_VALUE_FN(float128, long double)
ROSIDL_DYNAMIC_DATA_GET_VALUE_FN(int8, int8_t)
ROSIDL_DYNAMIC_DATA_GET_VALUE_FN(uint8, uint8_t)
ROSIDL_DYNAMIC_DATA_GET_VALUE_FN(int16, int16_t)
Expand Down Expand Up @@ -560,7 +559,6 @@ ROSIDL_DYNAMIC_DATA_SET_VALUE_FN(char, char)
ROSIDL_DYNAMIC_DATA_SET_VALUE_FN(wchar, char16_t)
ROSIDL_DYNAMIC_DATA_SET_VALUE_FN(float32, float)
ROSIDL_DYNAMIC_DATA_SET_VALUE_FN(float64, double)
ROSIDL_DYNAMIC_DATA_SET_VALUE_FN(float128, long double)
ROSIDL_DYNAMIC_DATA_SET_VALUE_FN(int8, int8_t)
ROSIDL_DYNAMIC_DATA_SET_VALUE_FN(uint8, uint8_t)
ROSIDL_DYNAMIC_DATA_SET_VALUE_FN(int16, int16_t)
Expand Down Expand Up @@ -718,7 +716,6 @@ ROSIDL_DYNAMIC_DATA_INSERT_VALUE_FN(char, char)
ROSIDL_DYNAMIC_DATA_INSERT_VALUE_FN(wchar, char16_t)
ROSIDL_DYNAMIC_DATA_INSERT_VALUE_FN(float32, float)
ROSIDL_DYNAMIC_DATA_INSERT_VALUE_FN(float64, double)
ROSIDL_DYNAMIC_DATA_INSERT_VALUE_FN(float128, long double)
ROSIDL_DYNAMIC_DATA_INSERT_VALUE_FN(int8, int8_t)
ROSIDL_DYNAMIC_DATA_INSERT_VALUE_FN(uint8, uint8_t)
ROSIDL_DYNAMIC_DATA_INSERT_VALUE_FN(int16, int16_t)
Expand Down
4 changes: 0 additions & 4 deletions src/api/dynamic_type.c
Original file line number Diff line number Diff line change
Expand Up @@ -1105,7 +1105,6 @@ ROSIDL_DYNAMIC_TYPE_BUILDER_ADD_MEMBER_FN(char)
ROSIDL_DYNAMIC_TYPE_BUILDER_ADD_MEMBER_FN(wchar)
ROSIDL_DYNAMIC_TYPE_BUILDER_ADD_MEMBER_FN(float32)
ROSIDL_DYNAMIC_TYPE_BUILDER_ADD_MEMBER_FN(float64)
ROSIDL_DYNAMIC_TYPE_BUILDER_ADD_MEMBER_FN(float128)
ROSIDL_DYNAMIC_TYPE_BUILDER_ADD_MEMBER_FN(int8)
ROSIDL_DYNAMIC_TYPE_BUILDER_ADD_MEMBER_FN(uint8)
ROSIDL_DYNAMIC_TYPE_BUILDER_ADD_MEMBER_FN(int16)
Expand Down Expand Up @@ -1236,7 +1235,6 @@ ROSIDL_DYNAMIC_TYPE_BUILDER_ADD_ARRAY_MEMBER_FN(char)
ROSIDL_DYNAMIC_TYPE_BUILDER_ADD_ARRAY_MEMBER_FN(wchar)
ROSIDL_DYNAMIC_TYPE_BUILDER_ADD_ARRAY_MEMBER_FN(float32)
ROSIDL_DYNAMIC_TYPE_BUILDER_ADD_ARRAY_MEMBER_FN(float64)
ROSIDL_DYNAMIC_TYPE_BUILDER_ADD_ARRAY_MEMBER_FN(float128)
ROSIDL_DYNAMIC_TYPE_BUILDER_ADD_ARRAY_MEMBER_FN(int8)
ROSIDL_DYNAMIC_TYPE_BUILDER_ADD_ARRAY_MEMBER_FN(uint8)
ROSIDL_DYNAMIC_TYPE_BUILDER_ADD_ARRAY_MEMBER_FN(int16)
Expand Down Expand Up @@ -1361,7 +1359,6 @@ ROSIDL_DYNAMIC_TYPE_BUILDER_ADD_UNBOUNDED_SEQUENCE_MEMBER_FN(char)
ROSIDL_DYNAMIC_TYPE_BUILDER_ADD_UNBOUNDED_SEQUENCE_MEMBER_FN(wchar)
ROSIDL_DYNAMIC_TYPE_BUILDER_ADD_UNBOUNDED_SEQUENCE_MEMBER_FN(float32)
ROSIDL_DYNAMIC_TYPE_BUILDER_ADD_UNBOUNDED_SEQUENCE_MEMBER_FN(float64)
ROSIDL_DYNAMIC_TYPE_BUILDER_ADD_UNBOUNDED_SEQUENCE_MEMBER_FN(float128)
ROSIDL_DYNAMIC_TYPE_BUILDER_ADD_UNBOUNDED_SEQUENCE_MEMBER_FN(int8)
ROSIDL_DYNAMIC_TYPE_BUILDER_ADD_UNBOUNDED_SEQUENCE_MEMBER_FN(uint8)
ROSIDL_DYNAMIC_TYPE_BUILDER_ADD_UNBOUNDED_SEQUENCE_MEMBER_FN(int16)
Expand Down Expand Up @@ -1488,7 +1485,6 @@ ROSIDL_DYNAMIC_TYPE_BUILDER_ADD_BOUNDED_SEQUENCE_MEMBER_FN(char)
ROSIDL_DYNAMIC_TYPE_BUILDER_ADD_BOUNDED_SEQUENCE_MEMBER_FN(wchar)
ROSIDL_DYNAMIC_TYPE_BUILDER_ADD_BOUNDED_SEQUENCE_MEMBER_FN(float32)
ROSIDL_DYNAMIC_TYPE_BUILDER_ADD_BOUNDED_SEQUENCE_MEMBER_FN(float64)
ROSIDL_DYNAMIC_TYPE_BUILDER_ADD_BOUNDED_SEQUENCE_MEMBER_FN(float128)
ROSIDL_DYNAMIC_TYPE_BUILDER_ADD_BOUNDED_SEQUENCE_MEMBER_FN(int8)
ROSIDL_DYNAMIC_TYPE_BUILDER_ADD_BOUNDED_SEQUENCE_MEMBER_FN(uint8)
ROSIDL_DYNAMIC_TYPE_BUILDER_ADD_BOUNDED_SEQUENCE_MEMBER_FN(int16)
Expand Down

0 comments on commit d971a88

Please sign in to comment.