[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Dotgnu-pnet-commits] CVS: pnet/codegen cg_scope.c,1.14,1.15
From: |
Gopal.V <address@hidden> |
Subject: |
[Dotgnu-pnet-commits] CVS: pnet/codegen cg_scope.c,1.14,1.15 |
Date: |
Sat, 16 Nov 2002 09:56:21 -0500 |
Update of /cvsroot/dotgnu-pnet/pnet/codegen
In directory subversions:/tmp/cvs-serv5780/codegen
Modified Files:
cg_scope.c
Log Message:
circularity bug when compiling files which access the samenamespace
in a different localscope . Which means almost all the programs.
Index: cg_scope.c
===================================================================
RCS file: /cvsroot/dotgnu-pnet/pnet/codegen/cg_scope.c,v
retrieving revision 1.14
retrieving revision 1.15
diff -C2 -r1.14 -r1.15
*** cg_scope.c 16 Nov 2002 01:44:28 -0000 1.14
--- cg_scope.c 16 Nov 2002 14:56:19 -0000 1.15
***************
*** 527,540 ****
We must do this because the global "using" context will be
cleared at the end of the parse, but we need the information
! it contains after the parse */
! usingScope = ILScopeCreate(scope->info, scope);
! usingScope->using = scope->using;
! usingScope->lookup = UsingScope_Lookup;
!
if(attachScope)
{
! attachScope->parent=usingScope;
! usingScope=attachScope; /* insert the scope under usingScope */
}
/* Create a scope to hold the type itself */
--- 527,545 ----
We must do this because the global "using" context will be
cleared at the end of the parse, but we need the information
! it contains after the parse . The attachScope contains the
! alias information to which the namespaceref scopes are attached
! by the following code.*/
if(attachScope)
{
! usingScope=attachScope; /* reuse the attachScope for ->using */
! usingScope->parent=scope; /* attatch the attatchScope under
scope */
! }
! else
! {
! usingScope = ILScopeCreate(scope->info, scope);
}
+ usingScope->using = scope->using;
+ usingScope->lookup = UsingScope_Lookup;
+
/* Create a scope to hold the type itself */
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Dotgnu-pnet-commits] CVS: pnet/codegen cg_scope.c,1.14,1.15,
Gopal.V <address@hidden> <=