#!/bin/ksh

for FILE in `find . -name "*.h"`; do
	echo "Processing ${FILE}"
	
        echo "#include \"postgres.h\"" >  __temp.h
	cat "${FILE}" >> __temp.h
	echo "#include \"define.h\"" > __temp2.h
	cc -E -I . __temp.h  >> __temp2.h
	cc -E -I . __temp2.h | grep NOT_EXPAND
done

