public inbox for cocci@systeme.lip6.fr
 help / color / mirror / Atom feed
* [Cocci] Have coccinelle follow typedef ?
@ 2013-03-19 16:16 Eric Leblond
  2013-03-19 17:18 ` Julia Lawall
  0 siblings, 1 reply; 3+ messages in thread
From: Eric Leblond @ 2013-03-19 16:16 UTC (permalink / raw)
  To: cocci

Hello,

I've got the following construction in a code:
 typedef struct Packet_ {
	struct Flow_ * flow;
 } Packet;
and in an other include file:
 typedef struct Flow_ {
	...	
 } Flow;

My problem here is that if p is a Packet then p->flow is a Flow at least
from a developer point of view. But coccinelle is not detecting the
match "Flow f" do not match on a "p->flow".

I've thought about adding a new isomorphism to solve this but I don't
like the idea...

How could I fix this issue ? 

BR,
-- 
Eric Leblond <eric@regit.org>
Blog: https://home.regit.org/

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

end of thread, other threads:[~2013-03-19 17:53 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-03-19 16:16 [Cocci] Have coccinelle follow typedef ? Eric Leblond
2013-03-19 17:18 ` Julia Lawall
2013-03-19 17:53   ` Eric Leblond

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