File: c99

package info (click to toggle)
gcc-defaults-ports 1.181
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 496 kB
  • sloc: makefile: 1,335; python: 540; sh: 221; perl: 136
file content (24 lines) | stat: -rw-r--r-- 454 bytes parent folder | download | duplicates (12)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#! /bin/sh

# Call the appropriate C compiler with options to accept ANSI/ISO C
# The following options are the same (as of gcc-3.3):
# 	-std=c99
# 	-std=c9x
# 	-std=iso9899:1999
# 	-std=iso9899:199x

extra_flag=-std=c99

for i; do
    case "$i" in
	-std=c9[9x]|-std=iso9899:199[9x])
	    extra_flag=
	    ;;
	-std=*|-ansi)
	    echo >&2 "`basename $0` called with non ISO C99 option $i"
	    exit 1
	    ;;
    esac
done

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