All of lore.kernel.org
 help / color / mirror / Atom feed
From: Markus Elfring <Markus.Elfring@web.de>
To: Fonyuy-Asheri Caleb <fonyuy-asheri.caleb@inria.fr>
Cc: cocci@inria.fr
Subject: Re: [cocci] Creating function definitions from function pointers in a struct with coccinelle
Date: Mon, 10 Feb 2025 16:54:30 +0100	[thread overview]
Message-ID: <0e131286-d14d-4672-a476-80352111b93c@web.de> (raw)
In-Reply-To: <1328834805.8860973.1739199290076.JavaMail.zimbra@inria.fr>

> I actually meant this
> ctx->ops.my_function(id, data);
>
> ctx->my_function(id, data);
>
> with the intention of picking up my_function and the parameter list.

You can choose metavariables as needed for function calls.

Examples:
expression ctx;
expression list el;
identifier ops, my_function;
long id;
struct my_info * data;

Regards,
Markus

      parent reply	other threads:[~2025-02-10 15:54 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-02-10 11:08 [cocci] Creating function definitions from function pointers in a struct with coccinelle Fonyuy-Asheri Caleb
2025-02-10 11:16 ` Julia Lawall
2025-02-10 11:23   ` Fonyuy-Asheri Caleb
2025-02-10 11:32     ` Julia Lawall
2025-02-10 11:42       ` Fonyuy-Asheri Caleb
2025-02-10 11:56         ` Julia Lawall
2025-02-10 14:48           ` Fonyuy-Asheri Caleb
2025-02-10 14:52             ` Julia Lawall
2025-02-10 14:54               ` Fonyuy-Asheri Caleb
2025-02-10 15:00                 ` Julia Lawall
2025-02-10 15:54                 ` Markus Elfring [this message]

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=0e131286-d14d-4672-a476-80352111b93c@web.de \
    --to=markus.elfring@web.de \
    --cc=cocci@inria.fr \
    --cc=fonyuy-asheri.caleb@inria.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 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.