Article View: alt.free.newsservers
Article #124915--
From: thang ornithorhynchus
Date: Sat, 27 Mar 2010 00:57
Date: Sat, 27 Mar 2010 00:57
70 lines
3882 bytes
3882 bytes
On Thu, 25 Mar 2010 20:41:13 -0700 (Pacific Daylight Time),
JeffRelf.F-M.FM ĂÂ ĂÂ @. wrote:
>?
>I've been coding professionally ever since the start of 1982,
>so I tend to invent âC++ indentifiersâ like âThunder¡Birdâ.
>For example, from http://jeffrelf.f-m.fm/X.CPP :
>
> #define szStr wcslen
> // Given the Beginning of a string (âBâ), run a pointer (âPâ)
> // backwards ( from E to B ) while âShould_Loopâ is true.
> // â!Châ is true if P has run past B ( going backwards ).
> #define WhileBac( Should_Loop ) \
> Ch = Ch2 = 0; if ( !E ) E = B + szStr( B ); P = E ; \
> while ( P >= B && \
> ( Ch2 = *P, ( Ch = --P < B ? 0 : *P ) && ( Should_Loop ) ) )
>
> typedef wchar_t *LnP ; int Ch, Ch2 ;
>
> // g¡mID( B, P, E ) gets the last mID in the âReferences:â line.
> // B points to the Beginning of data in the line.
> // E points to the latter part of this line, at the end of an mID.
> // P starts at E and gets moved one or two mID to the left,
> // to the start of an mID.
> int sz¡mID ;
> int g¡mID( LnP B, LnP &P, LnP &E ) { int ??, cnt¡At ;
>
> nx¡mID: cnt¡At = sz¡mID = 0 ;
> WhileBac( Ch <= 32 || Ch == ',' );
> if ( !Ch )
> // No more MIDs on the line.
> return 0 ;
>
> E = P ;
>
> if ( !( ?? = Ch == '>' ) )
> // Google Groups doesn't always <> bracket <m@ID>'s.
> // 31749c8f-28b9-4ff6-91e7-a233b9dbaf9b@n39g2000prj.googlegroups.com
> E++ ;
> Join:
> WhileBac( Ch > 32 && Ch != ',' && Ch != '<' )
> if ( Ch == '@' )
> // Count the â@â characters in the mID.
> cnt¡At ++ ;
>
> if ( ?? && Ch != '<' ) {
> // Remove newlines and spaces in the bracketted <m@ID>.
> // Believe it or not, this actually happens ( Outlook ).
> // ho62hl$ors$1@hvac.motzarella.org
> LnP pBlack = P + 1, E¡ = E ; E = P ;
> WhileBac( Ch <= 32 ); if ( !Ch ) return 0 ;
>
> E = E¡, wmemmove( ++P, pBlack, E - pBlack ), E -= pBlack - P ;
> // Get the rest of the bracketted <m@ID>.
> goto Join ; }
>
> if ( cnt¡At != 1 || ( sz¡mID = E - ++ P ) < 3 ) {
> // Skip¡Over any mID that's under 3 characters long and/or
> // doesn't have one¡and¡only¡one â@â character.
> E = -- P ; goto nx¡mID ; }
>
> return sz¡mID ; }
>
>By the way, there've been tons of people accessing X.CPP lately,
>mostly French ( âI'm big in Franceâ, ha ha ), I don't know why;
>it's being passed around via emails, not a website or blog.
Good lord!
Technical Details
Message-ID:
<kvlqq51njopg87vd4krqm7ov6ll854lic2@4ax.com>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-alt.free.newsservers.20150605.mbox.gz!border1.nntp.ams.giganews.com!nntp.giganews.com!xlned.com!feeder7.xlned.com!news2.euro.net!news.glorb.com!news.astraweb.com!border1.newsrouter.astraweb.com!not-for-mailReferences:
<hob0hq$cqj$1@speranza.aioe.org> <Xns9D4473D599405duckrulestheuniverse@nomail.afraid.org> <JeffRelf.F-M.FM.Al@2010_Mar24.3.52am> <hoeh87$nrg$1@news.eternal-september.org> <JeffRelf.F-M.FM.N3@2010_Mar24.11.40pm> <hoh1pb$cl$1@news.eternal-september.org> <JeffRelf.F-M.FM.p5@2010_Mar25.8.41pm>Show Full Headers
Complete Article Headers
Message-ID: <kvlqq51njopg87vd4krqm7ov6ll854lic2@4ax.com> Subject: -- Date: Sat, 27 Mar 2010 08:57:43 +0800 From: thang ornithorhynchus <thang@spitzola.com.org.net> References: <hob0hq$cqj$1@speranza.aioe.org> <Xns9D4473D599405duckrulestheuniverse@nomail.afraid.org> <JeffRelf.F-M.FM.Al@2010_Mar24.3.52am> <hoeh87$nrg$1@news.eternal-september.org> <JeffRelf.F-M.FM.N3@2010_Mar24.11.40pm> <hoh1pb$cl$1@news.eternal-september.org> <JeffRelf.F-M.FM.p5@2010_Mar25.8.41pm> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-alt.free.newsservers.20150605.mbox.gz!border1.nntp.ams.giganews.com!nntp.giganews.com!xlned.com!feeder7.xlned.com!news2.euro.net!news.glorb.com!news.astraweb.com!border1.newsrouter.astraweb.com!not-for-mail Newsgroups: alt.free.newsservers X-Newsreader: Forte Agent 6.00/32.1186 X-No-Archive: yes MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Lines: 70 Organization: Unlimited download news at news.astraweb.com NNTP-Posting-Host: afae2889.news.astraweb.com X-Trace: DXC=I<9fhWn3U13hn]AcMfkkb9L?0kYOcDh@:dME6QU:^_31NDXVdGZ_N>4eEl[@0m@672F`_hb7e?G?; iV7h0T<ION>