From: julia.lawall@lip6.fr (Julia Lawall)
To: cocci@systeme.lip6.fr
Subject: [Cocci] Mysterious parsing issue.
Date: Thu, 18 Oct 2012 09:19:26 +0200 (CEST) [thread overview]
Message-ID: <alpine.DEB.2.02.1210180916470.2000@hadrien> (raw)
In-Reply-To: <loom.20121017T191721-59@post.gmane.org>
On Wed, 17 Oct 2012, Mohit Gupta wrote:
> Hi,
>
> I am trying to parse this c file containing macros. ( C file and the macro file
> is pasted below.) This parses fine, if I uncomment the first line "STATIC int
> abc;"
>
> If I uncomment the line but change the order so as to make the first line as "
> INT funcf ARGS((char *));" . Then again it gives parsing issues.
>
> Is the parsing supposed to be dependent on order of statements or preclusion of
> another statement ? Are we looking at a potential bug ?
I get a parse error with all permutations of INT funcf ARGS((char *)); and
STATIC int abc;. Actually, I don't have the impression that STATIC int
abc; is relevant; it is the use of ARGS that it does not seem to like.
We can look into it. But is it actually blocking what you want to do? As
long as you are only interested in matching and transforming function
definitions, not function prototype declarations, the problem should not
have any impact.
julia
next prev parent reply other threads:[~2012-10-18 7:19 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-10-17 17:33 [Cocci] Mysterious parsing issue Mohit Gupta
2012-10-18 7:19 ` Julia Lawall [this message]
-- strict thread matches above, loose matches on Subject: below --
2012-10-22 15:51 Christian Clausen
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.02.1210180916470.2000@hadrien \
--to=julia.lawall@lip6.fr \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox