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_grammar.y,1.53,1.54


From: Rhys Weatherley <address@hidden>
Subject: [Dotgnu-pnet-commits] CVS: pnet/cscc/csharp cs_grammar.y,1.53,1.54
Date: Sat, 22 Feb 2003 06:21:03 -0500

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

Modified Files:
        cs_grammar.y 
Log Message:


Add IAsyncResult and AsyncCallback to the builtin library.


Index: cs_grammar.y
===================================================================
RCS file: /cvsroot/dotgnu-pnet/pnet/cscc/csharp/cs_grammar.y,v
retrieving revision 1.53
retrieving revision 1.54
diff -C2 -r1.53 -r1.54
*** cs_grammar.y        22 Feb 2003 07:21:59 -0000      1.53
--- cs_grammar.y        22 Feb 2003 11:21:01 -0000      1.54
***************
*** 2648,2651 ****
--- 2648,2668 ----
                        }
        | TypeFormalList ',' Identifier {
+                               /* Check for duplicates in the list */
+                               ILNode_ListIter iter;
+                               ILNode *node;
+                               ILNode_ListIter_Init(&iter, $1);
+                               while((node = ILNode_ListIter_Next(&iter)) != 0)
+                               {
+                                       if(!strcmp(ILQualIdentName(node, 0),
+                                                          ILQualIdentName($3, 
0)))
+                                       {
+                                               
CCErrorOnLine(yygetfilename($3), yygetlinenum($3),
+                                                 "`%s' declared multiple times 
in generic parameters",
+                                                 ILQualIdentName($3, 0));
+                                               break;
+                                       }
+                               }
+ 
+                               /* Add the identifier to the list */
                                ILNode_List_Add($1, $3);
                                $$ = $1;





reply via email to

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