Problem on running dap's example
Susan Bassein <[email protected]>
| Newsgroups | gmane.comp.statistics.dap.user |
|---|---|
| Message-ID | <11911128.1076798510076.JavaMail.root@misspiggy.psp.pas.earthlink.net> |
Hi Swee Lee,
Thanks for the bug report. I re-installed dap-2.1 on my system and did not encounter the problem
that you did. What your original error message from the dap preprocessor:
dappp: amd128.c :7 : expected { , got
suggests is that there was some extraneous, non-visible character in the amd128.c file after the
right parenthesis since, after all, you did have a '{'. (Newlines are simply white space to the
preprocessor, so moving the '{' up a line should have no effect.) What happened next -- I'm
guessing
-- is that extraneous, non-visible character now prevented the preprocessor from processing the
declaration of the variable "treat".
One possibility -- does your system end lines with carriage return? I hadn't thought of that
because
GNU/Linux systems generally use newlines, but I'll incorporate that into the next release of
dap. If
that's the problem, you can edit dappp.c (in the src subdirectory): search for the function
named
"white" and change:
int white(int c)
{
return (c == ' ' || c == '\t' || c == '\n');
}
to:
int white(int c)
{
return (c == ' ' || c == '\t' || c == '\n' || c == '\r');
}
Please let me know if that helps. Thanks.
Also note that dap-3.0 is available, which has many improvements and bug-fixes (though not this
one!).
Please continue to report bugs and, if you use dap, please also send comments and suggestions to
[email protected]. Thanks!
Susan
--
Susan Bassein
[email protected]