Anonymous struct/union in C
2010年11月26日
Renesas的C编译器,不接受类似与windows中
LARGE_INTEGER的共用体。
也就是说:编译器C语言编译,
共用体中不可以有无名的结构体。
这是ms的扩展。
union LARGE_INTEGER {
struct {
DWORD lowpart;
LONG highpart;
};
LONGLONG quadpart;
};
问题:如果现在有大量的C语言代码这样用,
怎样做改动最小?
1. C++编译C代码。
2. 改动union,然后用智能化的代码编辑器来批量替换。
gcc 可以用-fms-extensions
既然是扩展,想移植就不应该用。
gcc 的说明:
http://gcc.gnu.org/ml/gcc-patches/1999-06n/msg0037 6.html
http://www.mailinglistarchive.com/xcode-users@list s.apple.com/msg03872.html
分享到:
相关推荐
Anonymous/usr/bin/backbox-anonymous /usr/bin/ sudo service tor start sudo backbox-anonymous start/stop 重要的! 编辑文件,以便您的主机名正确! 默认情况下,Kali linux中的主机名是:kali要在终端中更改...
Anonymous MethodAnonymous Method
国外著名的黑客组织Anonymous于近日发布了一款自行开发的操作系统,该系统被命名为Anonymous-OS,并将DuckDuckGo定为其默认的搜索引擎。 Anonymous-OS操作系统基于Ubuntu 11.10,使用Mate桌面,主要是出于教育目的,...
1、Git介绍和使用教程,主要针对新手入职快速自学git的使用,也可供大佬面向学校或者公司培训使用,根据多年经验总结和整理出来的课程,上手工作使用的git知识这里全都有,如果是想用来制作自己的培训课程的话,简单...
This is the newly revised and expanded edition of the popular introduction to the design and implementation of geometry algorithms arising in areas such as computer graphics, robotics, and engineering...
We propose a self-stabilizing algorithm for computing a maximal matching in an anony- mous network. The complexity is O(n2) moves with high probability, under the ad- versarial distributed daemon. ...
安全匿名数据库查询,引入可信第三方的匿名数据库查询技术,并确保过程的安全性
Biometrics-based Data Link Layer Anonymous Authentication in VANETs
import anonymous from 'anonymous-animals-gen' const { name , image , animal } = anonymous . generate ( ) ; // name -> elastic giraffe // image -> [removed]... // animal -> giraffe const { name , ...
前端开源库-anonymous-insightAnonymous Insight,了解匿名向分析供应商(如Google Analytics)报告使用指标时如何使用您的工具。
One of the key applications of Smart Environment (which is deployed with anonymous binary motion sensors [1,2]) is user activity behavior analysis. The necessary prerequisite to finding behavior ...
A Distributed Anonymous Information Storage And Retrieval System
NetAdjust Anonymous Proxy 是一款浏览网页时隐藏你的 IP 地址的工具。程序的使用非常简单,你无需任何设置代理连接的知识即可用匿名方式在网上冲浪。程序可以帮你自动从网页中搜索和提取代理服务器地址并验证代理...
...Changelog See what is new in version 1.4.9 released on 19th September 2015 ...Javadoc Latest Javadoc for 1.4.9 release are available ...Make asynchronous HTTP requests, handle responses in anonymous call
babel-plugin-react-anonymous-display-name 动机 Babel插件,修复了在react devtools中显示由React.memo和forwardRef为Anonymous 。 安装 使用npm: npm install --save-dev babel-plugin-react-anonymous-...
DAA 测试描述,直接匿名证明的应用和使用方法,介绍,是一篇好的文章
java易混淆的地方,final, finally, finalize的区别,Anonymous Inner Class (匿名内部类) 是否可以extends(继承)其它类
这段代码的含义是,声明一个无名(anonymous)的结构体,并创建了一个结构体变量point。如果这段声明是放在全局域(在任意函数(比如main函数)外)内,那么point内的变量将被初始化为默认值,换句话说,以这种方式声明...
In this paper, we present two secure and anonymous cooperative caching schemes based on onion message and pseudonym-based encryption, respectively. The proposed schemes can not only protect the ...