mirror of
https://github.com/reactos/reactos.git
synced 2026-05-31 08:17:09 +08:00
[SPEC2DEF] Implement support for negated architecture
This is used by wine spec files.
This commit is contained in:
@@ -1072,9 +1072,24 @@ ParseFile(char* pcStart, FILE *fileDest, unsigned *cExports)
|
||||
/* Look if we are included */
|
||||
do
|
||||
{
|
||||
int negated = 0, match = 0;
|
||||
|
||||
pc++;
|
||||
|
||||
/* Check for negated case */
|
||||
if (*pc == '!')
|
||||
{
|
||||
negated = 1;
|
||||
pc++;
|
||||
}
|
||||
|
||||
if (CompareToken(pc, pszArchString) ||
|
||||
CompareToken(pc, pszArchString2))
|
||||
{
|
||||
match = 1;
|
||||
}
|
||||
|
||||
if (match != negated)
|
||||
{
|
||||
included = 1;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user