Coccinelle Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Cocci] spatch issue with C struct initialization
@ 2014-04-03  8:30 Marcel Apfelbaum
  2014-04-03 10:16 ` Julia Lawall
  0 siblings, 1 reply; 16+ messages in thread
From: Marcel Apfelbaum @ 2014-04-03  8:30 UTC (permalink / raw)
  To: cocci

Hi,
I tried to use the coccinellery/doubleinit/doubleinit.cocci script
using the latest spatch version (1.0.0-rc20, I tried prev versions too).

I received the following error:
init_defs_builtins: /usr/local/share/coccinelle/standard.h
400 401
Fatal error: exception Failure("minus: parse error: 
 = File "coccinellery/doubleinit/doubleinit.cocci", line 17, column 22,  charpos = 400
    around = '.', whole content = struct I s =@p0 { ... .fld at p = E, ...};
")

Am I missing something, am I doing something wrong?

I need the following construct to work:
struct I s =
{
...
.fld = E,
...
};

Any help will be appreciated,
Thanks,
Marcel

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

end of thread, other threads:[~2014-04-22  8:21 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-04-03  8:30 [Cocci] spatch issue with C struct initialization Marcel Apfelbaum
2014-04-03 10:16 ` Julia Lawall
2014-04-03 13:31   ` Marcel Apfelbaum
2014-04-03 14:19     ` Julia Lawall
2014-04-03 14:29       ` Marcel Apfelbaum
2014-04-03 14:33         ` Julia Lawall
2014-04-03 14:38           ` Marcel Apfelbaum
2014-04-04 11:21         ` Julia Lawall
2014-04-05 15:01           ` Michael Stefaniuc
2014-04-05 15:17             ` Julia Lawall
2014-04-06  6:21               ` [Cocci] Handling of compound literals? SF Markus Elfring
2014-04-06  7:45               ` [Cocci] spatch issue with C struct initialization Marcel Apfelbaum
2014-04-06 10:57                 ` Julia Lawall
2014-04-20 20:29                 ` Julia Lawall
2014-04-22  8:21                   ` Marcel Apfelbaum
2014-04-03 14:22     ` Julia Lawall

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox