Skip to content

Commit c8a37be

Browse files
committed
Add C global variable PyOS_InputHook
1 parent 9539823 commit c8a37be

File tree

1 file changed

+3
-1
lines changed
  • graalpython/com.oracle.graal.python.cext/src

1 file changed

+3
-1
lines changed

graalpython/com.oracle.graal.python.cext/src/pythonrun.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2018, 2021, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2018, 2022, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* The Universal Permissive License (UPL), Version 1.0
@@ -40,6 +40,8 @@
4040
*/
4141
#include "capi.h"
4242

43+
int (*PyOS_InputHook)(void) = NULL;
44+
4345
UPCALL_ID(PyRun_String);
4446
PyObject* PyRun_StringFlags(const char* source, int type, PyObject* globals, PyObject* locals, PyCompilerFlags* ignored) {
4547
const char* stype;

0 commit comments

Comments
 (0)