devel/py-ruamel.yaml.clib: fix build with clang 16
Clang 16 has a new error about incompatible function types, which shows
up when building devel/py-ruamel.yaml.clib:
_ruamel_yaml.c:3590:52: error: incompatible function pointer types passing 'int (void *, char *, int, int *)' to parameter of type 'yaml_read_handler_t *' (aka 'int (*)(void *, unsigned char *, unsigned long, unsigned long *)') [-Wincompatible-function-pointer-types]
yaml_parser_set_input((&__pyx_v_self->parser), __pyx_f_12_ruamel_yaml_input_handler, ((void *)__pyx_v_self));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
_ruamel_yaml.c:15301:53: error: incompatible function pointer types passing 'int (void *, char *, int)' to parameter of type 'yaml_write_handler_t *' (aka 'int (*)(void *, unsigned char *, unsigned long)') [-Wincompatible-function-pointer-types]
yaml_emitter_set_output((&__pyx_v_self->emitter), __pyx_f_12_ruamel_yaml_output_handler, ((void *)__pyx_v_self));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~It seems that _ruamel_yaml.c was originally generated from a rather old
yaml.h interface header. I have looked upstream but it has not been
updated there either, so for now patch the function signatures to match
what is in our textproc/libyaml port.
PR: 271531
Approved by: sunpoet (maintainer)
MFH: 2023Q2