Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit b8d5719

Browse filesBrowse files
committed
_PyInterpreterConfig_INIT is now a variable.
1 parent a90a14f commit b8d5719
Copy full SHA for b8d5719

File tree

1 file changed

+5
-5
lines changed
Filter options

1 file changed

+5
-5
lines changed

‎Source/PythonEngine.pas

Copy file name to clipboardExpand all lines: Source/PythonEngine.pas
+5-5
Original file line numberDiff line numberDiff line change
@@ -1068,7 +1068,7 @@ PyConfig = record
10681068
PyInterpreterConfig_SHARED_GIL = 1;
10691069
PyInterpreterConfig_OWN_GIL = 2;
10701070

1071-
type
1071+
type
10721072
PPyInterpreterConfig = ^PyInterpreterConfig;
10731073
PyInterpreterConfig = {$IFDEF CPUX86}packed{$ENDIF} record
10741074
use_main_obmalloc: Integer;
@@ -1080,7 +1080,7 @@ PyConfig = record
10801080
gil: Integer;
10811081
end;
10821082

1083-
const
1083+
var
10841084
_PyInterpreterConfig_INIT: PyInterpreterConfig =
10851085
( use_main_obmalloc: 0;
10861086
allow_fork: 0;
@@ -9305,7 +9305,7 @@ procedure TPythonThread.Execute;
93059305
finally
93069306
PyGILState_Release(gilstate);
93079307
end;
9308-
end else {fThreadExecMode}
9308+
end else
93099309
begin
93109310
gilstate := PyGILState_Ensure();
93119311
global_state := PyThreadState_Get;
@@ -9328,8 +9328,8 @@ procedure TPythonThread.Execute;
93289328
PyThreadState_Swap(global_state);
93299329
PyGILState_Release(gilstate);
93309330
end else
9331-
raise EPythonError.Create( 'Could not create a new thread state');
9332-
end; {withinterp}
9331+
raise EPythonError.Create('Could not create a new thread state');
9332+
end;
93339333
end;
93349334
end;
93359335

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.