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

+10-1
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)