Clang re-written in C