dotgnu-pnet-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Dotgnu-pnet-commits] CVS: pnet/ilasm ilasm_build.c,1.17,1.18


From: Rhys Weatherley <address@hidden>
Subject: [Dotgnu-pnet-commits] CVS: pnet/ilasm ilasm_build.c,1.17,1.18
Date: Fri, 03 Jan 2003 07:34:17 -0500

Update of /cvsroot/dotgnu-pnet/pnet/ilasm
In directory subversions:/tmp/cvs-serv18833/ilasm

Modified Files:
        ilasm_build.c 
Log Message:


ILAsmBuildNewClass: translate "private" and "public" into "nested private"
and "nested public" when a nested class is being defined.


Index: ilasm_build.c
===================================================================
RCS file: /cvsroot/dotgnu-pnet/pnet/ilasm/ilasm_build.c,v
retrieving revision 1.17
retrieving revision 1.18
diff -C2 -r1.17 -r1.18
*** ilasm_build.c       13 Dec 2002 00:33:30 -0000      1.17
--- ilasm_build.c       3 Jan 2003 12:34:15 -0000       1.18
***************
*** 315,318 ****
--- 315,332 ----
                        ILAsmOutOfMemory();
                }
+ 
+               /* Translate "private" and "public" into their nested versions 
*/
+               if((attrs & IL_META_TYPEDEF_VISIBILITY_MASK) ==
+                               IL_META_TYPEDEF_NOT_PUBLIC)
+               {
+                       attrs = (attrs & ~IL_META_TYPEDEF_VISIBILITY_MASK) |
+                                       IL_META_TYPEDEF_NESTED_PRIVATE;
+               }
+               else if((attrs & IL_META_TYPEDEF_VISIBILITY_MASK) ==
+                               IL_META_TYPEDEF_PUBLIC)
+               {
+                       attrs = (attrs & ~IL_META_TYPEDEF_VISIBILITY_MASK) |
+                                       IL_META_TYPEDEF_NESTED_PUBLIC;
+               }
        }
  





reply via email to

[Prev in Thread] Current Thread [Next in Thread]