Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(50)

Side by Side Diff: Modules/_ctypes/ctypes.h

Issue 10744: ctypes arrays have incorrect buffer information (PEP-3118)
Patch Set: Created 5 years, 10 months ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « Modules/_ctypes/_ctypes.c ('k') | Modules/_ctypes/stgdict.c » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /***************************************************************** 1 /*****************************************************************
2 This file should be kept compatible with Python 2.3, see PEP 291. 2 This file should be kept compatible with Python 2.3, see PEP 291.
3 *****************************************************************/ 3 *****************************************************************/
4 4
5 #if defined (__SVR4) && defined (__sun) 5 #if defined (__SVR4) && defined (__sun)
6 # include <alloca.h> 6 # include <alloca.h>
7 #endif 7 #endif
8 8
9 #if (PY_VERSION_HEX < 0x02040000) 9 #if (PY_VERSION_HEX < 0x02040000)
10 #define PyDict_CheckExact(ob) (Py_TYPE(ob) == &PyDict_Type) 10 #define PyDict_CheckExact(ob) (Py_TYPE(ob) == &PyDict_Type)
(...skipping 416 matching lines...) Expand 10 before | Expand all | Expand 10 after
427 427
428 extern PyObject *PyUnicode_FromWideChar_fixed(const wchar_t *, Py_ssize_t); 428 extern PyObject *PyUnicode_FromWideChar_fixed(const wchar_t *, Py_ssize_t);
429 extern Py_ssize_t PyUnicode_AsWideChar_fixed(PyUnicodeObject *, wchar_t *, Py_ss ize_t); 429 extern Py_ssize_t PyUnicode_AsWideChar_fixed(PyUnicodeObject *, wchar_t *, Py_ss ize_t);
430 #endif 430 #endif
431 #endif 431 #endif
432 432
433 extern void _ctypes_add_traceback(char *, char *, int); 433 extern void _ctypes_add_traceback(char *, char *, int);
434 434
435 extern PyObject *PyCData_FromBaseObj(PyObject *type, PyObject *base, Py_ssize_t index, char *adr); 435 extern PyObject *PyCData_FromBaseObj(PyObject *type, PyObject *base, Py_ssize_t index, char *adr);
436 extern char *_ctypes_alloc_format_string(const char *prefix, const char *suffix) ; 436 extern char *_ctypes_alloc_format_string(const char *prefix, const char *suffix) ;
437 extern char *_ctypes_alloc_format_string_with_shape(int ndim,
438 const Py_ssize_t *shape,
439 const char *prefix, const char * suffix);
437 440
438 extern int _ctypes_simple_instance(PyObject *obj); 441 extern int _ctypes_simple_instance(PyObject *obj);
439 442
440 extern PyObject *_ctypes_ptrtype_cache; 443 extern PyObject *_ctypes_ptrtype_cache;
441 PyObject *_ctypes_get_errobj(int **pspace); 444 PyObject *_ctypes_get_errobj(int **pspace);
442 445
443 #ifdef MS_WIN32 446 #ifdef MS_WIN32
444 extern PyObject *ComError; 447 extern PyObject *ComError;
445 #endif 448 #endif
446 449
(...skipping 29 matching lines...) Expand all
476 (PyCObject_AsVoidPtr(capsule)) 479 (PyCObject_AsVoidPtr(capsule))
477 480
478 #endif /* PY_VERSION_HEX >= 0x020700A4 */ 481 #endif /* PY_VERSION_HEX >= 0x020700A4 */
479 482
480 483
481 /* 484 /*
482 Local Variables: 485 Local Variables:
483 compile-command: "python setup.py -q build install --home ~" 486 compile-command: "python setup.py -q build install --home ~"
484 End: 487 End:
485 */ 488 */
OLDNEW
« no previous file with comments | « Modules/_ctypes/_ctypes.c ('k') | Modules/_ctypes/stgdict.c » ('j') | no next file with comments »

RSS Feeds Recent Issues | This issue
This is Rietveld 894c83f36cb7+