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

Side by Side Diff: Include/memoryobject.h

Issue 13411: Hashable memoryviews
Patch Set: Created 7 years, 8 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 | « Doc/library/stdtypes.rst ('k') | Include/object.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* Memory view object. In Python this is available as "memoryview". */ 1 /* Memory view object. In Python this is available as "memoryview". */
2 2
3 #ifndef Py_MEMORYOBJECT_H 3 #ifndef Py_MEMORYOBJECT_H
4 #define Py_MEMORYOBJECT_H 4 #define Py_MEMORYOBJECT_H
5 #ifdef __cplusplus 5 #ifdef __cplusplus
6 extern "C" { 6 extern "C" {
7 #endif 7 #endif
8 8
9 PyAPI_DATA(PyTypeObject) PyMemoryView_Type; 9 PyAPI_DATA(PyTypeObject) PyMemoryView_Type;
10 10
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 #endif 62 #endif
63 63
64 64
65 /* The struct is declared here so that macros can work, but it shouldn't 65 /* The struct is declared here so that macros can work, but it shouldn't
66 be considered public. Don't access those fields directly, use the macros 66 be considered public. Don't access those fields directly, use the macros
67 and functions instead! */ 67 and functions instead! */
68 #ifndef Py_LIMITED_API 68 #ifndef Py_LIMITED_API
69 typedef struct { 69 typedef struct {
70 PyObject_HEAD 70 PyObject_HEAD
71 Py_buffer view; 71 Py_buffer view;
72 Py_hash_t hash;
72 } PyMemoryViewObject; 73 } PyMemoryViewObject;
73 #endif 74 #endif
74 75
75 #ifdef __cplusplus 76 #ifdef __cplusplus
76 } 77 }
77 #endif 78 #endif
78 #endif /* !Py_MEMORYOBJECT_H */ 79 #endif /* !Py_MEMORYOBJECT_H */
OLDNEW
« no previous file with comments | « Doc/library/stdtypes.rst ('k') | Include/object.h » ('j') | no next file with comments »

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