[cff] Remove op_str_t nop init/fini
This commit is contained in:
parent
8d24ac2662
commit
fe783ac091
|
@ -518,9 +518,6 @@ struct arg_stack_t : cff_stack_t<ARG, 513>
|
||||||
/* an operator prefixed by its operands in a byte string */
|
/* an operator prefixed by its operands in a byte string */
|
||||||
struct op_str_t
|
struct op_str_t
|
||||||
{
|
{
|
||||||
void init () {}
|
|
||||||
void fini () {}
|
|
||||||
|
|
||||||
op_code_t op;
|
op_code_t op;
|
||||||
byte_str_t str;
|
byte_str_t str;
|
||||||
};
|
};
|
||||||
|
|
|
@ -299,15 +299,12 @@ struct parsed_cs_op_t : op_str_t
|
||||||
{
|
{
|
||||||
void init (unsigned int subr_num_ = 0)
|
void init (unsigned int subr_num_ = 0)
|
||||||
{
|
{
|
||||||
op_str_t::init ();
|
|
||||||
subr_num = subr_num_;
|
subr_num = subr_num_;
|
||||||
drop_flag = false;
|
drop_flag = false;
|
||||||
keep_flag = false;
|
keep_flag = false;
|
||||||
skip_flag = false;
|
skip_flag = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
void fini () { op_str_t::fini (); }
|
|
||||||
|
|
||||||
bool for_drop () const { return drop_flag; }
|
bool for_drop () const { return drop_flag; }
|
||||||
void set_drop () { if (!for_keep ()) drop_flag = true; }
|
void set_drop () { if (!for_keep ()) drop_flag = true; }
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue