radare / spp

simple preprocessor
MIT License
60 stars 11 forks source link

Output to buffer and file #7

Closed Svenito closed 7 years ago

Svenito commented 7 years ago

CLI still outputs to stdout by default, but using -o buff will output to buffer

If compiled outside of r2 use

make CFLAGS="-DSPP_STRBUF=1"

to use the strbuf included with spp. For debug, and to print out the buffer contents:

make CFLAGS="-DSPP_STRBUF=1 -DDEBUG"

Also fixes code to match r2 style

radare commented 7 years ago

Looks good! probably better if indentation and new feature came in separate commits.. but meh

Svenito commented 7 years ago

yeah, but I cleaned up as I went to make it more readable. The lack of spaces choke