[libpng16] Imported from libpng-1.6.24beta05.tar

This commit is contained in:
Glenn Randers-Pehrson
2016-07-13 16:38:01 -05:00
parent 9b14f5f85a
commit 3c7c436303
12 changed files with 31 additions and 18 deletions

13
contrib/tools/reindent Normal file
View File

@@ -0,0 +1,13 @@
#!/bin/sh
# reindent inputabsize outputabsize inputcontinuestring outputcontinuestring
# eg, to change libpng coding style from 3-space indentation to 4-space
#
# reindent 3 4 " " " " < example.c.orig > example.c
#
# Assumes that continued lines begin with indentation plus one space, and
# that continued comments begin with indentation plus " *".
unexpand --first-only --t $inputtabsize $1 | \
sed -e "/^ $3[^\*]/{s/ $3/ $4/}" | \
expand -t $2