From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,9a2a420ec841e44c X-Google-Attributes: gidfee84,public From: Charles M Richmond Subject: Re: Dec C pecularity Date: 1999/07/13 Message-ID: <378B19C3.A92F8D15@iisc.com>#1/1 X-Deja-AN: 500465277 Content-Transfer-Encoding: 7bit References: <37614C91.3FBFAB0A@zk3.dec.com> <87hfocxypx.fsf@romulus.bland.fido.de> <7k37t4$bq@web.nmti.com> <87vhcb42lh.fsf@romulus.bland.fido.de> <37789EF3.D7A52B7@iisc.com> <87673onc42.fsf@romulus.bland.fido.de> X-Accept-Language: ja Content-Type: text/plain; charset=us-ascii X-Complaints-To: abuse@shore.net X-Trace: news.shore.net 931862980 198.5.5.5 (Tue, 13 Jul 1999 06:49:40 EDT) Organization: Integrated International Systems Corporation MIME-Version: 1.0 NNTP-Posting-Date: Tue, 13 Jul 1999 06:49:40 EDT Newsgroups: comp.unix.osf.osf1 Tobias Ernst wrote: > Please be careful about accusing others not having done basic RTFM. > The manpage of cc on our system says that "-std" is the default for > cc, while actually the given example of code works if I specify > -std, but it doesn't if it don't. In the older man page one finds: Man cc ... ... -std[n] Directs the compiler to produce warnings for language constructs that are not standard in the language. The default is -std0. The following values are accepted: -std Enforces the ANSI C standard, but allows some common programming practices disallowed by the standard. The -std flag causes the macro __STDC__=0 to be passed to the preprocessor. -std0 Enforces the K & R programming style, with certain ANSI extensions in areas where the K & R behavior is undefined or ambiguous. In general, -std0 compiles most pre-ANSI C programs and produces expected results. The -std0 flag causes the __STDC__ macro to be undefined. ... ... While on the newer man page it leaps off of the first screen with: cc(1) cc(1) NAME cc - C compiler SYNOPSIS cc [-newc] [flag ...] file ... cc -oldc [flag ...] file ... cc -migrate [flag ...] file ... Default Flags: cc -newc -assume aligned_objects -cpp -call_shared -double -fprm n -fptm n -g0 -I/usr/include -inline manual -member_alignment -no_fp_reorder -no_misalign -object -O1 -oldcomment -p0 -no_pg -preempt_symbol -signed -arch generic -std0 -tune generic -writable_strings Note In a future release of DIGITAL UNIX, the default DEC C language-mode flag will be changed from -std0 (K&R programming style, pre-ANSI C standard) to -std (ANSI C standard - with some relaxations). ********* So yes.... RTFM -- *********************************************************************** * Charles Richmond Integrated International Systems Corporation * * cmr@iisc.com cmr@acm.org cmr@shore.net * * UNIX Internals, I18N, L10N, X, Realtime Imaging, and Custom S/W * * One Longfellow Place Suite 3309 , Boston , Ma. USA 02114-2431 * * (617) 723 7695 FAX (617) 723 6861 Remote (617) 504 3379 * ***********************************************************************