Add C++ as a separate language.
Also, fix a C++ problem when looking for methods in super-classes. (There was confusion between base and derived types.)
This commit is contained in:
parent
4906534f1f
commit
545af6ce07
5 changed files with 77 additions and 15 deletions
|
@ -1644,11 +1644,19 @@ DEFUN(end_symtab, (filename, language), char *filename AND long language)
|
|||
symtab -> line_charpos = 0;
|
||||
|
||||
/* FIXME: The following may need to be expanded for other languages */
|
||||
if (language == LANG_C89 || language == LANG_C)
|
||||
switch (language)
|
||||
{
|
||||
symtab -> language = language_c;
|
||||
case LANG_C89:
|
||||
case LANG_C:
|
||||
symtab -> language = language_c;
|
||||
break;
|
||||
case LANG_C_PLUS_PLUS:
|
||||
symtab -> language = language_cplus;
|
||||
break;
|
||||
default:
|
||||
;
|
||||
}
|
||||
|
||||
|
||||
/* Link the new symtab into the list of such. */
|
||||
symtab -> next = symtab_list;
|
||||
symtab_list = symtab;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue