File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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.
You can’t perform that action at this time.
0 commit comments