Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Tool to convert C99 code to MSVC-compatible C89
C Perl
Branch: master
Pull request Compare This branch is 26 commits behind libav:master.

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.
latest commit 47826cc230
@rbultje authored

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

Something went wrong with that request. Please try again.