C文件中所有函数的列表 [英] List of all functions in a C files
问题描述
大家好,
有没有办法列出C文件中的所有功能?我要重命名所有
函数。
谢谢,
Uday
Hi All,
Is there way to list all functions in a C files? I''ve to rename all the
functions.
thanks,
Uday
推荐答案
>有没有办法列出C文件中的所有功能?我必须重命名所有
> Is there way to list all functions in a C files? I''ve to rename all
函数。
我不知道你要做什么,但你可能想要重新考虑你的
策略。
-
Martijn
http://www.sereneconcepts.nl
文章< Eo **************@news.oracle.com> ;, Uday< l0 *** @ yahoo.com>写道:
In article <Eo**************@news.oracle.com>, Uday <l0***@yahoo.com> wrote:
大家好,
有没有办法列出C文件中的所有功能?我必须重命名所有
函数。
Hi All,
Is there way to list all functions in a C files? I''ve to rename all the
functions.
UNIX-ish答案:编译它并使用适当的
$运行elfdump或nm b $ b选项。
Windows回答:你的视觉 thingy有一个列出函数名的模式
或者只是自己阅读文件并写下列表。如果有大量的功能需要处理(100+)那么这样的改变应该可以非常谨慎地计划,而不仅仅是重命名。声音
就像有人给你一些忙碌的工作。
-
7842 ++
UNIX-ish answer: compile it and run elfdump or nm with the appropriate
options.
Windows answer: your "visual" thingy has a mode that lists function names
Or just read the files yourself and write down a list. if there is a
large number of functions to deal with (100+) then such a change should
probably planned with great care, far beyond simply renaming. Sounds
like someone gave you some busy-work.
--
7842++
>
Uday写道:
有没有办法列出C文件中的所有功能?我必须重命名
所有功能。
Is there way to list all functions in a C files? I''ve to rename
all the functions.
很多。所有人都想到了nm,cscope,xref。但是你必须在许多文件中进行相应的更改,包括.h的文件。一旦
你有一个列表id2id会派上用场。请参阅:
< http://cbfalconer.home.att.net/download/id2id-20.zip>
-
Chuck F(cb********@yahoo.com)(cb********@worldnet.att.net)
可用于咨询/临时嵌入式和系统。
< http://cbfalconer.home.att.net>使用worldnet地址!
Many. nm, cscope, xref all come to mind. However you have to make
corresponding changes in many files, including the .h ones. Once
you have a list id2id will come in handy. See:
<http://cbfalconer.home.att.net/download/id2id-20.zip>
--
Chuck F (cb********@yahoo.com) (cb********@worldnet.att.net)
Available for consulting/temporary embedded and systems.
<http://cbfalconer.home.att.net> USE worldnet address!
这篇关于C文件中所有函数的列表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!