(SYNC) Synchronisation with local latest modifications.

This commit is contained in:
William
2024-06-24 22:34:47 +08:00
parent 95a49ebefa
commit 69d827c38e
18 changed files with 607 additions and 407 deletions

View File

@@ -2,7 +2,7 @@
Status NameScope_Create(NameScope *inst)
{
fails(inst, apply(UnavailableInstance));
nonull(inst, apply(UnavailableInstance));
/* Create instances for members from inst. */
state(StatusUtils_IsOkay(NameScope_EmptyName(&inst->latest)),
@@ -17,8 +17,8 @@ Status NameScope_Create(NameScope *inst)
Status NameScope_CopyOf(NameScope *inst, NameScope *other)
{
fails(inst, apply(UnavailableInstance));
fails(other, apply(UnavailableParameter));
nonull(inst, apply(UnavailableInstance));
nonull(other, apply(UnavailableParameter));
/* Copy and assign. */
other->latest = inst->latest;