scc

simple c99 compiler
git clone git://git.simple-cc.org/scc
Log | Files | Refs | README | LICENSE

commit 74b602e76f2daefe3008aa57635c847bcdfd04ed
parent 06b7e0958c5ea5acb9b7f60da8fde405b08aab42
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date:   Tue, 19 Dec 2017 13:32:22 +0000

[as] Strim input data

Avoid phamton output due to spaces before of after the data

Diffstat:
Mas/test.sh | 10++++++++--
1 file changed, 8 insertions(+), 2 deletions(-)

diff --git a/as/test.sh b/as/test.sh @@ -12,7 +12,10 @@ trap "rm -f a.out $tmp1 $tmp2" 0 2 3 ./as-$cpu target/$cpu/test.s sed -n '/^\// ! { - s%.*/ %% + s%.*/%% + s%^[ ]*%% + s%[ ]*$%% + /^$/d s%[ ][ ]*%\ %g p @@ -23,7 +26,10 @@ nl -b a > $tmp1 ../objdump/objdump | sed -n '/^data:/,$ { /^data:/ ! { - s%.*: %% + s%.*:%% + s%^[ ]*%% + s%[ ]*$%% + /^$/d s%[ ][ ]*%\ %g p