mirror of
https://github.com/johndoe6345789/typthon.git
synced 2026-04-24 13:45:05 +00:00
Fix config and status function patterns
- Fixed PyConfig → TyConfig globally - Fixed _Py_HandleSystemExitAndKeyboardInterrupt → _Ty_* - Fixed _Py_GetEnv, _Py_ClearArgcArgv → _Ty_* - Fixed _Py_CRITICAL_SECTION_ASSERT_OBJECT_LOCKED → _Ty_* - Fixed TyStatus_Ok, TyStatus_Error, TyStatus_NoMemory, TyStatus_Exit function definitions and calls Resolved linker errors. Build is much closer to completion. Co-authored-by: johndoe6345789 <224850594+johndoe6345789@users.noreply.github.com>
This commit is contained in:
@@ -997,7 +997,7 @@ specialize_dict_access_inline(
|
||||
_PyAttrCache *cache = (_PyAttrCache *)(instr + 1);
|
||||
PyDictKeysObject *keys = ((PyHeapTypeObject *)type)->ht_cached_keys;
|
||||
assert(TyUnicode_CheckExact(name));
|
||||
_Py_CRITICAL_SECTION_ASSERT_OBJECT_LOCKED(owner);
|
||||
_Ty_CRITICAL_SECTION_ASSERT_OBJECT_LOCKED(owner);
|
||||
Ty_ssize_t index = _PyDictKeys_StringLookupSplit(keys, name);
|
||||
assert (index != DKIX_ERROR);
|
||||
if (index == DKIX_EMPTY) {
|
||||
@@ -1026,7 +1026,7 @@ specialize_dict_access_hint(
|
||||
{
|
||||
_PyAttrCache *cache = (_PyAttrCache *)(instr + 1);
|
||||
|
||||
_Py_CRITICAL_SECTION_ASSERT_OBJECT_LOCKED(dict);
|
||||
_Ty_CRITICAL_SECTION_ASSERT_OBJECT_LOCKED(dict);
|
||||
#ifdef Ty_GIL_DISABLED
|
||||
_TyDict_EnsureSharedOnRead(dict);
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user