8000 Update design rules a bit · markshannon/New-C-API-for-Python@6155714 · GitHub
[go: up one dir, main page]

Skip to content

Commit 6155714

Browse files
committed
Update design rules a bit
1 parent d8b8d42 commit 6155714

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

DesignRules.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,8 @@ Prefix_NameSpace_Operation[_REF_CONSUMPTION][_VERSION]
126126
E.g.
127127
```C
128128
PyTupleRef PyApi_Tuple_FromArray(PyContext ctx, uintptr_t len, PyRef *array, PyExceptionRef *error);
129+
130+
PyTupleRef PyApi_Tuple_FromNonEmptyArray_nC_v2(PyContext ctx, uintptr_tlen, PyRef *array);
129131
```
130132
131133
## Use C99 <stdint.h> types
@@ -194,11 +196,11 @@ differently, returning the empty tuple singleton.
194196
We handle this tension by providing an efficient, but difficult use
195197
ABI function:
196198
```C
197-
PyTupleRef PyApi_Tuple_FromNonEmptyArray_nC(PyContext ctx, uintptr_tlen, PyRef *array, PyExceptionRef *error);
199+
PyTupleRef PyApi_Tuple_FromNonEmptyArray_nC(PyContext ctx, uintptr_tlen, PyRef *array);
198200
```
199201
and the easier to use API function
200202
```C
201-
PyTupleRef PyApi_Tuple_FromArray(PyContext ctx, uintptr_t len, PyRef *array, PyExceptionRef *error);
203+
PyTupleRef PyApi_Tuple_FromArray(PyContext ctx, uintptr_t len, PyRef *array);
202204
```
203205
204206
However, we can make this even easier to use by making a macro that

0 commit comments

Comments
 (0)
0