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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4c46a9c4f077cebbd72eb6cbbd73ed78dbc25157758b18dd0875f6a454a9a25b
4
- data.tar.gz: 82b308675e78c3b9bfeb84d7019ec7fee85b3ed1b0cb748b88dcffb94be4152c
3
+ metadata.gz: 021f14bb6fd6adb5cf12772e9021aea5daef9332faf956c80de04a79d722282a
4
+ data.tar.gz: 4575a9af6330a98f610099272af17cab79ccbb26eb14fc7a65b7403327ba6855
5
5
  SHA512:
6
- metadata.gz: 311f23b5ca9052a100231138d1879df2ef19464e071a75176120141f9b4d3bd6b5e2b6d8fa35f356593e07cbd74366ef4be9c87cac85928dce652b9e60021e2b
7
- data.tar.gz: 8135204a29e333294c768b8d407b8e9cd546e92dce497ea811a9ee2aa91cbfa63b1b5c04f14f555447ab2b6a138b13a40520ea8c80529606f0532a0f8c5a3ad6
6
+ metadata.gz: 5775cfff7a1312548561c168bf2c87e8bf27d7355cf45d8d28d162e54b5dbe3eaec6fe4379a02bf6a0cf5b4f60640b3eef8236b59f4d67171c9e6d00cf0eddd2
7
+ data.tar.gz: 300c6b213fd1905da85a5ad3436cb253a5a1b0d42228b52b517105cabed329ff91f98efd306ca51c996d63777456081d596b95016bc7c94eb4e4c3537785a4e9
data/CHANGES.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # The change history of PyCall
2
2
 
3
+ ## 1.5.5
4
+
5
+ * Fix `repr()` clash on macOS (#233, #234).
6
+
7
+ *himotoyoshi*
8
+
3
9
  ## 1.5.4
4
10
 
5
11
  * Fix GC compaction related crash (#230, #231).
@@ -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, PyBytes_FromFormat, required);
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);
@@ -1,5 +1,5 @@
1
1
  module PyCall
2
- VERSION = "1.5.4"
2
+ VERSION = "1.5.5"
3
3
 
4
4
  module Version
5
5
  numbers, TAG = VERSION.split("-")
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pycall
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.4
4
+ version: 1.5.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kenta Murata