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



On Thu, 21 Mar 2019, Johannes Berg wrote:

> 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.

OK, how about ... before and after?

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

  reply	other threads:[~2019-03-21 19:33 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
2019-03-21 19:33     ` Julia Lawall [this message]
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=alpine.DEB.2.21.1903212033190.2491@hadrien \
    --to=julia.lawall@lip6.fr \
    --cc=cocci@systeme.lip6.fr \
    --cc=johannes@sipsolutions.net \
    /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).