Skip to content

Replace identifiers with auto-generated shorter ones

License

Notifications You must be signed in to change notification settings

gustafla/c-minifier

Repository files navigation

C Minifier

Usage: minify input.c [-h header.h] > output.c

Use tools like sed to remove unnecessary whitespace and comments.

To keep certain identifiers intact, you can list them line by line in a file called .minify_blacklist in the working directory. You can also use the -h command line option to make the minifier parse and blacklist all the identifiers stb_c_lexer can find in desired header files.

Known issues:

About

Replace identifiers with auto-generated shorter ones

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published