mirror of
https://github.com/reactos/reactos.git
synced 2025-05-25 12:14:32 +00:00
[SPEC2DEF] Implement support for negated architecture
This is used by wine spec files.
This commit is contained in:
parent
d55ca68f7d
commit
7b2bb7ecc8
1 changed files with 15 additions and 0 deletions
|
@ -1072,9 +1072,24 @@ ParseFile(char* pcStart, FILE *fileDest, unsigned *cExports)
|
||||||
/* Look if we are included */
|
/* Look if we are included */
|
||||||
do
|
do
|
||||||
{
|
{
|
||||||
|
int negated = 0, match = 0;
|
||||||
|
|
||||||
pc++;
|
pc++;
|
||||||
|
|
||||||
|
/* Check for negated case */
|
||||||
|
if (*pc == '!')
|
||||||
|
{
|
||||||
|
negated = 1;
|
||||||
|
pc++;
|
||||||
|
}
|
||||||
|
|
||||||
if (CompareToken(pc, pszArchString) ||
|
if (CompareToken(pc, pszArchString) ||
|
||||||
CompareToken(pc, pszArchString2))
|
CompareToken(pc, pszArchString2))
|
||||||
|
{
|
||||||
|
match = 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (match != negated)
|
||||||
{
|
{
|
||||||
included = 1;
|
included = 1;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue