1 parent dfd86cd commit 863db6cCopy full SHA for 863db6c
1 file changed
src/libc/dj64/parsers/mkproto.sh
@@ -51,8 +51,8 @@ shift
51
# https://stackoverflow.com/questions/11003418/calling-shell-functions-with-xargs
52
export -f extr_proto
53
export RTAGS
54
-list_syms $TL T | xargs -I '{}' bash -c "extr_proto $TF '{}' ASMFUNC" | nl -n ln -v 0 >$1
55
-list_syms $TL U | xargs -I '{}' bash -c "extr_proto $TF '{}' ASMCFUNC" | nl -n ln -v 0 >$2
+list_syms $TL T | xargs -I '{}' bash -c "extr_proto $TF '{}' ASMFUNC" | nl -v 0 | sed -E 's/^ *//' >$1
+list_syms $TL U | xargs -I '{}' bash -c "extr_proto $TF '{}' ASMCFUNC" | nl -v 0 | sed -E 's/^ *//' >$2
56
echo "#define THUNK_INCS 1" >$3
57
list_syms2 $TL U T | xargs -L 1 $URTAGS -t $TF | expand | tr -s '[:blank:]' | \
58
cut -d " " -f 2 | sort | uniq | \
0 commit comments