Skip to content

Commit 0599a88

Browse files
committed
Corrected the definition of PyModuleDef.
1 parent bddf7c8 commit 0599a88

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

Source/PythonEngine.pas

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -611,14 +611,23 @@ TPythonVersionProp = record
611611
m_copy : PPyObject;
612612
end;
613613

614+
// Slots are used for two phase module initialization
615+
// which is not yet implemented
616+
617+
PPyModuleDef_Slot = ^PyModuleDef_Slot;
618+
PyModuleDef_Slot = {$IFDEF CPUX86}packed{$ENDIF} record
619+
slot: integer;
620+
value: Pointer;
621+
end;
622+
614623
PPyModuleDef = ^PyModuleDef;
615624
PyModuleDef = {$IFDEF CPUX86}packed{$ENDIF} record
616625
m_base : PyModuleDef_Base;
617626
m_name : PAnsiChar;
618627
m_doc : PAnsiChar;
619628
m_size : NativeInt;
620629
m_methods : PPyMethodDef;
621-
m_reload : inquiry;
630+
m_slots : PPyModuleDef_Slot;
622631
m_traverse : traverseproc;
623632
m_clear : inquiry;
624633
m_free : inquiry;

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