view help/help_check.sh @ 36433:3a192d8ecc56

Revise and fix stream control for VCD. A VCD's stream->priv is a pointer of type mp_vcd_priv_t and not one of type stream_priv_s. Add a struct member 'track' to mp_vcd_priv_t to store the track information there.
author ib
date Mon, 02 Dec 2013 13:53:03 +0000
parents 4df5cb727be4
children cb9975cda4bc
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_]\+\)[ \t].*:strdup(\1);:p" "$h" >> ${CHECK}.c
  echo "}" >> ${CHECK}.c
  $CC -Werror -c -o ${CHECK}.o ${CHECK}.c || exit
done