[merge from gcc]
authorDJ Delorie <dj@redhat.com>
Mon, 23 Oct 2000 15:30:54 +0000 (15:30 +0000)
committerDJ Delorie <dj@redhat.com>
Mon, 23 Oct 2000 15:30:54 +0000 (15:30 +0000)
commit59666b35a830eed6cf0871b0cdcc284d8afcc0ed
treedc13378597a904fcd4aef1f940cc6e3e6fd87f4c
parentc67b4c45e2336bcd36a5a8dd7ffee7866ce0ccce
[merge from gcc]
* cp-demangle.c (string_list_def): Add caret_position and comments.
(result_caret_pos): New macro.
(result_append_string): Rename to...
(result_add_string): ... this, and insert at caret position.
Rename throughout.
(result_append): Rename to...
(result_add): ... this, and insert at caret position.  Rename
throughout.
(result_append_char): Rename to...
(result_add_char): ... this, and insert at caret position.  Rename
throughout.
(result_append_space): Remove.
(string_list_new): Initialize caret position.
(result_add_separated_char): Use caret position.
(result_get_caret): New funtion.
(result_set_caret): Likewise.
(result_shift_caret): Likewise.
(result_previous_char_is_space): Likewise.
(substitution_start): Use caret position.
(substitution_add): Likewise.
(demangling_new): Initialize caret position.
(demangle_encoding): Use caret position.
(demanglin_nested_name): Put CV qualifiers after name.
(demangle_type_ptr): Use switch statement.  Handle pointers to
arrays.  Don't use result_append_space.  Use caret position.
(demangle_type): Emit CV qualifiers after underlying type.  Adjust
call to demangle_array_type.
(demangle_array_type): Add parameter to handle pointers to arrays.
libiberty/ChangeLog
libiberty/cp-demangle.c