Article View: alt.free.newsservers
Article #124910--
From: Unknown
Date: Fri, 26 Mar 2010 03:41
Date: Fri, 26 Mar 2010 03:41
63 lines
3778 bytes
3778 bytes
ï»ż
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.
Technical Details
Message-ID:
<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!feeder1.xlned.com!news-out2.kabelfoon.nl!newsfeed.kabelfoon.nl!xindi.nntp.kabelfoon.nl!198.186.194.249.MISMATCH!news-out.readnews.com!transit3.readnews.com!216.40.28.145.MISMATCH!novia!news.glorb.com!news-spur1.glorb.com!newsread.glorb.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>Show Full Headers
Complete Article Headers
Message-ID: <JeffRelf.F-M.FM.p5@2010_Mar25.8.41pm> Subject: -- Date: Fri, 26 Mar 2010 03:41:13 +0000 From: Unknown <anon@nohost.local> 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> 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!feeder1.xlned.com!news-out2.kabelfoon.nl!newsfeed.kabelfoon.nl!xindi.nntp.kabelfoon.nl!198.186.194.249.MISMATCH!news-out.readnews.com!transit3.readnews.com!216.40.28.145.MISMATCH!novia!news.glorb.com!news-spur1.glorb.com!newsread.glorb.com!not-for-mail Newsgroups: alt.free.newsservers Organization: JeffRelf.F-M.FM Lines: 63 NNTP-Posting-Host: mb0RyIR6pxQRtuSHO/A6UQ.419.posting.glorb.com Content-Type: Text/Plain; charset=UTF-8 X-Complaints-To: abuse@glorb.com NNTP-Posting-Date: Fri, 26 Mar 2010 03:35:34 +0000 (UTC) User-Agent: JeffRelf.F-M.FM/X.EXE X-Notice: Scanned by Mr. Bill