All of lore.kernel.org
 help / color / mirror / Atom feed
* [Cocci] Octal constants confuse spatch
@ 2019-02-25 22:56 Timur Tabi
  2019-02-25 23:06 ` Timur Tabi
  0 siblings, 1 reply; 4+ messages in thread
From: Timur Tabi @ 2019-02-25 22:56 UTC (permalink / raw)
  To: cocci

The following test confuses spatch:

void func(void)
{
    x = FLD_SET_DRF(0080, 1, 2, 3, 4);

    DBG_PRINTF((DBG_MODULE_PERFCTL, DBG_LEVEL_INFO, "hello\n"));
}

This gives me:

ERROR-RECOV: found sync '}' at line 7

If I change the "0080" to "80", it works fine.  I tried adding this line:

#define FLD_TEST_DRF(a, b, c, d, e)             1

But it didn't help.
_______________________________________________
Cocci mailing list
Cocci@systeme.lip6.fr
https://systeme.lip6.fr/mailman/listinfo/cocci

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2019-02-26  6:25 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-02-25 22:56 [Cocci] Octal constants confuse spatch Timur Tabi
2019-02-25 23:06 ` Timur Tabi
2019-02-25 23:22   ` Timur Tabi
2019-02-26  6:25     ` Julia Lawall

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.