Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/gustafla/c-minifier

Replace identifiers with auto-generated shorter ones
https://github.com/gustafla/c-minifier

c demoscene minify self-compiling stb

Last synced: 22 days ago
JSON representation

Replace identifiers with auto-generated shorter ones

Awesome Lists containing this project

README

        

# 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: