cocci.inria.fr archive mirror
 help / color / mirror / Atom feed
From: Johannes Berg <johannes@sipsolutions.net>
To: Julia Lawall <julia.lawall@lip6.fr>
Cc: cocci@systeme.lip6.fr
Subject: Re: [Cocci] modifying C99 initializers?
Date: Thu, 21 Mar 2019 15:04:09 +0100	[thread overview]
Message-ID: <df8e76baa2c2d7b5f483a27b23d1ff5b0dee54c0.camel@sipsolutions.net> (raw)
In-Reply-To: <alpine.DEB.2.20.1903211439590.4279@hadrien>

On Thu, 2019-03-21 at 14:40 +0100, Julia Lawall wrote:
> 
> > @@
> > identifier list;
> > @@
> > struct my_struct list[] = {
> > <...
> >  {
> > +       .field = 27,
> >  },
> > ...>
> > };

> Try without the <... ...>.

I did :-)

If I just remove the <... ...> then it only changes an array that has a
single entry. If I add ... at the end, it only changes the first entry.

johannes

_______________________________________________
Cocci mailing list
Cocci@systeme.lip6.fr
https://systeme.lip6.fr/mailman/listinfo/cocci

  reply	other threads:[~2019-03-21 14:04 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-03-21 13:15 [Cocci] modifying C99 initializers? Johannes Berg
2019-03-21 13:40 ` Julia Lawall
2019-03-21 14:04   ` Johannes Berg [this message]
2019-03-21 19:33     ` Julia Lawall
2019-03-21 20:08       ` Johannes Berg
2019-03-21 20:22         ` 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=df8e76baa2c2d7b5f483a27b23d1ff5b0dee54c0.camel@sipsolutions.net \
    --to=johannes@sipsolutions.net \
    --cc=cocci@systeme.lip6.fr \
    --cc=julia.lawall@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).