mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-29 16:01:38 +00:00
bugfix for attribute parsing
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32791 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
41bc49cedf
commit
fd7c0f05a3
2 changed files with 22 additions and 0 deletions
|
@ -1328,6 +1328,23 @@ recheck:
|
|||
[self skipStatementLine];
|
||||
goto fail;
|
||||
}
|
||||
if ([s isEqual: @"__attribute__"] == YES)
|
||||
{
|
||||
if ([self skipSpaces] < length && buffer[pos] == '(')
|
||||
{
|
||||
unsigned start = pos;
|
||||
NSString *attr;
|
||||
|
||||
[self skipBlock]; // Skip the attributes
|
||||
attr = [NSString stringWithCharacters: buffer + start
|
||||
length: pos - start];
|
||||
}
|
||||
else
|
||||
{
|
||||
[self log: @"strange format __attribute__"];
|
||||
}
|
||||
continue;
|
||||
}
|
||||
if ([s isEqualToString: @"GS_EXPORT"] == YES)
|
||||
{
|
||||
s = @"extern";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue