int len, mod_tlen, cklen;
int ckn;
int infinite = IS_REPEAT_INFINITE(qn->upper);
- int empty_info = qn->target_empty_info;
+ int empty_info = qn->body_empty_info;
int tlen = compile_length_tree(qn->target, reg);
if (tlen < 0) return tlen;
int r, mod_tlen;
int ckn;
int infinite = IS_REPEAT_INFINITE(qn->upper);
- int empty_info = qn->target_empty_info;
+ int empty_info = qn->body_empty_info;
int tlen = compile_length_tree(qn->target, reg);
if (tlen < 0) return tlen;
{
int len, mod_tlen;
int infinite = IS_REPEAT_INFINITE(qn->upper);
- int empty_info = qn->target_empty_info;
+ int empty_info = qn->body_empty_info;
int tlen = compile_length_tree(NODE_BODY((Node* )qn), reg);
if (tlen < 0) return tlen;
{
int i, r, mod_tlen;
int infinite = IS_REPEAT_INFINITE(qn->upper);
- int empty_info = qn->target_empty_info;
+ int empty_info = qn->body_empty_info;
int tlen = compile_length_tree(NODE_BODY((Node* )qn), reg);
if (tlen < 0) return tlen;
#endif /* USE_MONOMANIAC_CHECK_CAPTURES_IN_ENDLESS_REPEAT */
/* setup_tree does the following work.
- 1. check empty loop. (set qn->target_empty_info)
+ 1. check empty loop. (set qn->body_empty_info)
2. expand ignore-case in char class.
3. set memory status bit flags. (reg->mem_stats)
4. set qn->head_exact for [push, exact] -> [push_or_jump_exact1, exact].
r = get_min_len(target, &d, env);
if (r) break;
if (d == 0) {
- qn->target_empty_info = NQ_BODY_IS_EMPTY;
+ qn->body_empty_info = NQ_BODY_IS_EMPTY;
#ifdef USE_MONOMANIAC_CHECK_CAPTURES_IN_ENDLESS_REPEAT
r = quantifiers_memory_node_info(target, state);
if (r < 0) break;
if (r > 0) {
- qn->target_empty_info = r;
+ qn->body_empty_info = r;
if (r == NQ_BODY_IS_EMPTY_REC) {
if (NTYPE(target) == NT_ENCLOSE &&
NENCLOSE(target)->type == ENCLOSE_MEMORY) {
}
#ifdef USE_OP_PUSH_OR_JUMP_EXACT
- if (qn->greedy && (qn->target_empty_info != 0)) {
+ if (qn->greedy && (qn->body_empty_info != 0)) {
if (NTYPE(target) == NT_QTFR) {
QtfrNode* tqn = NQTFR(target);
if (IS_NOT_NULL(tqn->head_exact)) {
NQTFR(node)->lower = lower;
NQTFR(node)->upper = upper;
NQTFR(node)->greedy = 1;
- NQTFR(node)->target_empty_info = NQ_BODY_ISNOT_EMPTY;
- NQTFR(node)->head_exact = NULL_NODE;
- NQTFR(node)->next_head_exact = NULL_NODE;
- NQTFR(node)->is_refered = 0;
+ NQTFR(node)->body_empty_info = NQ_BODY_ISNOT_EMPTY;
+ NQTFR(node)->head_exact = NULL_NODE;
+ NQTFR(node)->next_head_exact = NULL_NODE;
+ NQTFR(node)->is_refered = 0;
if (by_number != 0)
NODE_STATUS_SET(node, NST_BY_NUMBER);