mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-23 00:41:02 +00:00
Fixup for __attribute__ before variable name
This commit is contained in:
parent
3b3687afb3
commit
69dbfb6b43
1 changed files with 10 additions and 0 deletions
|
@ -1925,6 +1925,16 @@ another:
|
|||
[d setObject: @"Variables" forKey: @"Kind"];
|
||||
}
|
||||
|
||||
/* If there is an attribute before the variable name we must ignore it.
|
||||
*/
|
||||
if ([s isEqualToString: @"__attribute__"])
|
||||
{
|
||||
if ([self skipSpaces] < length && buffer[pos] == '(')
|
||||
{
|
||||
[self skipBlock]; // Skip the attributes
|
||||
}
|
||||
}
|
||||
|
||||
if (s == nil)
|
||||
{
|
||||
[self parseDeclaratorInto: d];
|
||||
|
|
Loading…
Reference in a new issue