Change return data type of array_dimension_iterator_c.next()
authorMario de Sousa <msousa@fe.up.pt>
Mon, 04 Jun 2012 18:22:11 +0100
changeset 562 044238931066
parent 561 30a327be60d4
child 563 61410284a9b4
Change return data type of array_dimension_iterator_c.next()
absyntax_utils/array_dimension_iterator.cc
absyntax_utils/array_dimension_iterator.hh
--- a/absyntax_utils/array_dimension_iterator.cc	Wed May 16 00:15:32 2012 +0200
+++ b/absyntax_utils/array_dimension_iterator.cc	Mon Jun 04 18:22:11 2012 +0100
@@ -102,7 +102,7 @@
  *
  * Returns the subrange symbol!
  */
-symbol_c *array_dimension_iterator_c::next(void) {
+subrange_c *array_dimension_iterator_c::next(void) {
   void *res = array_specification->accept(*this);
   if (res == NULL) 
     return NULL;
--- a/absyntax_utils/array_dimension_iterator.hh	Wed May 16 00:15:32 2012 +0200
+++ b/absyntax_utils/array_dimension_iterator.hh	Mon Jun 04 18:22:11 2012 +0100
@@ -54,7 +54,7 @@
     /* a pointer to the array_specification_c currently being analyzed */
     symbol_c *array_specification;
     /* used when called to iterate() for a parameter */
-    symbol_c *current_array_dimension;
+    subrange_c *current_array_dimension;
 
   private:
     void* iterate_list(list_c *list);
@@ -64,7 +64,7 @@
     void reset(void);
 
     /* initialize the iterator object.
-     * We must be given a reference to a case_list_c that will be analyzed...
+     * We must be given a reference to a array_specification_c that will be analyzed...
      */
     array_dimension_iterator_c(symbol_c *symbol);
 
@@ -75,7 +75,8 @@
      *
      * Returns the subrange symbol!
      */
-    symbol_c *next(void);
+    subrange_c *next(void);
+    
 
     private: