将C99代码转换为C89 [英] Convert C99 code to C89
本文介绍了将C99代码转换为C89的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何将c99源代码自动转换为c89?我想用Visual C ++编译c99库,但是MSVC仅支持c89。许多更改只是语法上的,例如结构初始化程序,您可以自动编写一个工具来 de-c99代码。这个预处理器存在吗?
How can I convert c99 source code automatically to c89? I want to compile c99 libraries with Visual C++, but MSVC only supports c89. Many changes are only syntactic, such as struct initializers, and you could write a tool to "de-c99" code automatically. Does this preprocessor exist?
推荐答案
基于Clang的源到源转换器:
Clang-based source-to-source translator:
https://github.com/libav/c99-to-c89/
这篇关于将C99代码转换为C89的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文