view ifndef_wrapper.sh @ 1668:49cb3cf4bd6f

When explicitly passing --disable-fuzz to ./configure fuzz was actually enabled. Signed-off-by: Alexander Dahl <[email protected]>
author Alexander Dahl <ada@thorsis.com>
date Fri, 27 Mar 2020 23:23:11 +0800
parents 0196f4f83fee
children
line wrap: on
line source

#!/bin/sh

# Wrap all "#define X Y" with a #ifndef X...#endif"

sed 's/^\( *#define \([^ ][^ ]*\) .*\)/#ifndef \2\
\1\
#endif/'