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

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

[Dotgnu-pnet-commits] CVS: pnet/cscc/csharp cs_gather.c,1.23,1.24


From: Gopal.V <address@hidden>
Subject: [Dotgnu-pnet-commits] CVS: pnet/cscc/csharp cs_gather.c,1.23,1.24
Date: Wed, 13 Nov 2002 12:18:06 -0500

Update of /cvsroot/dotgnu-pnet/pnet/cscc/csharp
In directory subversions:/tmp/cvs-serv20640/cscc/csharp

Modified Files:
        cs_gather.c 
Log Message:
My: Attribute => MyAttribute: Attribute


Index: cs_gather.c
===================================================================
RCS file: /cvsroot/dotgnu-pnet/pnet/cscc/csharp/cs_gather.c,v
retrieving revision 1.23
retrieving revision 1.24
diff -C2 -r1.23 -r1.24
*** cs_gather.c 5 Nov 2002 00:25:20 -0000       1.23
--- cs_gather.c 13 Nov 2002 17:18:04 -0000      1.24
***************
*** 90,93 ****
--- 90,95 ----
        const char *name;
        const char *namespace;
+       const char *baseName;
+       int namelen;
        int numBases;
        ILClass **baseList;
***************
*** 180,183 ****
--- 182,214 ----
                {
                        baseNode = baseNodeList;
+               }
+ 
+               if(yyisa(baseNode,ILNode_Identifier))
+               {
+                       baseName=ILQualIdentName(baseNode,0);
+               }
+               else if(yyisa(baseNode,ILNode_QualIdent))
+               {
+                       
baseName=ILQualIdentName(((ILNode_QualIdent*)baseNode)->right,0);
+               }
+               else
+               {
+                       baseName=0;
+               }
+       
+               if(baseName)
+               {
+                       namelen=strlen(baseName);
+                       if(namelen >= 9 && strcmp(baseName + namelen - 9, 
"Attribute") == 0)
+                       {
+                               namelen=strlen(name);
+                               if(namelen < 9 || strcmp(name + namelen - 9, 
"Attribute") != 0)
+                               {
+                                       defn->name = ILInternAppendedString
+                                                                       
(ILInternString(defn->name, namelen),
+                                                                        
ILInternString("Attribute", 9)).string;
+                                       name=defn->name;
+                               }
+                       }
                }
  





reply via email to

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