On Mon, Feb 25, 2019 at 5:06 PM Timur Tabi <[email protected]> wrote:
> Sorry, bad copy-paste.  I meant
>
> #define FLD_SET_DRF(a, b, c, d, e)             1

Ok, now I found something weird.

If I put the #define on the top of the source file (test.c), it doesn't work.

But if I put it in a header file specified by --macro-file-builtins,
it does work.

So it seems to me that spatch is parsing the macros in the
--macro-file-builtins header file differently than the macros in the
source file itself.  That doesn't explain why it doesn't like 0080,
though.

Anyway, I seem to be unblocked for now, but this might be something to
look into.
_______________________________________________
Cocci mailing list
[email protected]
https://systeme.lip6.fr/mailman/listinfo/cocci

Reply via email to