[SPEC2DEF] Implement support for negated architecture

This is used by wine spec files.
This commit is contained in:
Timo Kreuzer 2024-06-03 10:26:02 +03:00
parent d55ca68f7d
commit 7b2bb7ecc8

View File

@ -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;
}