From: Julia Lawall <julia.lawall@inria.fr>
To: Johannes Berg <johannes@sipsolutions.net>
Cc: cocci@systeme.lip6.fr
Subject: Re: [Cocci] moving variable declarations up
Date: Thu, 18 Jun 2020 17:25:58 +0200 (CEST) [thread overview]
Message-ID: <alpine.DEB.2.22.394.2006181724411.2367@hadrien> (raw)
In-Reply-To: <63bfef4128a756c9e5abc1f8d5637443162f0530.camel@sipsolutions.net>
On Wed, 17 Jun 2020, Johannes Berg wrote:
> On Wed, 2020-06-17 at 23:19 +0200, Johannes Berg wrote:
> > On Wed, 2020-06-17 at 23:15 +0200, Julia Lawall wrote:
> > > > +T x;
> > >
> > > Change the + to ++
>
> Heh, something funny happened
>
> + u16 *foo;
> + u16[2] bar;
>
> ... some code ...
>
> -u16 *foo;
> -u16 *bar[2];
>
>
> What happened to the array index?
>
> I guess ... at some level I even understand it, that's a property of the
> type, and I was moving the type around. But I really didn't expect that
> :)
What version of Coccinelle do you have?
There has been a lot of work on types recently that may have affected
this.
julia
_______________________________________________
Cocci mailing list
Cocci@systeme.lip6.fr
https://systeme.lip6.fr/mailman/listinfo/cocci
next prev parent reply other threads:[~2020-06-18 15:26 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-06-17 20:54 [Cocci] moving variable declarations up Johannes Berg
2020-06-17 21:15 ` Julia Lawall
2020-06-17 21:19 ` Johannes Berg
2020-06-17 21:47 ` Johannes Berg
2020-06-18 15:25 ` Julia Lawall [this message]
2020-06-18 15:49 ` Julia Lawall
2020-06-18 5:59 ` Julia Lawall
2020-06-18 7:37 ` Johannes Berg
[not found] <50990ed6-f5b7-c031-a5df-bdaa6863baa8@web.de>
2020-06-18 7:20 ` Johannes Berg
[not found] ` <b6ded75b-c4fe-dab6-b50a-d8ce55793b97@web.de>
2020-06-18 7:34 ` Johannes Berg
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.22.394.2006181724411.2367@hadrien \
--to=julia.lawall@inria.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).