don't seg when in traditional mode and @ is seen

This commit is contained in:
Bill Currie 2004-01-21 21:43:31 +00:00
parent 160a2af756
commit e63b205fd2

View file

@ -370,7 +370,8 @@ type_or_name (char *token)
} }
keyword = Hash_Find (keyword_tab, token); keyword = Hash_Find (keyword_tab, token);
if (keyword) { if (keyword) {
if (token[0] == '@' && !class_Class.super_class) if (!options.traditional && token[0] == '@'
&& !class_Class.super_class)
class_init (); class_init ();
yylval.type = keyword->type; yylval.type = keyword->type;
return keyword->value; return keyword->value;