Debian Codegraph @

c89

raw
1 #! /bin/sh
2
3 # Call the appropriate C compiler with options to accept ANSI/ISO C
4 # The following options are the same (as of gcc-2.95):
5 # -ansi
6 # -std=c89
7 # -std=iso9899:1990
8
9 extra_flag=-std=c89
10
11 for i; do
12 case "$i" in
13 -ansi|-std=c89|-std=iso9899:1990)
14 extra_flag=
15 ;;
16 -std=*)
17 echo >&2 "`basename $0` called with non ANSI/ISO C option $i"
18 exit 1
19 ;;
20 esac
21 done
22
23 exec gcc $extra_flag ${1+"$@"}