On 02/15/2012 10:16 PM, James Adcock wrote:
I am interested in comparing your tool with my wdiff approach.
See:
1. Doesn't even compile because of the gratuitous use of M$ proprietary functions like fopen_s and _flushall. 2. Finally compiles but doesn't even get to print the help screen before it dumps core because of this: while (*pSep != chFileSeparator) --pSep; What happens if we have no separator or the separator is '/'? $ ./a.out Segmentation fault $ 3. And it can't do proper math: $ ./a.out -w 9999 ../publish/76/76.rst ~/Documents/76-test.rst Setting a -w parameter larger than 10,000 results in excessive run times $ 4. And when it finally runs, it runs slooooooooow and gives us this: { “*Dah,* | “DAH, } now, Huck, what I tell { you? } { — } { what | you?—what } I tell you up dah on Jackson islan'? { I | I } { TOLE | *tole* } you I got a hairy breas', en what's de sign un it; en I { TOLE | *tole* } you I ben rich wunst, en gwineter to be rich { AGIN; | *agin;* } en it's come true; en heah she { is! | *is! } { DAH, | Dah,* } now! { doan’ | doan' } talk to { *me* } { — } { signs | ME—signs } is { SIGNS, | *signs,* } mine I tell you; en I knowed { jis’ | jis' } { ‘s | 's } well { ‘at | 'at } I { ‘uz | 'uz } gwineter be rich agin as I's { a-stannin’ | a-stannin' } heah dis minute!” What do I do with this mess? There are not even line numbers in this mess. -- Marcello Perathoner webmaster@gutenberg.org