Fixing lalr on windows

This commit is contained in:
Ilusha 2024-03-09 12:02:02 +03:00 committed by Ilya Shurupov
parent 69db2b82a4
commit 8cc5f2f9f7
15 changed files with 1276 additions and 1226 deletions

View file

@ -145,13 +145,11 @@ namespace obj {
return;
}
#ifdef OBJECT_REF_COUNT
ObjectMemHead* mh = NDO_MEMH_FROM_NDO(in);
if (mh->refc > 1) {
mh->refc--;
return;
}
#endif
NDO_CASTV(ClassObject, in, classobj);
if (classobj) {
@ -175,7 +173,6 @@ namespace obj {
ObjectMemDeallocate(in);
}
#ifdef OBJECT_REF_COUNT
tp::halni objects_api::getrefc(Object* in) {
ObjectMemHead* mh = NDO_MEMH_FROM_NDO(in);
return (tp::halni) mh->refc;
@ -190,7 +187,7 @@ namespace obj {
ObjectMemHead* mh = NDO_MEMH_FROM_NDO(in);
mh->refc = refc;
}
#endif
void hierarchy_copy(Object* self, const Object* in, const ObjectType* type) {
if (type->base) {