嵌套函数支持 [英] nested function support

查看:48
本文介绍了嵌套函数支持的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有人知道ms c编译器是否具有嵌套功能支持,我需要将一个大型gcc项目合并到另一个ms c程序中。


提前致谢。

解决方案

Robert Rodriguez< rr ** @ net6.com>这样说:

有没有人知道ms c编译器是否有嵌套函数支持,我有一个大的gcc项目我需要合并到另一个ms c程序。




你的帖子是comp.lang.c的偏离主题。请访问

http:// www。 ungerhu.com/jxh/clc.welcome.txt
http://www.eskimo.com/~scs/C-faq/top.html
http://benpfaff.org/writings/clc/off-topic.html


用于发布指南和常见问题。谢谢。


-

Christopher Benson-Manica |我*应该*知道我在说什么 - 如果我

ataru(at)cyberspace.org |不,我需要知道。火焰欢迎。


" Robert Rodriguez" < RR ** @ net6.com>在消息中写道

news:fb ************************** @ posting.google.c om ...

有没有人知道ms c编译器是否有嵌套函数支持,


这个新闻组不用于讨论编译器。如果你有关于微软产品的问题,请在一个小组中询问

它是否是热门话题(参见 www.groups.google.com 和/或 www.usenet.org

查找哪些小组讨论哪些主题。另外,MSDN

网站( www.msdn.microsoft.com )提供新闻组列表

讨论微软产品和技术。

我有一个大的gcc项目我需要合并到另一个ms c程序。




注意ISO标准C(此处的主题)对嵌套函数没有支持

。所以提供它们的任何实现

通过将它们添加为扩展而不是标准来实现,不是这里有一个主题。


comp.lang.c的目的:
http://www.angelfire.com/ms3/bchambl...me_to_clc.html

C常见问题:
http ://www.eskimo.com/~scs/C-faq/top.html


-Mike


< blockquote> Robert Rodriguez写道:

有没有人知道ms c编译器是否有嵌套函数支持,我有一个大的gcc项目我需要合并到另一个ms c程序。



嵌套函数不属于C. gcc支持它们代码

" GNUC"当-std = gnu89或-std = gnu99时,但是当-std = c89或-std = c99时,不能用于写入

标准C的代码。使用嵌套函数的代码

应该重写为C.


does anyone know if the ms c compiler has nested function support, I
have a large gcc project I need to merge into another ms c program.

Thanks in advance.

解决方案

Robert Rodriguez <rr**@net6.com> spoke thus:

does anyone know if the ms c compiler has nested function support, I
have a large gcc project I need to merge into another ms c program.



Your post is off-topic for comp.lang.c. Please visit

http://www.ungerhu.com/jxh/clc.welcome.txt
http://www.eskimo.com/~scs/C-faq/top.html
http://benpfaff.org/writings/clc/off-topic.html

for posting guidelines and frequently asked questions. Thank you.

--
Christopher Benson-Manica | I *should* know what I''m talking about - if I
ataru(at)cyberspace.org | don''t, I need to know. Flames welcome.


"Robert Rodriguez" <rr**@net6.com> wrote in message
news:fb**************************@posting.google.c om...

does anyone know if the ms c compiler has nested function support,
This newsgroup is not for discussing compilers. If you have
a question about a Microsoft product, ask in a group where
it''s topical (see www.groups.google.com and/or www.usenet.org
to find which groups discuss which topics. Also, the MSDN
site ( www.msdn.microsoft.com ) provides a list of newsgroups
which discuss Microsoft products and technologies.
I
have a large gcc project I need to merge into another ms c program.



Note that ISO standard C (the topic here) does not have support
for nested functions. So any implementation that provides them
does so by adding them as extensions, not standard, not topical here.

Purpose of comp.lang.c:
http://www.angelfire.com/ms3/bchambl...me_to_clc.html

C FAQ:
http://www.eskimo.com/~scs/C-faq/top.html

-Mike


Robert Rodriguez wrote:

does anyone know if the ms c compiler has nested function support, I
have a large gcc project I need to merge into another ms c program.



Nested functions are not part of C. gcc supports them for code in
"GNUC" when -std=gnu89 or -std=gnu99, but not for code written in
standard C when -std=c89 or -std=c99. Code using nested functions
should be rewritten to be in C.


这篇关于嵌套函数支持的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆