All of lore.kernel.org
 help / color / mirror / Atom feed
From: elfring@users.sourceforge.net (SF Markus Elfring)
To: cocci@systeme.lip6.fr
Subject: [Cocci] Conversion of similar function calls into one with a longer parameter
Date: Wed, 10 Sep 2014 18:30:27 +0200	[thread overview]
Message-ID: <54107CA3.40708@users.sourceforge.net> (raw)
In-Reply-To: <87fvfztqzq.fsf@rasmusvillemoes.dk>

> I'm trying to write a semantic patch to convert consecutive seq_puts()
> calls into a single one, with the string literals concatenated.
> My attempt below works fine when there are exactly two seq_puts() calls,
> but fails when there are more.

How do you think about to process the corresponding syntax and control flow
graph by interfaces for the programming language "OCaml"?
Would it be safer to reuse the available API for such an application where
several similar function calls should be merged together?

Regards,
Markus

      parent reply	other threads:[~2014-09-10 16:30 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-09-10 15:49 [Cocci] Problem with "already tagged token" Rasmus Villemoes
2014-09-10 16:11 ` Julia Lawall
2014-09-11  7:16   ` Rasmus Villemoes
2014-09-10 16:30 ` SF 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=54107CA3.40708@users.sourceforge.net \
    --to=elfring@users.sourceforge.net \
    --cc=cocci@systeme.lip6.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.