GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||||||
GeezerVison is showing github.com — [2.7] bpo-10746: Fix ctypes PEP 3118 type codes for c_long, c_bool, c_int (GH-31) by pv · Pull Request #3242 · python/cpython Conversation
|
|
This PR failed building on AppVeyor, see: https://ci.appveyor.com/project/python/cpython/build/2.7.13+.5702#L306 |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| #elif SIZEOF__BOOL == 8 | ||
| case '?': pep_code = 'Q'; break; | ||
| #else | ||
| # error SIZEOF__BOOL has an unexpected value |
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Hi @pv,
The problems is with the win compilation. SIZEOF__BOOL has an unexpected value
I'm really new, but that sound how if you don't define SIZEOF__BOOL variable. Searching where is that defining, I found its defintion in PC/pyconfig.h, but you never including that. I cannot test if that is the solution, because I don`t have my tools here.
regard!
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Thanks for the comment. I will look at this again next week once I'm back
at a win32 machine.
30.8.2017 17.40 "Emmanuel Arias" <[email protected]> kirjoitti:
… ***@***.**** commented on this pull request.
------------------------------
In Modules/_ctypes/_ctypes.c
<#3242 (comment)>:
> +#elif SIZEOF_LONG == 8
+ case 'l': pep_code = 'q'; break;
+ case 'L': pep_code = 'Q'; break;
+#else
+# error SIZEOF_LONG has an unexpected value
+#endif /* SIZEOF_LONG */
+#if SIZEOF__BOOL == 1
+ case '?': pep_code = '?'; break;
+#elif SIZEOF__BOOL == 2
+ case '?': pep_code = 'H'; break;
+#elif SIZEOF__BOOL == 4
+ case '?': pep_code = 'L'; break;
+#elif SIZEOF__BOOL == 8
+ case '?': pep_code = 'Q'; break;
+#else
+# error SIZEOF__BOOL has an unexpected value
Hi @pv <https://github.com/pv>,
The problems is with the win compilation. SIZEOF__BOOL has an unexpected
value
I'm really new, but sound how if you don't define SIZEOF__BOOL variable.
Searching where is that defining, I found its defintion in PC/pyconfig.h,
but you never including that. I cannot test if that is the solution,
because I don`t have my tools here.
regard!
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#3242 (review)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AACI5gLOsgdiCoDOfqW9CuTamaz9aRl7ks5sdWZBgaJpZM4PHCsl>
.
|
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
Should be fixed now. In Python 2.7, SIZEOF__BOOL is defined to 1 if HAVE_C99_BOOL is undefined in cfield.c. I now duplicated that definition in ctypes.c. On Python 3.x, there are no such ifdefs for SIZEOF__BOOL in either file, as the variable seems to be always defined. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Thank you! Now merging. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.