Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  nodelist  faq  login

Beware of the Turing Tar-pit in which everything is possible but nothing of interest is easy.


programming / comp.lang.asm.x86 / Re: duplicates

SubjectAuthor
* Re: duplicatesKerr-Mudd,John
`* Re: duplicateswolfgang kern
 +* Re: duplicateswolfgang kern
 |`* Re: duplicatesKerr-Mudd,John
 | `* Re: duplicatesKerr-Mudd,John
 |  +- Re: duplicateswolfgang kern
 |  `- Re: duplicatesTerje Mathisen
 `- Re: duplicatesKerr-Mudd,John

1
Subject: Re: duplicates
From: Kerr-Mudd,John
Newsgroups: comp.lang.asm.x86
Organization: dis
Date: Wed, 29 May 2019 15:59 UTC
References: 1 2 3 4 5 6 7 8 9 10 11 12 13 14
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder.eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: notsay...@nospicedham.invalid.org (Kerr-Mudd,John)
Newsgroups: comp.lang.asm.x86
Subject: Re: duplicates
Date: Wed, 29 May 2019 15:59:08 -0000 (UTC)
Organization: dis
Lines: 30
Approved: fbkotler@myfairpoint.net - comp.lang.asm.x86 moderation team.
Message-ID: <XnsAA5EACD7161F9admin127001@144.76.35.198>
References: <XnsAA3BABC168A01admin127001@144.76.35.198> <q9qh8b$1jfu$1@gioia.aioe.org> <XnsAA3BDE7198B3Eadmin127001@144.76.35.198> <XnsAA3DAFB997CF2admin127001@144.76.35.198> <XnsAA3DC6A646656admin127001@144.76.35.198> <XnsAA3EB7CD1A25Eadmin127001@144.76.35.198> <qa6pai$17vn$1@gioia.aioe.org> <XnsAA40E0079AA51admin127001@144.76.35.198> <qabk28$1e3l$1@gioia.aioe.org> <XnsAA42697BC3344admin127001@144.76.35.198> <XnsAA49A37D5A196admin127001@144.76.35.198> <XnsAA4EA866F5B66admin127001@144.76.35.198> <qbcgmj$qlq$1@gioia.aioe.org> <XnsAA4F5C0792D8Badmin127001@144.76.35.198>
Injection-Info: h2725194.stratoserver.net; posting-host="d5d470eaa69fb65921420ae0334d43fc";
logging-data="5219"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/1vf7i1pXeqQymV/eHsAE85Kto7w27hmw="
User-Agent: Xnews/2006.08.24
Cancel-Lock: sha1:reGLUwBzziYItXZCIDX7ZqySt0s=
View all headers
On Tue, 14 May 2019 08:02:31 GMT, "Kerr-Mudd,John"
<notsaying@nospicedham.invalid.org> wrote:

On Mon, 13 May 2019 19:27:02 GMT, wolfgang kern
<nowhere@nospicedham.never.at> wrote:

On 13.05.2019 17:32, Kerr-Mudd,John wrote:
On Wed, 08 May 2019 15:04:14 GMT, "Kerr-Mudd,John"
<notsaying@nospicedham.invalid.org> wrote:

On Wed, 01 May 2019 09:22:00 GMT, "Kerr-Mudd,John"
<notsaying@nospicedham.invalid.org> wrote:

[]
Never mind the code; are you OK?

I'm still alive, but weak and tired.
appologize for not responding in time.

No apology needed; hope you recover soon.
There's no code deadline here!


On the mend, I hope? Anyone in contact with Wolfgang?



--
Bah, and indeed, Humbug.



Subject: Re: duplicates
From: wolfgang kern
Newsgroups: comp.lang.asm.x86
Organization: KESYS-development
Date: Tue, 25 Jun 2019 16:48 UTC
References: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder.eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: nowh...@nospicedham.never.at (wolfgang kern)
Newsgroups: comp.lang.asm.x86
Subject: Re: duplicates
Date: Tue, 25 Jun 2019 18:48:44 +0200
Organization: KESYS-development
Lines: 24
Approved: fbkotler@myfairpoint.net - comp.lang.asm.x86 moderation team.
Message-ID: <qetjmf$tlu$1@gioia.aioe.org>
References: <XnsAA3BABC168A01admin127001@144.76.35.198>
<q9qh8b$1jfu$1@gioia.aioe.org> <XnsAA3BDE7198B3Eadmin127001@144.76.35.198>
<XnsAA3DAFB997CF2admin127001@144.76.35.198>
<XnsAA3DC6A646656admin127001@144.76.35.198>
<XnsAA3EB7CD1A25Eadmin127001@144.76.35.198> <qa6pai$17vn$1@gioia.aioe.org>
<XnsAA40E0079AA51admin127001@144.76.35.198> <qabk28$1e3l$1@gioia.aioe.org>
<XnsAA42697BC3344admin127001@144.76.35.198>
<XnsAA49A37D5A196admin127001@144.76.35.198>
<XnsAA4EA866F5B66admin127001@144.76.35.198> <qbcgmj$qlq$1@gioia.aioe.org>
<XnsAA4F5C0792D8Badmin127001@144.76.35.198>
<XnsAA5EACD7161F9admin127001@144.76.35.198>
Reply-To: nowhere@never.at
Mime-Version: 1.0
Content-Type: text/plain; charset=windows-1252; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Info: h2725194.stratoserver.net; posting-host="03e75a23d00b0d2b7e707cdb80affca4";
logging-data="26648"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18GppcFq/ncMl8T2moN7z2vXcbmvXxrLiE="
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:66.0) Gecko/20100101
Thunderbird/66.0
Cancel-Lock: sha1:rUvN1zEWgJqLYt5vwtHsQntmOmY=
View all headers
On 29.05.2019 17:59, Kerr-Mudd,John wrote:

On the mend, I hope? Anyone in contact with Wolfgang?

Took me a while to resurrect my worn body. and with the help
of a some scientists I'm almost new reborn yet. Today I left
hospital and I'm still a bit tired because filled with drugs
for some more days.
At least I'm back and ready to continue soon.
__
wolfgang
          

Subject: Re: duplicates
From: wolfgang kern
Newsgroups: comp.lang.asm.x86
Organization: KESYS-development
Date: Thu, 27 Jun 2019 05:35 UTC
References: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder.eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: nowh...@nospicedham.never.at (wolfgang kern)
Newsgroups: comp.lang.asm.x86
Subject: Re: duplicates
Date: Thu, 27 Jun 2019 07:35:40 +0200
Organization: KESYS-development
Lines: 15
Approved: fbkotler@myfairpoint.net - comp.lang.asm.x86 moderation team.
Message-ID: <qf1l0n$lon$1@gioia.aioe.org>
References: <XnsAA3BABC168A01admin127001@144.76.35.198>
<q9qh8b$1jfu$1@gioia.aioe.org> <XnsAA3BDE7198B3Eadmin127001@144.76.35.198>
<XnsAA3DAFB997CF2admin127001@144.76.35.198>
<XnsAA3DC6A646656admin127001@144.76.35.198>
<XnsAA3EB7CD1A25Eadmin127001@144.76.35.198> <qa6pai$17vn$1@gioia.aioe.org>
<XnsAA40E0079AA51admin127001@144.76.35.198> <qabk28$1e3l$1@gioia.aioe.org>
<XnsAA42697BC3344admin127001@144.76.35.198>
<XnsAA49A37D5A196admin127001@144.76.35.198>
<XnsAA4EA866F5B66admin127001@144.76.35.198> <qbcgmj$qlq$1@gioia.aioe.org>
<XnsAA4F5C0792D8Badmin127001@144.76.35.198>
<XnsAA5EACD7161F9admin127001@144.76.35.198> <qetjmf$tlu$1@gioia.aioe.org>
Reply-To: nowhere@never.at
Mime-Version: 1.0
Content-Type: text/plain; charset=windows-1252; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Info: h2725194.stratoserver.net; posting-host="fca0bcd0448b8eb223fabc93085d9f25";
logging-data="8094"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18HlI/yPBmzY2n/geYC+kHt3IxjOsSMu9M="
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:66.0) Gecko/20100101
Thunderbird/66.0
Cancel-Lock: sha1:DdyrOpFVfUC4qWaKwQR7xwCKPp8=
View all headers
ready to continue...

what I see so far is:
* neat trick with SI,BP,DX on start, but wouldn't max.BP+CX segfault ?
* it works on 0A 0D terminated text-strings of variable size.
   [no intention to work on OD 0A or single byte end marks too?]
* trailing spaces were ignored.
* cant see where/how a duplicate string goes to screen.

methink the sense of such code is to test sort-routines.
I had to check my multi pass sort manually because I am/be much too lazy to write a complicated seven pass tool for it :)
__
wolfgang



Subject: Re: duplicates
From: Kerr-Mudd,John
Newsgroups: comp.lang.asm.x86
Organization: dis
Date: Thu, 27 Jun 2019 09:35 UTC
References: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder.eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: notsay...@nospicedham.invalid.org (Kerr-Mudd,John)
Newsgroups: comp.lang.asm.x86
Subject: Re: duplicates
Date: Thu, 27 Jun 2019 09:35:22 -0000 (UTC)
Organization: dis
Lines: 43
Approved: fbkotler@myfairpoint.net - comp.lang.asm.x86 moderation team.
Message-ID: <XnsAA7B6BBBEB705admin127001@144.76.35.198>
References: <XnsAA3BABC168A01admin127001@144.76.35.198> <q9qh8b$1jfu$1@gioia.aioe.org> <XnsAA3BDE7198B3Eadmin127001@144.76.35.198> <XnsAA3DAFB997CF2admin127001@144.76.35.198> <XnsAA3DC6A646656admin127001@144.76.35.198> <XnsAA3EB7CD1A25Eadmin127001@144.76.35.198> <qa6pai$17vn$1@gioia.aioe.org> <XnsAA40E0079AA51admin127001@144.76.35.198> <qabk28$1e3l$1@gioia.aioe.org> <XnsAA42697BC3344admin127001@144.76.35.198> <XnsAA49A37D5A196admin127001@144.76.35.198> <XnsAA4EA866F5B66admin127001@144.76.35.198> <qbcgmj$qlq$1@gioia.aioe.org> <XnsAA4F5C0792D8Badmin127001@144.76.35.198> <XnsAA5EACD7161F9admin127001@144.76.35.198> <qetjmf$tlu$1@gioia.aioe.org> <qf1l0n$lon$1@gioia.aioe.org>
Injection-Info: h2725194.stratoserver.net; posting-host="8f0adc65ef191477c42fa446df468413";
logging-data="11336"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/Kji4YJBENdNFOVbcUVE0amwx7lBW2Cz0="
User-Agent: Xnews/2006.08.24
Cancel-Lock: sha1:gZ4ykf14KANuTA1qeBgv8BkYYxA=
View all headers
On Thu, 27 Jun 2019 05:35:40 GMT, wolfgang kern
<nowhere@nospicedham.never.at> wrote:

ready to continue...

what I see so far is:
* neat trick with SI,BP,DX on start, but wouldn't max.BP+CX segfault ?
Oh dear, I've not tried it on a big file.

* it works on 0A 0D terminated text-strings of variable size.

It should be 0D 0A, I must have coded it the wrong way about, as the
either the assembler swaps them or I'd assumed it did.

   [no intention to work on OD 0A or single byte end marks too?]

Hmm, no, not yet. I think currently the code relies on having both.

* trailing spaces were ignored.

and leading, I hope.

* cant see where/how a duplicate string goes to screen.

I'll have to review my code; I haven't looked at it for a month or so!
I've been drawing a flashing box on the screen. (88 bytes best so far).


methink the sense of such code is to test sort-routines.

I never thought it'd be much use, I did it for the challenge.

I had to check my multi pass sort manually because I am/be much too
lazy
to write a complicated seven pass tool for it :)





--
Bah, and indeed, Humbug.



Subject: Re: duplicates
From: Kerr-Mudd,John
Newsgroups: comp.lang.asm.x86
Organization: dis
Date: Thu, 27 Jun 2019 10:19 UTC
References: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder.eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: notsay...@nospicedham.invalid.org (Kerr-Mudd,John)
Newsgroups: comp.lang.asm.x86
Subject: Re: duplicates
Date: Thu, 27 Jun 2019 10:19:25 -0000 (UTC)
Organization: dis
Lines: 19
Approved: fbkotler@myfairpoint.net - comp.lang.asm.x86 moderation team.
Message-ID: <XnsAA7B73342AE6Aadmin127001@144.76.35.198>
References: <XnsAA3BABC168A01admin127001@144.76.35.198> <q9qh8b$1jfu$1@gioia.aioe.org> <XnsAA3BDE7198B3Eadmin127001@144.76.35.198> <XnsAA3DAFB997CF2admin127001@144.76.35.198> <XnsAA3DC6A646656admin127001@144.76.35.198> <XnsAA3EB7CD1A25Eadmin127001@144.76.35.198> <qa6pai$17vn$1@gioia.aioe.org> <XnsAA40E0079AA51admin127001@144.76.35.198> <qabk28$1e3l$1@gioia.aioe.org> <XnsAA42697BC3344admin127001@144.76.35.198> <XnsAA49A37D5A196admin127001@144.76.35.198> <XnsAA4EA866F5B66admin127001@144.76.35.198> <qbcgmj$qlq$1@gioia.aioe.org> <XnsAA4F5C0792D8Badmin127001@144.76.35.198> <XnsAA5EACD7161F9admin127001@144.76.35.198> <qetjmf$tlu$1@gioia.aioe.org> <qf1l0n$lon$1@gioia.aioe.org> <XnsAA7B6BBBEB705admin127001@144.76.35.198>
Injection-Info: h2725194.stratoserver.net; posting-host="fca0bcd0448b8eb223fabc93085d9f25";
logging-data="11961"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+WEeiqcP96WAXYzWpe+FpwLl8UBLoPLNw="
User-Agent: Xnews/2006.08.24
Cancel-Lock: sha1:lU80vZJWP0Xex7cBtAFHT8NitgA=
View all headers
On Thu, 27 Jun 2019 09:35:22 GMT, "Kerr-Mudd,John"
<notsaying@nospicedham.invalid.org> wrote:

On Thu, 27 Jun 2019 05:35:40 GMT, wolfgang kern
<nowhere@nospicedham.never.at> wrote:

ready to continue...
[]
* cant see where/how a duplicate string goes to screen.

It should *either* (default) print dupes, or, if /d passed
('/deleteduplicates'), print non-dupes. The output buffer is written at the
end (DOS int 21 fn x40).



--
Bah, and indeed, Humbug.



Subject: Re: duplicates
From: Kerr-Mudd,John
Newsgroups: comp.lang.asm.x86
Organization: dis
Date: Thu, 27 Jun 2019 13:35 UTC
References: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder.eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: notsay...@nospicedham.invalid.org (Kerr-Mudd,John)
Newsgroups: comp.lang.asm.x86
Subject: Re: duplicates
Date: Thu, 27 Jun 2019 13:35:35 -0000 (UTC)
Organization: dis
Lines: 24
Approved: fbkotler@myfairpoint.net - comp.lang.asm.x86 moderation team.
Message-ID: <XnsAA7B94787C815admin127001@144.76.35.198>
References: <XnsAA3BABC168A01admin127001@144.76.35.198> <q9qh8b$1jfu$1@gioia.aioe.org> <XnsAA3BDE7198B3Eadmin127001@144.76.35.198> <XnsAA3DAFB997CF2admin127001@144.76.35.198> <XnsAA3DC6A646656admin127001@144.76.35.198> <XnsAA3EB7CD1A25Eadmin127001@144.76.35.198> <qa6pai$17vn$1@gioia.aioe.org> <XnsAA40E0079AA51admin127001@144.76.35.198> <qabk28$1e3l$1@gioia.aioe.org> <XnsAA42697BC3344admin127001@144.76.35.198> <XnsAA49A37D5A196admin127001@144.76.35.198> <XnsAA4EA866F5B66admin127001@144.76.35.198> <qbcgmj$qlq$1@gioia.aioe.org> <XnsAA4F5C0792D8Badmin127001@144.76.35.198> <XnsAA5EACD7161F9admin127001@144.76.35.198> <qetjmf$tlu$1@gioia.aioe.org>
Injection-Info: h2725194.stratoserver.net; posting-host="fca0bcd0448b8eb223fabc93085d9f25";
logging-data="15054"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX192sHEh1gBBINx7lP00p0970Bwq/8QEDqM="
User-Agent: Xnews/2006.08.24
Cancel-Lock: sha1:BAosITrIK2V1ulzYJlBOFsoucEI=
View all headers
On Tue, 25 Jun 2019 16:48:44 GMT, wolfgang kern
<nowhere@nospicedham.never.at> wrote:

On 29.05.2019 17:59, Kerr-Mudd,John wrote:

On the mend, I hope? Anyone in contact with Wolfgang?

Took me a while to resurrect my worn body. and with the help
of a some scientists I'm almost new reborn yet. Today I left
hospital and I'm still a bit tired because filled with drugs
for some more days.
At least I'm back and ready to continue soon.
__
wolfgang
 

Welcome Back! (I though I'd posted something before looking at code, but
it went missing)



--
Bah, and indeed, Humbug.



Subject: Re: duplicates
From: wolfgang kern
Newsgroups: comp.lang.asm.x86
Organization: KESYS-development
Date: Fri, 28 Jun 2019 04:25 UTC
References: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder.eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: nowh...@nospicedham.never.at (wolfgang kern)
Newsgroups: comp.lang.asm.x86
Subject: Re: duplicates
Date: Fri, 28 Jun 2019 06:25:58 +0200
Organization: KESYS-development
Lines: 14
Approved: fbkotler@myfairpoint.net - comp.lang.asm.x86 moderation team.
Message-ID: <qf45a4$1ra3$1@gioia.aioe.org>
References: <XnsAA3BABC168A01admin127001@144.76.35.198>
<q9qh8b$1jfu$1@gioia.aioe.org> <XnsAA3BDE7198B3Eadmin127001@144.76.35.198>
<XnsAA3DAFB997CF2admin127001@144.76.35.198>
<XnsAA3DC6A646656admin127001@144.76.35.198>
<XnsAA3EB7CD1A25Eadmin127001@144.76.35.198> <qa6pai$17vn$1@gioia.aioe.org>
<XnsAA40E0079AA51admin127001@144.76.35.198> <qabk28$1e3l$1@gioia.aioe.org>
<XnsAA42697BC3344admin127001@144.76.35.198>
<XnsAA49A37D5A196admin127001@144.76.35.198>
<XnsAA4EA866F5B66admin127001@144.76.35.198> <qbcgmj$qlq$1@gioia.aioe.org>
<XnsAA4F5C0792D8Badmin127001@144.76.35.198>
<XnsAA5EACD7161F9admin127001@144.76.35.198> <qetjmf$tlu$1@gioia.aioe.org>
<qf1l0n$lon$1@gioia.aioe.org> <XnsAA7B6BBBEB705admin127001@144.76.35.198>
<XnsAA7B73342AE6Aadmin127001@144.76.35.198>
Reply-To: nowhere@never.at
Mime-Version: 1.0
Content-Type: text/plain; charset=windows-1252; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Info: h2725194.stratoserver.net; posting-host="ec6b483e5572ced9d4fd1d84d8d46b60";
logging-data="27462"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19UnBwC/M5nCi28mPx/rMQJwkHYoK0YIt4="
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:66.0) Gecko/20100101
Thunderbird/66.0
Cancel-Lock: sha1:cyj+jRes4MKYh/Jeu4xIdHuTenc=
View all headers
On 27.06.2019 12:19, Kerr-Mudd,John wrote:

[]
* cant see where/how a duplicate string goes to screen.

It should *either* (default) print dupes, or, if /d passed
('/deleteduplicates'), print non-dupes. The output buffer is written at the
end (DOS int 21 fn x40).

Ok, I thought it writes the corrected buffer back to where it came from.
it's about forty years ago when I last programmed DOS-apps...
__
wolfgang



Subject: Re: duplicates
From: Terje Mathisen
Newsgroups: comp.lang.asm.x86
Organization: Aioe.org NNTP Server
Date: Fri, 28 Jun 2019 07:49 UTC
References: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder.eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: terje.ma...@nospicedham.tmsw.no (Terje Mathisen)
Newsgroups: comp.lang.asm.x86
Subject: Re: duplicates
Date: Fri, 28 Jun 2019 09:49:35 +0200
Organization: Aioe.org NNTP Server
Lines: 53
Approved: fbkotler@myfairpoint.net - comp.lang.asm.x86 moderation team.
Message-ID: <qf4gqe$1c35$1@gioia.aioe.org>
References: <XnsAA3BABC168A01admin127001@144.76.35.198>
<q9qh8b$1jfu$1@gioia.aioe.org> <XnsAA3BDE7198B3Eadmin127001@144.76.35.198>
<XnsAA3DAFB997CF2admin127001@144.76.35.198>
<XnsAA3DC6A646656admin127001@144.76.35.198>
<XnsAA3EB7CD1A25Eadmin127001@144.76.35.198> <qa6pai$17vn$1@gioia.aioe.org>
<XnsAA40E0079AA51admin127001@144.76.35.198> <qabk28$1e3l$1@gioia.aioe.org>
<XnsAA42697BC3344admin127001@144.76.35.198>
<XnsAA49A37D5A196admin127001@144.76.35.198>
<XnsAA4EA866F5B66admin127001@144.76.35.198> <qbcgmj$qlq$1@gioia.aioe.org>
<XnsAA4F5C0792D8Badmin127001@144.76.35.198>
<XnsAA5EACD7161F9admin127001@144.76.35.198> <qetjmf$tlu$1@gioia.aioe.org>
<qf1l0n$lon$1@gioia.aioe.org> <XnsAA7B6BBBEB705admin127001@144.76.35.198>
<XnsAA7B73342AE6Aadmin127001@144.76.35.198>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Info: h2725194.stratoserver.net; posting-host="ec6b483e5572ced9d4fd1d84d8d46b60";
logging-data="30344"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/RASGpVmD0jwO5nXfzj5YyFbiu2IYNG9U="
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101
Firefox/52.0 SeaMonkey/2.49.4
Cancel-Lock: sha1:TS2m1l36NRN9i+2D47+GXvawYC0=
View all headers
Kerr-Mudd,John wrote:
On Thu, 27 Jun 2019 09:35:22 GMT, "Kerr-Mudd,John"
<notsaying@nospicedham.invalid.org> wrote:

On Thu, 27 Jun 2019 05:35:40 GMT, wolfgang kern
<nowhere@nospicedham.never.at> wrote:

ready to continue...
[]
* cant see where/how a duplicate string goes to screen.

It should *either* (default) print dupes, or, if /d passed
('/deleteduplicates'), print non-dupes. The output buffer is written at the
end (DOS int 21 fn x40).

This is more or less the standard unix uniq tool I believe?

I.e. this will also either remove all duplicates from a previously sorted array of lines, or output the dup'ed lines.

I have written one like this in Pascal, the interesting part happens when you make the "is equal" requirement less strict:

I.e. ignore case, ignore trailing (and leading?) white space?

Collapse all strings of white space (space/tab) into a single space?

In order to do it efficiently you need to double your input line buffer, so that after reading a line you immediately collapse it into the generic form, then you compare this with the similarly processed version of the previous line.

When you need to output something, you should of course always use the original version of the line!

BTW, if there is to be an exact match, no conversion, the conversion function can be one that simply returns the input pointer instead of allocating/using a separate buffer.

You create one conversion function for each basic piece of pre-processing to be done, then you have aggregate functions that simply call down to multiple of these to cover combinations.

At runtime a function pointer directs processing to the currently selected path, so no test/branch anywhere before the final line-vs-line compare results are known.

Terje

--
- <Terje.Mathisen at tmsw.no>
"almost all programming can be viewed as an exercise in caching"



1
rocksolid light 0.7.2
clearneti2ptor