diff options
author | Matthias Andreas Benkard <matthias@benkard.de> | 2008-06-12 20:27:29 +0200 |
---|---|---|
committer | Matthias Andreas Benkard <matthias@benkard.de> | 2008-06-12 20:27:29 +0200 |
commit | 508b4902f6e6df7387b617a67c6fe5e248ee2c38 (patch) | |
tree | c8eb79aa2cc5d8c63e9f41440055e7be92bedfcb /MLKDynamicContext.h | |
parent | a6955cf42df675518514e4da54f36174de9eb736 (diff) |
Add class MLKDynamicContext.
Diffstat (limited to 'MLKDynamicContext.h')
-rw-r--r-- | MLKDynamicContext.h | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/MLKDynamicContext.h b/MLKDynamicContext.h new file mode 100644 index 0000000..f515901 --- /dev/null +++ b/MLKDynamicContext.h @@ -0,0 +1,26 @@ +/* -*- mode: objc; coding: utf-8 -*- */ +/* Copyright 2008, Matthias Benkard. */ + +@class MLKClosure, MLKEnvironment, NSLinkedList, NSMutableDictionary, NSString; + + +@interface MLKDynamicContext +{ + MLKEnvironment *_conditionHandlers; + MLKEnvironment *_restarts; + MLKClosure *_currentConditionHandler; + MLKEnvironment *_environment; + MLKDynamicContext *_parent; +} + +-(MLKDynamicContext *) initWithParent:(MLKDynamicContext *)aContext + variables:(NSDictionary *)vars + handlers:(NSDictionary *)handlers + restarts:(NSDictionary *)restarts + currentHandler:(MLKClosure *)handler; + +-(MLKDynamicContext *) pushContext; + ++(MLKDynamicContext *) currentContext; ++(MLKDynamicContext *) popContext; +@end |