aboutsummaryrefslogtreecommitdiff
path: root/libiberty/cp-demangle.c
AgeCommit message (Collapse)AuthorFilesLines
2001-10-07merge from gccDJ Delorie1-3/+3
2001-08-09merge from gccDJ Delorie1-4/+20
2001-05-08merge from gccDJ Delorie1-3/+6
2001-03-23merge from gccDJ Delorie1-6/+2
2001-03-22* cp-demangle.c (string_list_delete): Don't forget to free theJim Blandy1-1/+1
actual contents of the string.
2001-03-20* libiberty/cp-demangle.c (struct demangling_def): New fields:Jim Blandy1-6/+114
is_constructor and is_destructor. (demangling_new): Initialize them. (demangle_ctor_dtor_name): Set them, if we detect a constructor or destructor. (demangle_v3_with_details, is_gnu_v3_mangled_ctor, is_gnu_v3_mangled_dtor): New functions. * include/demangle.h (enum gnu_v3_constructor_kinds, is_gnu_v3_mangled_ctor, enum gnu_v3_destructor_kinds, is_gnu_v3_mangled_dtor): New declarations.
2001-02-02merge from gccDJ Delorie1-15/+168
2000-12-05* cp-demangle.c (cplus_demangle_v3): Check that it's a v3 mangledDJ Delorie1-2/+10
name before allocating the dyn_string.
2000-12-05* cp-demangle.c: s/new_abi/v3/.DJ Delorie1-4/+4
* cplus-dem.c: Likewise. (current_demangling_style): Now auto_demangling. (cplus_demangle): Try v3 demangling if AUTO_DEMANGLING. (main): Use standard symbol chars for auto_demangling.
2000-10-23[merge from gcc]DJ Delorie1-173/+273
* 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.
2000-10-12merge from gcc repositoryDJ Delorie1-330/+647
2000-07-23 * cp-demangle.c, mkstemps.c: #include <sys/types.h>.Jeff Law1-0/+2
2000-07-20merge with gccJason Merrill1-276/+668
2000-06-15Synced with libiberty in the gcc repository.H.J. Lu1-0/+3015