diff options
author | Teddy <ted.sybil@gmail.com> | 2013-08-14 21:43:41 +0800 |
---|---|---|
committer | Teddy <ted.sybil@gmail.com> | 2013-08-14 21:43:41 +0800 |
commit | 640a20d0b6a2137617b7f217defce7979338e289 (patch) | |
tree | 30219b26cd538b08e5313978a9133c4e4248a3fe /types.h | |
parent | 2bb741508a93335b94adfabf3631abd39b8c6e8a (diff) |
removed redundant info
Diffstat (limited to 'types.h')
-rw-r--r-- | types.h | 11 |
1 files changed, 5 insertions, 6 deletions
@@ -139,11 +139,8 @@ class Continuation; */ class OptObj: public Container {/*{{{*/ public: - /** Pointer to the environment */ - Environment *envt; - - OptObj(Environment *envt, int otype = 0); + OptObj(int otype = 0); /** * The function is called when an operation is needed. * @param args The argument list (the first one is the opt itself) @@ -168,6 +165,8 @@ class ProcObj: public OptObj {/*{{{*/ Pair *body; /** The arguments: <list> | var1 ... | var1 var2 ... . varn */ EvalObj *params; + /** Pointer to the environment */ + Environment *envt; /** Conctructs a ProcObj */ ProcObj(Pair *body, Environment *envt, EvalObj *params); @@ -187,7 +186,7 @@ class SpecialOptObj: public OptObj {/*{{{*/ protected: string name; public: - SpecialOptObj(Environment *envt, string name); + SpecialOptObj(string name); ReprCons *get_repr_cons(); };/*}}}*/ @@ -205,7 +204,7 @@ class BuiltinProcObj: public OptObj {/*{{{*/ * @param proc the actual handler * @param name the name of this built-in procedure */ - BuiltinProcObj(Environment *envt, BuiltinProc proc, string name); + BuiltinProcObj(BuiltinProc proc, string name); Pair *call(Pair *args, Environment * &envt, Continuation * &cont, EvalObj ** &top_ptr); ReprCons *get_repr_cons(); |