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

Delta Between Two Patch Sets: Modules/_ctypes/stgdict.c

Issue 10744: ctypes arrays have incorrect buffer information (PEP-3118)
Left Patch Set: Created 5 years, 9 months ago
Right Patch Set: Created 5 years, 9 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:
Left: Side by side diff | Download
Right: Side by side diff | Download
« no previous file with change/comment | « Modules/_ctypes/ctypes.h ('k') | no next file » | no next file with change/comment »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
LEFTRIGHT
(Both sides are equal)
1 #include "Python.h" 1 #include "Python.h"
2 #include <ffi.h> 2 #include <ffi.h>
3 #ifdef MS_WIN32 3 #ifdef MS_WIN32
4 #include <windows.h> 4 #include <windows.h>
5 #include <malloc.h> 5 #include <malloc.h>
6 #endif 6 #endif
7 #include "ctypes.h" 7 #include "ctypes.h"
8 8
9 /******************************************************************/ 9 /******************************************************************/
10 /* 10 /*
(...skipping 567 matching lines...) Expand 10 before | Expand all | Expand 10 after
578 have been set until now. */ 578 have been set until now. */
579 if (stgdict->flags & DICTFLAG_FINAL) { 579 if (stgdict->flags & DICTFLAG_FINAL) {
580 PyErr_SetString(PyExc_AttributeError, 580 PyErr_SetString(PyExc_AttributeError,
581 "Structure or union cannot contain itself"); 581 "Structure or union cannot contain itself");
582 return -1; 582 return -1;
583 } 583 }
584 stgdict->flags |= DICTFLAG_FINAL; 584 stgdict->flags |= DICTFLAG_FINAL;
585 585
586 return MakeAnonFields(type); 586 return MakeAnonFields(type);
587 } 587 }
LEFTRIGHT

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