# HG changeset patch # User Mario de Sousa # Date 1338830531 -3600 # Node ID 044238931066d482c1087b0773f64882b048b49e # Parent 30a327be60d465afa4181984a514a9c424a4b14b Change return data type of array_dimension_iterator_c.next() diff -r 30a327be60d4 -r 044238931066 absyntax_utils/array_dimension_iterator.cc --- 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; diff -r 30a327be60d4 -r 044238931066 absyntax_utils/array_dimension_iterator.hh --- 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: