Skip to content

Commit 1073f43

Browse files
Fix missing pointer stars
1 parent ce6f696 commit 1073f43

1 file changed

Lines changed: 5 additions & 6 deletions

File tree

peps/pep-0788.rst

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ Interpreter views
233233
deleted or otherwise cannot execute in another thread.
234234
235235
236-
.. c:function:: PyInterpreterView PyInterpreterView_FromCurrent(void)
236+
.. c:function:: PyInterpreterView *PyInterpreterView_FromCurrent(void)
237237
238238
Create a view to the current interpreter.
239239
@@ -255,7 +255,7 @@ Interpreter views
255255
attached thread state.
256256
257257
258-
.. c:function:: PyInterpreterView PyUnstable_InterpreterView_FromMain()
258+
.. c:function:: PyInterpreterView *PyUnstable_InterpreterView_FromMain()
259259
260260
Create a view for the "main" interpreter.
261261
@@ -586,9 +586,8 @@ With this PEP, you would implement it like this:
586586
587587
/* Log to a Python file. No attached thread state is required by the caller. */
588588
int
589-
log_to_py_file_object(PyInterpreterView *view,
590-
PyObject *file,
591-
PyObject *text)
589+
log_to_py_file_object(PyInterpreterView *view, PyObject *file,
590+
PyObject *text)
592591
{
593592
assert(view != NULL);
594593
PyThreadState *tstate = PyThreadState_EnsureFromView(view);
@@ -763,7 +762,7 @@ interpreter guard is owned by the thread state.
763762
static int
764763
thread_func(void *arg)
765764
{
766-
PyInterpreterGuard guard = (PyInterpreterGuard)arg;
765+
PyInterpreterGuard *guard = (PyInterpreterGuard *)arg;
767766
PyThreadState *tstate = PyThreadState_Ensure(guard);
768767
if (tstate == NULL) {
769768
// Out of memory.

0 commit comments

Comments
 (0)