r = add_op(reg, OP_FAIL);
break;
- case GIMMICK_KEEP:
- r = add_op(reg, OP_PUSH_SAVE_VAL);
- if (r != 0) return r;
- COP(reg)->push_save_val.type = SAVE_KEEP;
- COP(reg)->push_save_val.id = node->id;
- break;
-
case GIMMICK_SAVE:
r = add_op(reg, OP_PUSH_SAVE_VAL);
if (r != 0) return r;
len = SIZE_OP_FAIL;
break;
- case GIMMICK_KEEP:
case GIMMICK_SAVE:
len = SIZE_OP_PUSH_SAVE_VAL;
break;
case GIMMICK_FAIL:
fprintf(f, "fail");
break;
- case GIMMICK_KEEP:
- fprintf(f, "keep:%d", GIMMICK_(node)->id);
- break;
case GIMMICK_SAVE:
fprintf(f, "save:%d:%d", GIMMICK_(node)->detail_type, GIMMICK_(node)->id);
break;
enum GimmickType {
GIMMICK_FAIL = 0,
- GIMMICK_KEEP = 1,
- GIMMICK_SAVE = 2,
- GIMMICK_UPDATE_VAR = 3,
+ GIMMICK_SAVE = 1,
+ GIMMICK_UPDATE_VAR = 2,
#ifdef USE_CALLOUT
- GIMMICK_CALLOUT = 4,
+ GIMMICK_CALLOUT = 3,
#endif
};