Skip to content

Commit b8d5719

Browse files
committed
_PyInterpreterConfig_INIT is now a variable.
1 parent a90a14f commit b8d5719

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Source/PythonEngine.pas

Lines changed: 5 additions & 5 deletions
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy