diff dmd/scope.c @ 1141:f99a3b393c03

Reorganize EnclosingHandlers to require less changes to the frontend and allow us to implement the synchronized storage class for functions.
author Christian Kamm <kamm incasoftware de>
date Tue, 24 Mar 2009 21:18:18 +0100
parents b30fe7e1dbb9
children def7a1d494fd
line wrap: on
line diff
--- a/dmd/scope.c	Tue Mar 24 14:34:16 2009 +0100
+++ b/dmd/scope.c	Tue Mar 24 21:18:18 2009 +0100
@@ -52,8 +52,8 @@
     this->enclosing = NULL;
     this->parent = NULL;
     this->sw = NULL;
-    this->tf = NULL;
-    this->tfOfTry = NULL;
+    this->enclosingFinally = NULL;
+    this->enclosingScopeExit = NULL;
     this->tinst = NULL;
     this->sbreak = NULL;
     this->scontinue = NULL;
@@ -91,8 +91,8 @@
     this->scopesym = NULL;
     this->sd = NULL;
     this->sw = enclosing->sw;
-    this->tf = enclosing->tf;
-    this->tfOfTry = enclosing->tfOfTry;
+    this->enclosingFinally = enclosing->enclosingFinally;
+    this->enclosingScopeExit = enclosing->enclosingScopeExit;
     this->tinst = enclosing->tinst;
     this->sbreak = enclosing->sbreak;
     this->scontinue = enclosing->scontinue;