[Shootout-list] Ada count-words
Marius Amado Alves
amado.alves@netcabo.pt
Sat, 26 Mar 2005 17:01:13 +0000
Thanks for processing the Ada count-words program.
The error is in the test script:
<<
/usr/bin/gnatchop -w wc.gnat-2.ada
splitting wc.gnat-2.ada into:
wc.adb
/usr/bin/gnatmake -gnatp -Wall -O3 -fomit-frame-pointer -funroll-loops
-f wc.gnat-2.adb -o wc.gnat-2.gnat_run
>>
GNATCHOP is producing "wc.adb" and the GNATMAKE command is attempting
to compile "wc.gnat-2.adb" (which does not exist).
Replace "wc.gnat-2.adb" by "wc.adb" in the GNATMAKE command.
Also, the program accepts the ASCII code in decimal for the end of line
terminator, as its single, optional, argument. It defaults to 10 (LF)
so on Unix or Linux it may be omitted. If you pass something, pass
either 10 (LF) or 13 (CR) depending on your system; don't pass just
anything.
Thanks.