* ada-lang.c (ada_index_type): Update comment.

This commit is contained in:
Ulrich Weigand 2009-06-29 17:26:29 +00:00
parent 1eea4ebd85
commit dd19d49e4b
2 changed files with 8 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2009-06-29 Ulrich Weigand <uweigand@de.ibm.com>
* ada-lang.c (ada_index_type): Update comment.
2009-06-29 Ulrich Weigand <uweigand@de.ibm.com>
* ada-lang.c (ada_index_type): Make static. Add NAME argument.

View File

@ -2408,7 +2408,10 @@ ada_array_element_type (struct type *type, int nindices)
}
/* The type of nth index in arrays of given type (n numbering from 1).
Does not examine memory. */
Does not examine memory. Throws an error if N is invalid or TYPE
is not an array type. NAME is the name of the Ada attribute being
evaluated ('range, 'first, 'last, or 'length); it is used in building
the error message. */
static struct type *
ada_index_type (struct type *type, int n, const char *name)