Mercurial > mplayer.hg
view help/help_check.sh @ 36678:61a9df2e25d0
Use glMapBufferRange by default.
It should provide better performance and in addition is
available in GLESv3.
author | reimar |
---|---|
date | Sat, 01 Feb 2014 15:13:00 +0000 |
parents | 55f218d04dd3 |
children | fe87abe38ef3 |
line wrap: on
line source
#!/bin/sh # Check help message header files. CHECK=checkhelp trap "rm -f ${CHECK}.c ${CHECK}.o" EXIT CC=$1 shift for h in "$@"; do cat <<EOF > ${CHECK}.c #include <inttypes.h> #include <string.h> #include "config.h" #include "$h" void $CHECK () { EOF sed -n "s:^[ \t]*#define[ \t]\+\([0-9A-Za-z_]\+\).*:strdup(\1);:p" "$h" >> ${CHECK}.c echo "}" >> ${CHECK}.c $CC -Werror -c -o ${CHECK}.o ${CHECK}.c || exit done