aboutsummaryrefslogtreecommitdiff
path: root/model.h
diff options
context:
space:
mode:
authorTeddy <ted.sybil@gmail.com>2013-08-13 20:44:03 +0800
committerTeddy <ted.sybil@gmail.com>2013-08-13 20:44:03 +0800
commit9982fba5f471944a2e5ab1edac97c971eb557416 (patch)
treee3a7f37b00d9034b807024eb232eefb9d1659540 /model.h
parentcfb7f91f0153250b009a68b076ef4d1e6f12c4eb (diff)
fixed a mem leak in parser.cpp
Diffstat (limited to 'model.h')
-rw-r--r--model.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/model.h b/model.h
index 1ace1c9..9ccdf20 100644
--- a/model.h
+++ b/model.h
@@ -92,6 +92,7 @@ class EvalObj : public FrameObj {
bool is_prom_obj();
/** Check if the object is a vector */
bool is_vect_obj();
+ bool is_container();
int get_otype();
virtual void prepare(Pair *pc);
/** Any EvalObj has its external representation */
@@ -106,6 +107,8 @@ class Container: public EvalObj {
public:
size_t gc_refs;
Container(int otype);
+ virtual void gc_decrement() = 0;
+ virtual void gc_trigger(EvalObj ** &tail) = 0;
};
/** @class RetAddr