@@ -1005,7 +1005,7 @@ cbor_item_t * cbor_new_definite_string()
1005
1005
* item = (cbor_item_t ){
1006
1006
.refcount = 1 ,
1007
1007
.type = CBOR_TYPE_STRING ,
1008
- .metadata = { .string_metadata = { _CBOR_STRING_METADATA_DEFINITE , 0 } }
1008
+ .metadata = { .string_metadata = { _CBOR_METADATA_DEFINITE , 0 } }
1009
1009
};
1010
1010
return item ;
1011
1011
}
@@ -1016,7 +1016,7 @@ cbor_item_t * cbor_new_indefinite_string()
1016
1016
* item = (cbor_item_t ){
1017
1017
.refcount = 1 ,
1018
1018
.type = CBOR_TYPE_STRING ,
1019
- .metadata = { .string_metadata = { .type = _CBOR_STRING_METADATA_INDEFINITE , .length = 0 } },
1019
+ .metadata = { .string_metadata = { .type = _CBOR_METADATA_INDEFINITE , .length = 0 } },
1020
1020
.data = malloc (sizeof (struct cbor_indefinite_string_data ))
1021
1021
};
1022
1022
* ((struct cbor_indefinite_string_data * )item -> data ) = (struct cbor_indefinite_string_data ){
@@ -1088,7 +1088,7 @@ size_t cbor_string_codepoint_count(const cbor_item_t * item)
1088
1088
bool cbor_string_is_definite (const cbor_item_t * item )
1089
1089
{
1090
1090
assert (cbor_isa_string (item ));
1091
- return item -> metadata .string_metadata .type == _CBOR_STRING_METADATA_DEFINITE ;
1091
+ return item -> metadata .string_metadata .type == _CBOR_METADATA_DEFINITE ;
1092
1092
}
1093
1093
1094
1094
bool cbor_string_is_indefinite (const cbor_item_t * item )
@@ -1103,7 +1103,7 @@ cbor_item_t * cbor_new_definite_bytestring()
1103
1103
* item = (cbor_item_t ){
1104
1104
.refcount = 1 ,
1105
1105
.type = CBOR_TYPE_BYTESTRING ,
1106
- .metadata = { .bytestring_metadata = { _CBOR_STRING_METADATA_DEFINITE , 0 } }
1106
+ .metadata = { .bytestring_metadata = { _CBOR_METADATA_DEFINITE , 0 } }
1107
1107
};
1108
1108
return item ;
1109
1109
}
@@ -1114,7 +1114,7 @@ cbor_item_t * cbor_new_indefinite_bytestring()
1114
1114
* item = (cbor_item_t ){
1115
1115
.refcount = 1 ,
1116
1116
.type = CBOR_TYPE_BYTESTRING ,
1117
- .metadata = { .bytestring_metadata = { .type = _CBOR_STRING_METADATA_INDEFINITE , .length = 0 } },
1117
+ .metadata = { .bytestring_metadata = { .type = _CBOR_METADATA_INDEFINITE , .length = 0 } },
1118
1118
.data = malloc (sizeof (struct cbor_indefinite_string_data ))
1119
1119
};
1120
1120
* ((struct cbor_indefinite_string_data * )item -> data ) = (struct cbor_indefinite_string_data ){
@@ -1356,7 +1356,7 @@ unsigned char * cbor_bytestring_handle(const cbor_item_t * item) {
1356
1356
bool cbor_bytestring_is_definite (const cbor_item_t * item )
1357
1357
{
1358
1358
assert (cbor_isa_bytestring (item ));
1359
- return item -> metadata .bytestring_metadata .type == _CBOR_STRING_METADATA_DEFINITE ;
1359
+ return item -> metadata .bytestring_metadata .type == _CBOR_METADATA_DEFINITE ;
1360
1360
}
1361
1361
1362
1362
bool cbor_bytestring_is_indefinite (const cbor_item_t * item )
0 commit comments