🌰 Utility to add includes to .c and .h files
Go HTML Other
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
web
.gitignore
.travis.yml
README.md
addinclude.1
addinclude.go
addinclude_test.go

README.md

Addinclude

Utility to add #includes to .c and/or .h files.

Easy syntax

addinclude my.c stdin

Smart placement

addinclude my.h stdin

Changes my.h from:

#ifdef blabla
#endif

To:

#ifdef blabla 
#include <stdin.h>
#endif

You can place includes at the top of the file with -t. There are several other options.

TODO

  • C++ support