1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-06-30 21:55:31 +02:00

Accept "char [200]" as valid typename.

This commit is contained in:
Alain Magloire 2003-06-03 20:29:35 +00:00
parent 2334920663
commit 6c689f0920

View file

@ -312,8 +312,19 @@ public class GDBTypeParser {
} else if (tokenType == NAME) {
// Useless we do not need the name of the variable
name = " " + token;
} else if (tokenType == PARENS) {
prependChild(GDBType.FUNCTION);
} else if (tokenType == BRACKETS) {
int len = 0;
if (token.length() > 0) {
try {
len = Integer.parseInt(token);
} catch (NumberFormatException e) {
}
}
prependChild(GDBType.ARRAY, len);
} else {
// FIXME: another oops bad declaration
// oops bad declaration ?
return;
}