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

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

[dotgnu-pnet-commits] pnet ChangeLog cscc/csharp/cs_grammar.y cscc/cs...


From: Klaus Treichel
Subject: [dotgnu-pnet-commits] pnet ChangeLog cscc/csharp/cs_grammar.y cscc/cs...
Date: Wed, 15 Apr 2009 16:55:45 +0000

CVSROOT:        /cvsroot/dotgnu-pnet
Module name:    pnet
Changes by:     Klaus Treichel <ktreichel>      09/04/15 16:55:45

Modified files:
        .              : ChangeLog 
        cscc/csharp    : cs_grammar.y cs_internal.h 

Log message:
        Move declaration of the new structs to cs_internal.h

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/pnet/ChangeLog?cvsroot=dotgnu-pnet&r1=1.3614&r2=1.3615
http://cvs.savannah.gnu.org/viewcvs/pnet/cscc/csharp/cs_grammar.y?cvsroot=dotgnu-pnet&r1=1.90&r2=1.91
http://cvs.savannah.gnu.org/viewcvs/pnet/cscc/csharp/cs_internal.h?cvsroot=dotgnu-pnet&r1=1.27&r2=1.28

Patches:
Index: ChangeLog
===================================================================
RCS file: /cvsroot/dotgnu-pnet/pnet/ChangeLog,v
retrieving revision 1.3614
retrieving revision 1.3615
diff -u -b -r1.3614 -r1.3615
--- ChangeLog   15 Apr 2009 16:30:24 -0000      1.3614
+++ ChangeLog   15 Apr 2009 16:55:45 -0000      1.3615
@@ -7,6 +7,8 @@
        Change Grammar to allow modifiers for property accessors in classes and
        structs. Allow attributes in property accessors in interfaces.
 
+       * cscc/csharp/cs_internal.h: Add structs for handling of accessors.
+
 2009-04-02  Klaus Treichel  <address@hidden>
 
        * ilasm/ilasm_grammar.y (TypeSpecification): Convert a primitive type to

Index: cscc/csharp/cs_grammar.y
===================================================================
RCS file: /cvsroot/dotgnu-pnet/pnet/cscc/csharp/cs_grammar.y,v
retrieving revision 1.90
retrieving revision 1.91
diff -u -b -r1.90 -r1.91
--- cscc/csharp/cs_grammar.y    15 Apr 2009 16:30:35 -0000      1.90
+++ cscc/csharp/cs_grammar.y    15 Apr 2009 16:55:45 -0000      1.91
@@ -61,25 +61,6 @@
 int CSMetadataOnly = 0;
 
 /*
- * some structs requited by the grammar and some helper functions.
- */
-typedef struct _Accessor
-{
-       int                     present;        /* 0 if the acessor is not 
present 1 otherwise */
-       ILUInt32        modifiers;      /* Accessor modifiers */
-       ILNode     *attributes; /* Attributes for the acessor */
-       ILNode     *body;               /* Body of the accessor */
-       char       *filename;
-       long            linenum;
-} Accessor;
-
-typedef struct _PropertyAccessors
-{
-       Accessor getAccessor;
-       Accessor setAccessor;
-} PropertyAccessors;
-
-/*
  * Global state used by the parser.
  */
 static unsigned long NestingLevel = 0;
@@ -732,7 +713,7 @@
  * Create the methods needed by a property definition.
  */
 static void CreatePropertyMethods(ILNode_PropertyDeclaration *property,
-                                                                 
PropertyAccessors *accessors)
+                                                                 struct 
PropertyAccessors *accessors)
 {
        ILNode_MethodDeclaration *decl;
        ILNode *name;
@@ -1141,9 +1122,8 @@
        }                                       memberHeader;
        struct ArrayRanks       arrayRanks;
        struct ArrayType        arrayType;
-       Accessor                        accessor;
-       PropertyAccessors       propertyAccessors;
-
+       struct Accessor         accessor;
+       struct PropertyAccessors        propertyAccessors;
 }
 
 /*

Index: cscc/csharp/cs_internal.h
===================================================================
RCS file: /cvsroot/dotgnu-pnet/pnet/cscc/csharp/cs_internal.h,v
retrieving revision 1.27
retrieving revision 1.28
diff -u -b -r1.27 -r1.28
--- cscc/csharp/cs_internal.h   19 Oct 2008 16:45:18 -0000      1.27
+++ cscc/csharp/cs_internal.h   15 Apr 2009 16:55:45 -0000      1.28
@@ -65,6 +65,25 @@
 };
 
 /*
+ * Structures for accessors.
+ */
+struct Accessor
+{
+       int                     present;        /* 0 if the acessor is not 
present 1 otherwise */
+       ILUInt32        modifiers;      /* Accessor modifiers */
+       ILNode     *attributes; /* Attributes for the acessor */
+       ILNode     *body;               /* Body of the accessor */
+       char       *filename;
+       long            linenum;
+};
+
+struct PropertyAccessors
+{
+       struct Accessor getAccessor;
+       struct Accessor setAccessor;
+};
+
+/*
  * Modifier mask bits.
  */
 #define        CS_MODIFIER_PUBLIC                      (1<<0)




reply via email to

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