projects
/
m6w6
/
ext-psi
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
marshal: array return values
[m6w6/ext-psi]
/
src
/
types
/
assert_stmt.c
diff --git
a/src/types/assert_stmt.c
b/src/types/assert_stmt.c
index 084f9fc192431803b12d1c99d8875bf27fe4b93f..7b860d99d46aa161c92661817f2ab117b79405fe 100644
(file)
--- a/
src/types/assert_stmt.c
+++ b/
src/types/assert_stmt.c
@@
-62,20
+62,20
@@
void psi_assert_stmt_dump(int fd, struct psi_assert_stmt *stmt)
bool psi_assert_stmt_exec(struct psi_assert_stmt *stmt, struct psi_call_frame *frame)
{
impl_val res, chk;
bool psi_assert_stmt_exec(struct psi_assert_stmt *stmt, struct psi_call_frame *frame)
{
impl_val res, chk;
- token_t res_type = psi_num_exp_exec(stmt->exp, &res, frame);
+ token_t res_type = psi_num_exp_exec(stmt->exp, &res, frame
, NULL
);
psi_calc_cast(res_type, &res, PSI_T_UINT8, &chk);
return chk.u8;
}
psi_calc_cast(res_type, &res, PSI_T_UINT8, &chk);
return chk.u8;
}
-bool psi_assert_stmts_validate(struct psi_data *data, struct psi_
impl *impl
)
+bool psi_assert_stmts_validate(struct psi_data *data, struct psi_
validate_scope *scope
)
{
size_t i = 0;
struct psi_assert_stmt *ass;
/* we can have multiple assert stmts */
{
size_t i = 0;
struct psi_assert_stmt *ass;
/* we can have multiple assert stmts */
- while (psi_plist_get(impl->stmts.ass, i++, &ass)) {
- if (!psi_num_exp_validate(data, ass->exp,
impl, NULL, NULL, NULL, NULL
)) {
+ while (psi_plist_get(
scope->
impl->stmts.ass, i++, &ass)) {
+ if (!psi_num_exp_validate(data, ass->exp,
scope
)) {
return false;
}
}
return false;
}
}