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 Don't error out on diff in unittests. Oct 8, 2012
Makefile.w32 Add a Makefile to compile with cl.exe on Windows. Oct 3, 2012
README.md doc: add README Dec 11, 2012
compilewrap.c Don't detect clang as cl.exe. Oct 8, 2012
convert.c Add an assertion if particular indices in an array/struct are duplica… Dec 19, 2012
makedef
unit.c Support designated initializers in compound literals. Aug 18, 2012
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