-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
py312-ruamel-yaml-clib: fix incompatible function pointer types
*fixes package build on macOS Sequoia with clang16 Closes: https://trac.macports.org/ticket/70796
- Loading branch information
1 parent
2dbe05b
commit fc45ac0
Showing
2 changed files
with
36 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
Fix build with clang16 | ||
https://cgit.freebsd.org/ports/plain/devel/py-ruamel.yaml.clib/files/patch-clang16 | ||
--- _ruamel_yaml.c.orig 2023-10-03 06:54:38 UTC | ||
+++ _ruamel_yaml.c | ||
@@ -2272,8 +2272,8 @@ static int __pyx_f_6ruamel_4yaml_4clib_12_ruamel_yaml_ | ||
static int __pyx_f_6ruamel_4yaml_4clib_12_ruamel_yaml_8CEmitter__serialize_node(struct __pyx_obj_6ruamel_4yaml_4clib_12_ruamel_yaml_CEmitter *__pyx_v_self, PyObject *__pyx_v_node, PyObject *__pyx_v_parent, PyObject *__pyx_v_index); /* proto*/ | ||
|
||
/* Module declarations from "ruamel.yaml.clib._ruamel_yaml" */ | ||
-static int __pyx_f_6ruamel_4yaml_4clib_12_ruamel_yaml_input_handler(void *, char *, int, int *); /*proto*/ | ||
-static int __pyx_f_6ruamel_4yaml_4clib_12_ruamel_yaml_output_handler(void *, char *, int); /*proto*/ | ||
+static int __pyx_f_6ruamel_4yaml_4clib_12_ruamel_yaml_input_handler(void *, unsigned char *, size_t, size_t *); /*proto*/ | ||
+static int __pyx_f_6ruamel_4yaml_4clib_12_ruamel_yaml_output_handler(void *, unsigned char *, size_t); /*proto*/ | ||
static PyObject *__pyx_f_6ruamel_4yaml_4clib_12_ruamel_yaml___pyx_unpickle_Mark__set_state(struct __pyx_obj_6ruamel_4yaml_4clib_12_ruamel_yaml_Mark *, PyObject *); /*proto*/ | ||
/* #### Code section: typeinfo ### */ | ||
/* #### Code section: before_global_var ### */ | ||
@@ -16092,7 +16092,7 @@ static PyObject *__pyx_pf_6ruamel_4yaml_4clib_12_ruame | ||
* parser = <CParser>data | ||
*/ | ||
|
||
-static int __pyx_f_6ruamel_4yaml_4clib_12_ruamel_yaml_input_handler(void *__pyx_v_data, char *__pyx_v_buffer, int __pyx_v_size, int *__pyx_v_read) { | ||
+static int __pyx_f_6ruamel_4yaml_4clib_12_ruamel_yaml_input_handler(void *__pyx_v_data, unsigned char *__pyx_v_buffer, size_t __pyx_v_size, size_t *__pyx_v_read) { | ||
struct __pyx_obj_6ruamel_4yaml_4clib_12_ruamel_yaml_CParser *__pyx_v_parser = 0; | ||
PyObject *__pyx_v_value = NULL; | ||
int __pyx_r; | ||
@@ -25321,7 +25321,7 @@ static PyObject *__pyx_pf_6ruamel_4yaml_4clib_12_ruame | ||
* emitter = <CEmitter>data | ||
*/ | ||
|
||
-static int __pyx_f_6ruamel_4yaml_4clib_12_ruamel_yaml_output_handler(void *__pyx_v_data, char *__pyx_v_buffer, int __pyx_v_size) { | ||
+static int __pyx_f_6ruamel_4yaml_4clib_12_ruamel_yaml_output_handler(void *__pyx_v_data, unsigned char *__pyx_v_buffer, size_t __pyx_v_size) { | ||
struct __pyx_obj_6ruamel_4yaml_4clib_12_ruamel_yaml_CEmitter *__pyx_v_emitter = 0; | ||
PyObject *__pyx_v_value = NULL; | ||
int __pyx_r; |