Commit e015a852 authored by samuel's avatar samuel
Browse files

* cp-demangle.c (demangle_type_ptr): Increment position past

	pointer and reference characters.


git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@36151 138bc75d-0d04-0410-961f-82ee72b054a4
parent 2b6805b4
2000-09-04 Alex Samuel <samuel@codesourcery.com>
* cp-demangle.c (demangle_type_ptr): Increment position past
pointer and reference characters.
2000-09-04 Alex Samuel <samuel@codesourcery.com> 2000-09-04 Alex Samuel <samuel@codesourcery.com>
* cp-demangle.c (demangle_nv_offset): New function. * cp-demangle.c (demangle_nv_offset): New function.
......
...@@ -2015,6 +2015,9 @@ demangle_type_ptr (dm, insert_pos, substitution_start) ...@@ -2015,6 +2015,9 @@ demangle_type_ptr (dm, insert_pos, substitution_start)
/* Insert an asterisk where we're told to; it doesn't /* Insert an asterisk where we're told to; it doesn't
necessarily go at the end. */ necessarily go at the end. */
RETURN_IF_ERROR (result_insert_char (dm, *insert_pos, '*')); RETURN_IF_ERROR (result_insert_char (dm, *insert_pos, '*'));
/* The next (outermost) pointer or reference character should go
after this one. */
++(*insert_pos);
} }
else if (next == 'R') else if (next == 'R')
{ {
...@@ -2026,6 +2029,9 @@ demangle_type_ptr (dm, insert_pos, substitution_start) ...@@ -2026,6 +2029,9 @@ demangle_type_ptr (dm, insert_pos, substitution_start)
/* Insert an ampersand where we're told to; it doesn't /* Insert an ampersand where we're told to; it doesn't
necessarily go at the end. */ necessarily go at the end. */
RETURN_IF_ERROR (result_insert_char (dm, *insert_pos, '&')); RETURN_IF_ERROR (result_insert_char (dm, *insert_pos, '&'));
/* The next (outermost) pointer or reference character should go
after this one. */
++(*insert_pos);
} }
else if (next == 'M') else if (next == 'M')
{ {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment