sbase

suckless unix tools
git clone git://git.2f30.org/sbase
Log | Files | Refs | README | LICENSE

commit b7c2bbc6dbbe16136a7cf00be3329a77b0b65e4a
parent a2e704c8c9d1a8bda9747d021bebc0ee8c67be7a
Author: Evan Gates <evan.gates@gmail.com>
Date:   Fri, 20 Feb 2015 12:14:51 -0800

replace printf + putchar with fputs

Diffstat:
MMakefile | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/Makefile b/Makefile @@ -210,8 +210,8 @@ sbase-box: $(LIB) $(SRC) echo "else if (!strcmp(s, \"[\")) return test_main(argc, argv);" >> build/$@.c for f in $(SRC); do echo "else if(!strcmp(s, \"$${f%.c}\")) return $${f%.c}_main(argc, argv);" >> build/$@.c; done echo 'else {' >> build/$@.c - echo "printf(\"[\"); putchar(' ');" >> build/$@.c - for f in $(SRC); do echo "printf(\"$${f%.c}\"); putchar(' ');" >> build/$@.c; done + echo "fputs(\"[ \", stdout);" >> build/$@.c + for f in $(SRC); do echo "fputs(\"$${f%.c} \", stdout);" >> build/$@.c; done echo "putchar(0xa); }; return 0; }" >> build/$@.c $(LD) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o $@ build/*.c $(LIB) rm -r build