1*e4aa5bd8Schristos.\" $NetBSD: c99.1,v 1.1 2016/01/14 04:27:26 christos Exp $ 2*e4aa5bd8Schristos.\" 3*e4aa5bd8Schristos.\" Copyright (c) 1999-2008 The NetBSD Foundation, Inc. 4*e4aa5bd8Schristos.\" All rights reserved. 5*e4aa5bd8Schristos.\" 6*e4aa5bd8Schristos.\" Redistribution and use in source and binary forms, with or without 7*e4aa5bd8Schristos.\" modification, are permitted provided that the following conditions 8*e4aa5bd8Schristos.\" are met: 9*e4aa5bd8Schristos.\" 1. Redistributions of source code must retain the above copyright 10*e4aa5bd8Schristos.\" notice, this list of conditions and the following disclaimer. 11*e4aa5bd8Schristos.\" 2. Redistributions in binary form must reproduce the above copyright 12*e4aa5bd8Schristos.\" notice, this list of conditions and the following disclaimer in the 13*e4aa5bd8Schristos.\" documentation and/or other materials provided with the distribution. 14*e4aa5bd8Schristos.\" 15*e4aa5bd8Schristos.\" THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS 16*e4aa5bd8Schristos.\" ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED 17*e4aa5bd8Schristos.\" TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 18*e4aa5bd8Schristos.\" PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS 19*e4aa5bd8Schristos.\" BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 20*e4aa5bd8Schristos.\" CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 21*e4aa5bd8Schristos.\" SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 22*e4aa5bd8Schristos.\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 23*e4aa5bd8Schristos.\" CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 24*e4aa5bd8Schristos.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 25*e4aa5bd8Schristos.\" POSSIBILITY OF SUCH DAMAGE. 26*e4aa5bd8Schristos.\" 27*e4aa5bd8Schristos.Dd September 24, 2008 28*e4aa5bd8Schristos.Dt C99 1 29*e4aa5bd8Schristos.Os 30*e4aa5bd8Schristos.Sh NAME 31*e4aa5bd8Schristos.Nm c99 32*e4aa5bd8Schristos.Nd ANSI (1999) C compiler 33*e4aa5bd8Schristos.Sh SYNOPSIS 34*e4aa5bd8Schristos.Nm 35*e4aa5bd8Schristos.Op Fl pedantic 36*e4aa5bd8Schristos.Op Fl pedantic-errors 37*e4aa5bd8Schristos.Op Fl D_ANSI_SOURCE 38*e4aa5bd8Schristos.Op options ... 39*e4aa5bd8Schristos.Sh DESCRIPTION 40*e4aa5bd8SchristosCalls the C compiler (cc) with the given 41*e4aa5bd8Schristos.Ar options , 42*e4aa5bd8Schristosusing a C language environment compatible with the 43*e4aa5bd8Schristos.St -isoC-99 44*e4aa5bd8Schristosspecification. 45*e4aa5bd8Schristos.Pp 46*e4aa5bd8SchristosThis includes 47*e4aa5bd8Schristosinline functions, variable-length arrays, support for one-line 48*e4aa5bd8Schristoscomments beginning with //, 49*e4aa5bd8Schristosdisabling non-ANSI compiler features (such as 50*e4aa5bd8Schristos.Ar asm , 51*e4aa5bd8Schristos.Ar typeof , 52*e4aa5bd8Schristosand the $ character in identifiers), 53*e4aa5bd8Schristosand definition of the preprocessor symbol 54*e4aa5bd8Schristos.Ev __STRICT_ANSI__ . 55*e4aa5bd8Schristos.Pp 56*e4aa5bd8SchristosThe following options are available: 57*e4aa5bd8Schristos.Bl -tag -width "-pedantic-errorsxx" 58*e4aa5bd8Schristos.It Fl pedantic 59*e4aa5bd8SchristosIssue extra warnings defined by ANSI for use of non-ANSI features. 60*e4aa5bd8Schristos.It Fl pedantic-errors 61*e4aa5bd8SchristosIssue errors instead of warnings that normally would be presented by 62*e4aa5bd8Schristos.Fl pedantic . 63*e4aa5bd8Schristos.It Fl D_ANSI_SOURCE 64*e4aa5bd8SchristosTell the system header file set to use an ANSI-conformant "clean" namespace. 65*e4aa5bd8Schristos.El 66*e4aa5bd8Schristos.Sh SEE ALSO 67*e4aa5bd8Schristos.Xr cc 1 68*e4aa5bd8Schristos.Sh STANDARDS 69*e4aa5bd8Schristos.Nm 70*e4aa5bd8Schristosconforms to 71*e4aa5bd8Schristos.St -p1003.2-92 . 72*e4aa5bd8Schristos.Sh HISTORY 73*e4aa5bd8Schristos.Nm 74*e4aa5bd8Schristosfirst appeared in 75*e4aa5bd8Schristos.Nx 5.0 . 76*e4aa5bd8Schristos.Sh BUGS 77*e4aa5bd8SchristosSince 78*e4aa5bd8Schristos.Nm 79*e4aa5bd8Schristosis a shell wrapper script to 80*e4aa5bd8Schristos.Ar cc , 81*e4aa5bd8Schristoscompile errors are prefixed by "cc:". 82