diff options
author | Alex Samuel <samuel@codesourcery.com> | 2000-09-05 03:46:56 +0000 |
---|---|---|
committer | Alex Samuel <samuel@gcc.gnu.org> | 2000-09-05 03:46:56 +0000 |
commit | aee749cf8550d95404402bd47663c97f997b9ab6 (patch) | |
tree | f6c13cb553666b17d2c5a787f789832e232d339a /libiberty | |
parent | 92a16bbe7661a7b5a14e3c6b1644492aa529486f (diff) | |
download | gcc-aee749cf8550d95404402bd47663c97f997b9ab6.zip gcc-aee749cf8550d95404402bd47663c97f997b9ab6.tar.gz gcc-aee749cf8550d95404402bd47663c97f997b9ab6.tar.bz2 |
cp-demangle.c (demangle_type_ptr): Increment position past pointer and reference characters.
* cp-demangle.c (demangle_type_ptr): Increment position past
pointer and reference characters.
From-SVN: r36151
Diffstat (limited to 'libiberty')
-rw-r--r-- | libiberty/ChangeLog | 5 | ||||
-rw-r--r-- | libiberty/cp-demangle.c | 6 |
2 files changed, 11 insertions, 0 deletions
diff --git a/libiberty/ChangeLog b/libiberty/ChangeLog index 0a474a3..b848632 100644 --- a/libiberty/ChangeLog +++ b/libiberty/ChangeLog @@ -1,5 +1,10 @@ 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> + * cp-demangle.c (demangle_nv_offset): New function. (demangle_v_offset): Likewise. (demangle_call_offset): Likewise. diff --git a/libiberty/cp-demangle.c b/libiberty/cp-demangle.c index b4e55ee..2407c2b 100644 --- a/libiberty/cp-demangle.c +++ b/libiberty/cp-demangle.c @@ -2015,6 +2015,9 @@ demangle_type_ptr (dm, insert_pos, substitution_start) /* Insert an asterisk where we're told to; it doesn't necessarily go at the end. */ 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') { @@ -2026,6 +2029,9 @@ demangle_type_ptr (dm, insert_pos, substitution_start) /* Insert an ampersand where we're told to; it doesn't necessarily go at the end. */ 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') { |