From: marcel.a@redhat.com (Marcel Apfelbaum)
To: cocci@systeme.lip6.fr
Subject: [Cocci] spatch issue with C struct initialization
Date: Thu, 03 Apr 2014 11:30:44 +0300 [thread overview]
Message-ID: <1396513844.24348.13.camel@localhost.localdomain> (raw)
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
next reply other threads:[~2014-04-03 8:30 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-04-03 8:30 Marcel Apfelbaum [this message]
2014-04-03 10:16 ` [Cocci] spatch issue with C struct initialization 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
-- strict thread matches above, loose matches on Subject: below --
2014-04-07 10:37 Nic Volanschi (R&D)
2014-04-07 12:54 ` Julia Lawall
2014-04-07 13:27 ` Nic Volanschi (R&D)
2014-04-07 13:48 ` Julia Lawall
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1396513844.24348.13.camel@localhost.localdomain \
--to=marcel.a@redhat.com \
--cc=cocci@systeme.lip6.fr \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.