File: c89

package info (click to toggle)
gcc-defaults 0.21
  • links: PTS
  • area: main
  • in suites: woody
  • size: 136 kB
  • ctags: 61
  • sloc: makefile: 255; sh: 91
file content (23 lines) | stat: -rw-r--r-- 427 bytes parent folder | download | duplicates (10)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#! /bin/sh

# Call the appropriate C compiler with options to accept ANSI/ISO C
# The following options are the same (as of gcc-2.95):
# 	-ansi
# 	-std=c89
# 	-std=iso9899:1990

extra_flag=-std=c89

for i; do
    case "$i" in
	-ansi|-std=c89|-std=iso9899:1990)
	    extra_flag=
	    ;;
	-std=*)
	    echo >&2 "`basename $0` called with non ANSI/ISO C option $i"
	    exit 1
	    ;;
    esac
done

exec cc $extra_flag ${1+"$@"}