All of lore.kernel.org
 help / color / mirror / Atom feed
* source code transform
@ 2009-01-07 18:48 mosfet
  2009-01-07 19:03 ` Johannes Berg
  0 siblings, 1 reply; 7+ messages in thread
From: mosfet @ 2009-01-07 18:48 UTC (permalink / raw)
  To: linux-sparse

Hi,

I would like to know if sparse would be able to parse GCC source file to
add a comment in each function it encounters ?
For instance let's say I want to trace every function in c-parser.c :


static struct c_typespec
c_parser_enum_specifier (c_parser *parser)
{
...

}

in a first step I would like to modify source code like this :

static struct c_typespec
c_parser_enum_specifier (c_parser *parser)
{
 fprintf(stderr, "c-parser.c: c_parser_enum_specifier()\n");
...

}

is it possible with sparse ?



-- 
Vincent R.

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

end of thread, other threads:[~2009-01-31 23:38 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-01-07 18:48 source code transform mosfet
2009-01-07 19:03 ` Johannes Berg
2009-01-08  7:52   ` Nicholas Mc Guire
2009-01-08 23:45   ` Yoann Padioleau
2009-01-09  0:38     ` Harvey Harrison
2009-01-09 17:06       ` Yoann Padioleau
2009-01-31 23:37         ` H. Peter Anvin

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.