Tool to convert C99 code to MSVC-compatible C89
C Perl
Pull request Compare This branch is 29 commits behind libav:master.
Latest commit 47826cc Dec 19, 2012 @rbultje Add an assertion if particular indices in an array/struct are duplica…
…tes.

Fix struct/array index lookup if the previous entry used a designated
initializer, but this particular entry didn't. In that case, our index
is the previous member's index + 1, but we used to use the counter as
index, which is wrong.

Also fix the unit test, which contained code triggering both problems,
which ended up going in an infinite loop.
Permalink
Failed to load latest commit information.
LICENSE
Makefile
Makefile.w32
README.md
compilewrap.c
convert.c
makedef
unit.c
unit2.c

README.md

c99-to-c89

Tool to convert C99 code to MSVC-compatible C89

Dependencies

c99-to-c89 is based on LibClang, any clang version from 3.1 is known to work.

Usage

c99conv converts preprocessed C sources, the provided c99wrap uses the C preprocessor, converts its output and feeds it to the C compiler.

c99wrap $CC $CFLAGS source