From 76977635e28e06192a486a9452e03bc7b8f612dc Mon Sep 17 00:00:00 2001 From: Teddy Date: Sun, 11 Aug 2013 22:25:22 +0800 Subject: fixed severe bug in many special opts --- types.h | 19 ++++++------------- 1 file changed, 6 insertions(+), 13 deletions(-) (limited to 'types.h') diff --git a/types.h b/types.h index f0d8713..11776ab 100644 --- a/types.h +++ b/types.h @@ -60,17 +60,6 @@ class EmptyList: public Pair {/*{{{*/ ReprCons *get_repr_cons(); };/*}}}*/ -/** @class RetAddr - * Tracking the caller's Pair pointer - */ -class RetAddr : public FrameObj {/*{{{*/ - public: - Pair* addr; /**< The return address */ - /** Constructs a return address object which refers to the node addr in - * the AST */ - RetAddr(Pair *addr); -};/*}}}*/ - class ReprCons {/*{{{*/ public: EvalObj *ori; @@ -303,11 +292,15 @@ class VecObj: public EvalObj {/*{{{*/ /** Construct a vector object */ VecObj(); size_t get_size(); - EvalObj *get_obj(int idx); + EvalObj *get_obj(size_t idx); /** Resize the vector */ - void resize(int new_size); + void resize(size_t new_size); /** Add a new element to the rear */ void push_back(EvalObj *new_elem); + /** Fill the vector with obj */ + void fill(EvalObj *obj); + /** Replace an existing element in the vector */ + void set(size_t idx, EvalObj *obj); ReprCons *get_repr_cons(); };/*}}}*/ -- cgit v1.2.3