* [Cocci] Finding all uses of a flag define
@ 2015-09-29 17:38 Michael McConville
2015-09-29 17:43 ` Julia Lawall
0 siblings, 1 reply; 4+ messages in thread
From: Michael McConville @ 2015-09-29 17:38 UTC (permalink / raw)
To: cocci
This is probably a simple question. I'm trying to find all uses of the
preproc define M_WAITOK used in the second argument of malloc() or
mallocarray(). It may be or'd with other flags in any order.
A relevant example would be enough.
Thanks,
Michael
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Cocci] Finding all uses of a flag define
2015-09-29 17:38 [Cocci] Finding all uses of a flag define Michael McConville
@ 2015-09-29 17:43 ` Julia Lawall
2015-09-29 17:51 ` Michael McConville
0 siblings, 1 reply; 4+ messages in thread
From: Julia Lawall @ 2015-09-29 17:43 UTC (permalink / raw)
To: cocci
On Tue, 29 Sep 2015, Michael McConville wrote:
> This is probably a simple question. I'm trying to find all uses of the
> preproc define M_WAITOK used in the second argument of malloc() or
> mallocarray(). It may be or'd with other flags in any order.
malloc(e1, M_WAITOK | ...)
julia
>
> A relevant example would be enough.
>
> Thanks,
> Michael
> _______________________________________________
> Cocci mailing list
> Cocci at systeme.lip6.fr
> https://systeme.lip6.fr/mailman/listinfo/cocci
>
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Cocci] Finding all uses of a flag define
2015-09-29 17:43 ` Julia Lawall
@ 2015-09-29 17:51 ` Michael McConville
2015-09-29 17:54 ` Julia Lawall
0 siblings, 1 reply; 4+ messages in thread
From: Michael McConville @ 2015-09-29 17:51 UTC (permalink / raw)
To: cocci
Julia Lawall wrote:
> On Tue, 29 Sep 2015, Michael McConville wrote:
> > This is probably a simple question. I'm trying to find all uses of
> > the preproc define M_WAITOK used in the second argument of malloc()
> > or mallocarray(). It may be or'd with other flags in any order.
>
> malloc(e1, M_WAITOK | ...)
Right, thanks. I was trying to get too fancy by using a disjunction.
I'll just make separate rules for malloc and mallocarray.
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Cocci] Finding all uses of a flag define
2015-09-29 17:51 ` Michael McConville
@ 2015-09-29 17:54 ` Julia Lawall
0 siblings, 0 replies; 4+ messages in thread
From: Julia Lawall @ 2015-09-29 17:54 UTC (permalink / raw)
To: cocci
On Tue, 29 Sep 2015, Michael McConville wrote:
> Julia Lawall wrote:
> > On Tue, 29 Sep 2015, Michael McConville wrote:
> > > This is probably a simple question. I'm trying to find all uses of
> > > the preproc define M_WAITOK used in the second argument of malloc()
> > > or mallocarray(). It may be or'd with other flags in any order.
> >
> > malloc(e1, M_WAITOK | ...)
>
> Right, thanks. I was trying to get too fancy by using a disjunction.
> I'll just make separate rules for malloc and mallocarray.
Disjunction should be ok too.
julia
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2015-09-29 17:54 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-09-29 17:38 [Cocci] Finding all uses of a flag define Michael McConville
2015-09-29 17:43 ` Julia Lawall
2015-09-29 17:51 ` Michael McConville
2015-09-29 17:54 ` Julia Lawall
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.