#!/bin/sh ############################################################ # Copyright (c) 2009-2010 by Aleksey Cheusov # # See COPYRIGHT file in the distribution. ############################################################ set -e LC_ALL=C export LC_ALL ################################################## # options usage (){ cat <" done > "$tmpc" cat >> "$tmpc" <"${tmperr}"; then return 0 else return 1 fi } check_itself (){ if try_it 2147483647 "$@" then for sz in 4 8 2 1 16 12 3 5 6 7 9 10 11 13 14 15; do if try_it $sz "$@" then : else echo $sz return fi done fi echo failed } check_and_cache "checking for sizeof ${type}" "$cache" "$@" ################################################## # clean-ups cleanup ################################################## # finishing printme "$ret\n" 1>&2 echo $ret