🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: alt.privacy.anon-server
Article #46425

Re: Free reliable wordcount utility available (final version)

#46425
From: Benjamin Goldberg
Date: Wed, 06 Nov 2002 00:13
35 lines
2571 bytes
Thomas J. Boschloo wrote:
[snip]
> > >> Anyways there will be a port to ANSI-C because I used
> > >> the wrong library for the maximum value of an integer and my
> > >> Turbo C 2.0 compiler didn't warn me at all about this (I should
> > >> have used INT_MAX from limits.h instead of MAXINT from values.h).
> > >
> > > Headers are headers. Libraries are libraries. Please learn the
> > > simple stuff before you move onto the complicated stuff. Thank
> > > you.
> 
> So what does this compiler option tell you?
> -A      disable non-ANSI extensions

Headers are headers, libraries are libraries, and gcc extentions to the
language's syntax are, well, non-ANSI extentions.  The -A option only
disables the last, it does not disable non-ANSI headers or libraries.

Before you ask what extentions to C that gcc supports, and example would
be using blocks as rvalues... for example, consider code like the
following:

extern void func( int * x );
#define FUNC() (int)({ int t; func(&t); t; })

....
   int z = FUNC();
   other_function( FUNC() );

Also, the use of '//' comments in C code is a non-ansi extention which
gcc allows, if you don't use the '-A' flag.

-- 
my $n = 2; print +(split //, 'e,4c3H r ktulrnsJ2tPaeh'
.."\n1oa! er")[map $n = ($n * 24 + 30) % 31, (42) x 26]
Technical Details
Message-ID: <3DC85EA2.2C8E26DA@earthlink.net>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-alt.security.pgp.mbox.zip!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!headwall.stanford.edu!fu-berlin.de!uni-berlin.de!dialup-63.210.219.37.dial1.newyork1.level3.NET!not-for-mail
References: <3DC1596C.6D2B55BD@hccnet.nl.invalid> <3DC526FC.CBCFE9B6@hccnet.nl.invalid> <3DC5451F.DBF3CDDA@eton.powernet.co.uk> <pan.2002.11.03.17.05.02.482162@yahoo.co.uk> <3DC81975.45915377@hccnet.nl.invalid>

Show Full Headers
Complete Article Headers
Message-ID: <3DC85EA2.2C8E26DA@earthlink.net>
Subject: Re: Free reliable wordcount utility available (final version)
Date: Tue, 05 Nov 2002 19:13:22 -0500
From: Benjamin Goldberg <goldbb2@earthlink.net>
References: <3DC1596C.6D2B55BD@hccnet.nl.invalid> <3DC526FC.CBCFE9B6@hccnet.nl.invalid> <3DC5451F.DBF3CDDA@eton.powernet.co.uk> <pan.2002.11.03.17.05.02.482162@yahoo.co.uk> <3DC81975.45915377@hccnet.nl.invalid>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-alt.security.pgp.mbox.zip!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!headwall.stanford.edu!fu-berlin.de!uni-berlin.de!dialup-63.210.219.37.dial1.newyork1.level3.NET!not-for-mail
Newsgroups: alt.privacy.anon-server,sci.crypt,alt.fan.cult-dead-cow,alt.security.pgp
Lines: 35
NNTP-Posting-Host: dialup-63.210.219.37.dial1.newyork1.level3.net (63.210.219.37)
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Trace: fu-berlin.de 1036541216 8327819 63.210.219.37 (16 [87109])
X-Mailer: Mozilla 4.04 [en] (Win95; I)