typioca: 2.7.0 -> 2.8.0
[NixPkgs.git] / pkgs / development / misc / resholve / 0014-clang_incompatible_function_pointer_conversions.patch
blob52d5e6adfe74e8ee4e914580a915a8094250a755
1 diff -ur a/decoder.c b/decoder.c
2 --- a/decoder.c 1980-01-02 00:00:00.000000000 -0500
3 +++ b/decoder.c 2023-11-08 17:42:43.981838074 -0500
4 @@ -94,7 +94,7 @@
5 return PlaceObject(ctx, PyBool_FromLong((long)(value)));
8 -static int handle_number(void *ctx, const char *value, unsigned int length)
9 +static int handle_number(void *ctx, const char *value, size_t length)
11 //fprintf(stderr, "handle_number: ");
12 //fwrite(value, length, 1, stderr);
13 @@ -127,7 +127,7 @@
14 return status;
17 -static int handle_string(void *ctx, const unsigned char *value, unsigned int length)
18 +static int handle_string(void *ctx, const unsigned char *value, size_t length)
20 return PlaceObject(ctx, PyString_FromStringAndSize((char *)value, length));
22 @@ -142,7 +142,7 @@
23 return success;
26 -static int handle_dict_key(void *ctx, const unsigned char *value, unsigned int length)
27 +static int handle_dict_key(void *ctx, const unsigned char *value, size_t length)
29 PyObject *object = PyString_FromStringAndSize((const char *) value, length);
31 diff -ur a/yajl.c b/yajl.c
32 --- a/yajl.c 1980-01-02 00:00:00.000000000 -0500
33 +++ b/yajl.c 2023-11-08 17:41:18.781350335 -0500
34 @@ -161,7 +161,7 @@
37 static struct PyMethodDef yajl_methods[] = {
38 - {"dumps", (PyCFunctionWithKeywords)(py_dumps), METH_VARARGS | METH_KEYWORDS,
39 + {"dumps", (PyCFunction)(py_dumps), METH_VARARGS | METH_KEYWORDS,
40 "yajl.dumps(obj [, indent=None])\n\n\
41 Returns an encoded JSON string of the specified `obj`\n\
42 \n\