typedef enum {
SKIP_NOT, // condition is a constant, produce code
SKIP_YES, // condition is a constant, do NOT produce code
- SKIP_UNKNONW // condition is not a constant, produce code
+ SKIP_UNKNOWN // condition is not a constant, produce code
} skip_T;
/*
else
{
// Not a constant, generate instructions for the expression.
- cctx->ctx_skip = SKIP_UNKNONW;
+ cctx->ctx_skip = SKIP_UNKNOWN;
if (generate_ppconst(cctx, &ppconst) == FAIL)
return NULL;
}
// "is_had_return" will be reset if any block does not end in :return
scope->se_u.se_if.is_had_return = TRUE;
- if (cctx->ctx_skip == SKIP_UNKNONW)
+ if (cctx->ctx_skip == SKIP_UNKNOWN)
{
// "where" is set when ":elseif", "else" or ":endif" is found
scope->se_u.se_if.is_if_label = instr->ga_len;
if (!cctx->ctx_had_return)
scope->se_u.se_if.is_had_return = FALSE;
- if (cctx->ctx_skip == SKIP_UNKNONW)
+ if (cctx->ctx_skip == SKIP_UNKNOWN)
{
if (compile_jump_to_end(&scope->se_u.se_if.is_end_label,
JUMP_ALWAYS, cctx) == FAIL)
else
{
// Not a constant, generate instructions for the expression.
- cctx->ctx_skip = SKIP_UNKNONW;
+ cctx->ctx_skip = SKIP_UNKNOWN;
if (generate_ppconst(cctx, &ppconst) == FAIL)
return NULL;
if (scope->se_skip_save != SKIP_YES)
{
// jump from previous block to the end, unless the else block is empty
- if (cctx->ctx_skip == SKIP_UNKNONW)
+ if (cctx->ctx_skip == SKIP_UNKNOWN)
{
if (!cctx->ctx_had_return
&& compile_jump_to_end(&scope->se_u.se_if.is_end_label,
return NULL;
}
- if (cctx->ctx_skip == SKIP_UNKNONW)
+ if (cctx->ctx_skip == SKIP_UNKNOWN)
{
if (scope->se_u.se_if.is_if_label >= 0)
{
}
}
- if (cctx->ctx_skip != SKIP_UNKNONW)
+ if (cctx->ctx_skip != SKIP_UNKNOWN)
cctx->ctx_skip = cctx->ctx_skip == SKIP_YES ? SKIP_NOT : SKIP_YES;
}