Is there any way to find out the definition of a function in a file of C language?

2009-04-16 Thread Jebel
Hi ,everyone. I have the name of a function of C language, and have
the source file which the function is defined in. And I want to find
out the type and name of the parameters. If I need to analyze the file
by myself, or have some way to do it more easily?
--
http://mail.python.org/mailman/listinfo/python-list


Re: Is there any way to find out the definition of a function in a file of C language?

2009-04-16 Thread Jebel
On Apr 17, 4:04 am, Dan  wrote:
> you rule, just for your sig...  Zork in all forms ftw
>
> namekuseijin wrote:
> >Jebelescreveu:
> >> Hi ,everyone. I have the name of a function of C language, and have
> >> the source file which the function is defined in. And I want to find
> >> out the type and name of the parameters. If I need to analyze the file
> >> by myself, or have some way to do it more easily?
>
> > ever heard of grep?  ctags for vim or emacs?

Thank you, every one. I'm going to try your advice. But I really don't
understand the meaning of "you rule, just for your sig...  Zork in all
forms ftw".
--
http://mail.python.org/mailman/listinfo/python-list


(windows) How to get information as string from a GreenHills project?

2009-05-30 Thread Jebel
I use python to start a GreenHills project in command line. And the
GreenHills project create a string which is include the information
that needed to be analyzed. How Can I return this string from
GreenHills project to python?

Thanks a lot.

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: (windows) How to get information as string from a GreenHills project?

2009-05-31 Thread Jebel
On Jun 1, 9:33 am, "Gabriel Genellina"  wrote:
> En Sat, 30 May 2009 23:28:23 -0300, Jebel  escribió:
>
> > I use python to start a GreenHills project in command line. And the
> > GreenHills project create a string which is include the information
> > that needed to be analyzed. How Can I return this string from
> > GreenHills project to python?
>
> I have no idea what a GreenHills project is. But if "create a string"
> means that it outputs something on screen, try the subprocess 
> module:http://docs.python.org/library/subprocess.html(see the very first 
> example)
>
> --
> Gabriel Genellina

Thank you Gabriel. I resolved this problem with os.popen().
Thank you very much.
By the way, a GreenHills project means a project built by
GreenHills,:)

-- 
http://mail.python.org/mailman/listinfo/python-list