@@ -80,7 +80,7 @@ inline bool is_c_enum_type(const typet &type)
80
80
// / \param c_enum the enum type \p member_name is supposed to be part of.
81
81
// / \return constant, that could be assigned as the value of an expression with
82
82
// / type c_enum.
83
- constant_exprt convert_member_name_to_enum_value (
83
+ inline constant_exprt convert_member_name_to_enum_value (
84
84
const irep_idt &member_name,
85
85
const c_enum_typet &c_enum)
86
86
{
@@ -100,7 +100,7 @@ constant_exprt convert_member_name_to_enum_value(
100
100
// / Convert id to a Boolean value
101
101
// / \param bool_value: A string that is compared to "true" ignoring case.
102
102
// / \return a constant of type Boolean
103
- bool id2boolean (const std::string &bool_value)
103
+ inline bool id2boolean (const std::string &bool_value)
104
104
{
105
105
std::string string_value = bool_value;
106
106
std::transform (
@@ -117,7 +117,7 @@ bool id2boolean(const std::string &bool_value)
117
117
// / \param bool_value: A Boolean value.
118
118
// / \param type: The type, the resulting constant is supposed to have.
119
119
// / \return a constant of type \param type with either 0 or 1 as value.
120
- constant_exprt from_c_boolean_value (bool bool_value, const typet &type)
120
+ inline constant_exprt from_c_boolean_value (bool bool_value, const typet &type)
121
121
{
122
122
return bool_value ? from_integer (mp_integer (1 ), type)
123
123
: from_integer (mp_integer (0 ), type);
0 commit comments