Skip to content

Commit

Permalink
- Minor refinement to exclusion mechanism.
Browse files Browse the repository at this point in the history
-  Addresses #108.
  • Loading branch information
bandurvp committed Nov 9, 2017
1 parent 184bcfd commit 673ca1c
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions c/vdmclib/src/main/VdmBasicTypes.c
Original file line number Diff line number Diff line change
Expand Up @@ -254,16 +254,6 @@ TVP isOfClassGC(TVP val, int classID, TVP *from)

return res;
}

TVP sameClass(TVP a, TVP b)
{
return newBool(((struct ClassType *)a->value.ptr)->classId == ((struct ClassType *)b->value.ptr)->classId);
}

TVP sameClassGC(TVP a, TVP b, TVP *from)
{
return newBoolGC(((struct ClassType *)a->value.ptr)->classId == ((struct ClassType *)b->value.ptr)->classId, from);
}
#endif


Expand Down Expand Up @@ -668,6 +658,16 @@ TVP isOfBaseClassGC(TVP val, int baseID, TVP *from)
return res;
}

TVP sameClass(TVP a, TVP b)
{
return newBool(((struct ClassType *)a->value.ptr)->classId == ((struct ClassType *)b->value.ptr)->classId);
}

TVP sameClassGC(TVP a, TVP b, TVP *from)
{
return newBoolGC(((struct ClassType *)a->value.ptr)->classId == ((struct ClassType *)b->value.ptr)->classId, from);
}

TVP sameBaseClass(TVP a, TVP b)
{
int i, assoclen = sizeof(assoc) / sizeof(int);
Expand Down

0 comments on commit 673ca1c

Please sign in to comment.