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

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 #if defined (__SVR4) && defined (__sun) 1 #if defined (__SVR4) && defined (__sun)
2 # include <alloca.h> 2 # include <alloca.h>
3 #endif 3 #endif
4 4
5 #ifndef MS_WIN32 5 #ifndef MS_WIN32
6 #define max(a, b) ((a) > (b) ? (a) : (b)) 6 #define max(a, b) ((a) > (b) ? (a) : (b))
7 #define min(a, b) ((a) < (b) ? (a) : (b)) 7 #define min(a, b) ((a) < (b) ? (a) : (b))
8 8
9 #define PARAMFLAG_FIN 0x1 9 #define PARAMFLAG_FIN 0x1
10 #define PARAMFLAG_FOUT 0x2 10 #define PARAMFLAG_FOUT 0x2
(...skipping 339 matching lines...) Expand 10 before | Expand all | Expand 10 after
350 #endif 350 #endif
351 351
352 352
353 extern void _ctypes_free_closure(void *); 353 extern void _ctypes_free_closure(void *);
354 extern void *_ctypes_alloc_closure(void); 354 extern void *_ctypes_alloc_closure(void);
355 355
356 extern void _ctypes_add_traceback(char *, char *, int); 356 extern void _ctypes_add_traceback(char *, char *, int);
357 357
358 extern PyObject *PyCData_FromBaseObj(PyObject *type, PyObject *base, Py_ssize_t index, char *adr); 358 extern PyObject *PyCData_FromBaseObj(PyObject *type, PyObject *base, Py_ssize_t index, char *adr);
359 extern char *_ctypes_alloc_format_string(const char *prefix, const char *suffix) ; 359 extern char *_ctypes_alloc_format_string(const char *prefix, const char *suffix) ;
360 extern char *_ctypes_alloc_format_string_with_shape(int ndim,
361 const Py_ssize_t *shape,
362 const char *prefix, const char * suffix);
360 363
361 extern int _ctypes_simple_instance(PyObject *obj); 364 extern int _ctypes_simple_instance(PyObject *obj);
362 365
363 extern PyObject *_ctypes_ptrtype_cache; 366 extern PyObject *_ctypes_ptrtype_cache;
364 PyObject *_ctypes_get_errobj(int **pspace); 367 PyObject *_ctypes_get_errobj(int **pspace);
365 368
366 #ifdef MS_WIN32 369 #ifdef MS_WIN32
367 extern PyObject *ComError; 370 extern PyObject *ComError;
368 #endif 371 #endif
369 372
370 /* 373 /*
371 Local Variables: 374 Local Variables:
372 compile-command: "python setup.py -q build install --home ~" 375 compile-command: "python setup.py -q build install --home ~"
373 End: 376 End:
374 */ 377 */
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+