pycall 1.5.4 → 1.5.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGES.md +6 -0
- data/ext/pycall/libpython.c +1 -1
- data/ext/pycall/pycall_internal.h +3 -2
- data/lib/pycall/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 021f14bb6fd6adb5cf12772e9021aea5daef9332faf956c80de04a79d722282a
|
|
4
|
+
data.tar.gz: 4575a9af6330a98f610099272af17cab79ccbb26eb14fc7a65b7403327ba6855
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 5775cfff7a1312548561c168bf2c87e8bf27d7355cf45d8d28d162e54b5dbe3eaec6fe4379a02bf6a0cf5b4f60640b3eef8236b59f4d67171c9e6d00cf0eddd2
|
|
7
|
+
data.tar.gz: 300c6b213fd1905da85a5ad3436cb253a5a1b0d42228b52b517105cabed329ff91f98efd306ca51c996d63777456081d596b95016bc7c94eb4e4c3537785a4e9
|
data/CHANGES.md
CHANGED
data/ext/pycall/libpython.c
CHANGED
|
@@ -194,7 +194,7 @@ pycall_init_libpython_api_table(VALUE libpython_handle)
|
|
|
194
194
|
if (python_string_as_bytes) {
|
|
195
195
|
INIT_API_TABLE_ENTRY2(PyString_AsStringAndSize, PyBytes_AsStringAndSize, required);
|
|
196
196
|
INIT_API_TABLE_ENTRY2(PyString_FromStringAndSize, PyBytes_FromStringAndSize, required);
|
|
197
|
-
INIT_API_TABLE_ENTRY2(PyString_FromFormatV,
|
|
197
|
+
INIT_API_TABLE_ENTRY2(PyString_FromFormatV, PyBytes_FromFormatV, required);
|
|
198
198
|
}
|
|
199
199
|
else {
|
|
200
200
|
INIT_API_TABLE_ENTRY(PyString_AsStringAndSize, required);
|
|
@@ -16,6 +16,7 @@ extern "C" {
|
|
|
16
16
|
#include <assert.h>
|
|
17
17
|
#include <inttypes.h>
|
|
18
18
|
#include <limits.h>
|
|
19
|
+
#include <stdarg.h>
|
|
19
20
|
|
|
20
21
|
#if defined(_WIN32)
|
|
21
22
|
# define PYCALL_THREAD_WIN32
|
|
@@ -670,11 +671,11 @@ typedef struct {
|
|
|
670
671
|
|
|
671
672
|
int (* PyString_AsStringAndSize)(PyObject *, char **, Py_ssize_t *);
|
|
672
673
|
PyObject * (* PyString_FromStringAndSize)(char *, Py_ssize_t);
|
|
673
|
-
PyObject * (* PyString_FromFormatV)(char const*,
|
|
674
|
+
PyObject * (* PyString_FromFormatV)(char const*, va_list);
|
|
674
675
|
|
|
675
676
|
PyObject * (* PyUnicode_AsUTF8String)(PyObject *);
|
|
676
677
|
PyObject * (* PyUnicode_DecodeUTF8)(char const*, Py_ssize_t, char const *);
|
|
677
|
-
PyObject * (* PyUnicode_FromFormatV)(char const*,
|
|
678
|
+
PyObject * (* PyUnicode_FromFormatV)(char const*, va_list);
|
|
678
679
|
|
|
679
680
|
int (* PyGILState_Check)(void);
|
|
680
681
|
PyGILState_STATE (* PyGILState_Ensure)(void);
|
data/lib/pycall/version.rb
CHANGED