@@ -272,36 +272,36 @@ typedef struct yaml_token_s {
272272 yaml_token_type_t type ;
273273
274274 /** The token data. */
275- union {
275+ union yaml_data_u {
276276
277277 /** The stream start (for @c YAML_STREAM_START_TOKEN). */
278- struct {
278+ struct yaml_stream_start_s {
279279 /** The stream encoding. */
280280 yaml_encoding_t encoding ;
281281 } stream_start ;
282282
283283 /** The alias (for @c YAML_ALIAS_TOKEN). */
284- struct {
284+ struct yaml_alias_s {
285285 /** The alias value. */
286286 yaml_char_t * value ;
287287 } alias ;
288288
289289 /** The anchor (for @c YAML_ANCHOR_TOKEN). */
290- struct {
290+ struct yaml_anchor_s {
291291 /** The anchor value. */
292292 yaml_char_t * value ;
293293 } anchor ;
294294
295295 /** The tag (for @c YAML_TAG_TOKEN). */
296- struct {
296+ struct yaml_tag_s {
297297 /** The tag handle. */
298298 yaml_char_t * handle ;
299299 /** The tag suffix. */
300300 yaml_char_t * suffix ;
301301 } tag ;
302302
303303 /** The scalar value (for @c YAML_SCALAR_TOKEN). */
304- struct {
304+ struct yaml_scalar_s {
305305 /** The scalar value. */
306306 yaml_char_t * value ;
307307 /** The length of the scalar value. */
@@ -311,7 +311,7 @@ typedef struct yaml_token_s {
311311 } scalar ;
312312
313313 /** The version directive (for @c YAML_VERSION_DIRECTIVE_TOKEN). */
314- struct {
314+ struct yaml_version_directive_s {
315315 /** The major version number. */
316316 int major ;
317317 /** The minor version number. */
@@ -389,21 +389,21 @@ typedef struct yaml_event_s {
389389 yaml_event_type_t type ;
390390
391391 /** The event data. */
392- union {
392+ union yaml_event_data_u {
393393
394394 /** The stream parameters (for @c YAML_STREAM_START_EVENT). */
395- struct {
395+ struct yaml_event_stream_start_s {
396396 /** The document encoding. */
397397 yaml_encoding_t encoding ;
398398 } stream_start ;
399399
400400 /** The document parameters (for @c YAML_DOCUMENT_START_EVENT). */
401- struct {
401+ struct yaml_event_document_start_s {
402402 /** The version directive. */
403403 yaml_version_directive_t * version_directive ;
404404
405405 /** The list of tag directives. */
406- struct {
406+ struct yaml_event_tag_directives_s {
407407 /** The beginning of the tag directives list. */
408408 yaml_tag_directive_t * start ;
409409 /** The end of the tag directives list. */
@@ -415,19 +415,19 @@ typedef struct yaml_event_s {
415415 } document_start ;
416416
417417 /** The document end parameters (for @c YAML_DOCUMENT_END_EVENT). */
418- struct {
418+ struct yaml_event_document_end_s {
419419 /** Is the document end indicator implicit? */
420420 int implicit ;
421421 } document_end ;
422422
423423 /** The alias parameters (for @c YAML_ALIAS_EVENT). */
424- struct {
424+ struct yaml_event_alias_s {
425425 /** The anchor. */
426426 yaml_char_t * anchor ;
427427 } alias ;
428428
429429 /** The scalar parameters (for @c YAML_SCALAR_EVENT). */
430- struct {
430+ struct yaml_event_scalar_s {
431431 /** The anchor. */
432432 yaml_char_t * anchor ;
433433 /** The tag. */
@@ -445,7 +445,7 @@ typedef struct yaml_event_s {
445445 } scalar ;
446446
447447 /** The sequence parameters (for @c YAML_SEQUENCE_START_EVENT). */
448- struct {
448+ struct yaml_event_sequence_start_s {
449449 /** The anchor. */
450450 yaml_char_t * anchor ;
451451 /** The tag. */
@@ -457,7 +457,7 @@ typedef struct yaml_event_s {
457457 } sequence_start ;
458458
459459 /** The mapping parameters (for @c YAML_MAPPING_START_EVENT). */
460- struct {
460+ struct yaml_event_mapping_start_s {
461461 /** The anchor. */
462462 yaml_char_t * anchor ;
463463 /** The tag. */
0 commit comments