Debian Codegraph @

terps/alan3/checkentry.c

raw symbols SCIP
1 #include "checkentry.h"
2
3 #include "inter.h"
4 #include "lists.h"
5 #include "memory.h"
6
7
8 /*======================================================================*/
9 bool checksFailed(Aaddr adr, bool execute)
10 {
11 CheckEntry *chk = (CheckEntry *) pointerTo(adr);
12 if (chk->exp == 0) {
13 if (execute == EXECUTE_CHECK_BODY_ON_FAIL)
14 interpret(chk->stms);
15 return true;
16 } else {
17 while (!isEndOfArray(chk)) {
18 if (!evaluate(chk->exp)) {
19 if (execute == EXECUTE_CHECK_BODY_ON_FAIL)
20 interpret(chk->stms);
21 return true;
22 }
23 chk++;
24 }
25 return false;
26 }
27 }