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_attrs.c,1.17,1.18


From: Rhys Weatherley <address@hidden>
Subject: [Dotgnu-pnet-commits] CVS: pnet/cscc/csharp cs_attrs.c,1.17,1.18
Date: Wed, 26 Feb 2003 18:23:28 -0500

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

Modified Files:
        cs_attrs.c 
Log Message:


Add a hack to recognise "System.AttributeUsage" as
"System.AttributeUsageAttribute".


Index: cs_attrs.c
===================================================================
RCS file: /cvsroot/dotgnu-pnet/pnet/cscc/csharp/cs_attrs.c,v
retrieving revision 1.17
retrieving revision 1.18
diff -C2 -r1.17 -r1.18
*** cs_attrs.c  21 Feb 2003 04:30:03 -0000      1.17
--- cs_attrs.c  26 Feb 2003 23:23:25 -0000      1.18
***************
*** 244,247 ****
--- 244,258 ----
        int skipConst;
  
+       /* Hack: recognize "System.AttributeUsage" and add "Attribute".
+          This doesn't solve all "ends in Attribute and lives in a namespace"
+          problems, but gets rid of a particularly annoying one until a better
+          solution can be devised */
+       if(!strcmp(ILQualIdentName(attr->name, 0), "System.AttributeUsage"))
+       {
+               ((ILNode_QualIdent *)(attr->name))->right =
+                       ILNode_Identifier_create
+                               (ILInternString("AttributeUsageAttribute", 
-1).string);
+       }
+ 
        /* Try the attribute name without "Attribute" first */
        nameNode = attr->name;





reply via email to

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