aboutsummaryrefslogtreecommitdiff
path: root/types.h
diff options
context:
space:
mode:
authorTeddy <ted.sybil@gmail.com>2013-08-11 22:25:22 +0800
committerTeddy <ted.sybil@gmail.com>2013-08-11 22:25:22 +0800
commit76977635e28e06192a486a9452e03bc7b8f612dc (patch)
treec8eaf0c22f1516bb88c2a21661a3bc2b8eadd2c6 /types.h
parentab3a756ccb788487136d6982a7ddf6d4053ec133 (diff)
fixed severe bug in many special opts
Diffstat (limited to 'types.h')
-rw-r--r--types.h19
1 files changed, 6 insertions, 13 deletions
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();
};/*}}}*/