[aplusdev] Source code change to src/a/u.c to report DOS text APL script corruption
Art
pinaart at yahoo.com
Fri Mar 28 11:31:05 EST 2003
Hi John,
I last communicated with you on 3/25 and
you expressed interest in the source changes I was
planning to make to provide more info about "why"
invisible statements were "undefined". The problem
was that I somehow created a DOS text file which
a+ didn't like.
Here's the code I added to provide more feedback,
since I agree that accepting garbage will lead
to more garbage later.
In file: src/a/u.c
I updated the code for function exm() at line 617:
I e,z,l;
if(mode==APL && *(expstr+(l=strlen(expstr))-1)=='\r'){
fprintf(stderr, "Error: Not an APL script - Has "
"trailing carriage return. Looks like DOS text\n");
*(expstr-1)='\0';
fprintf(stderr, " %s\n", expstr);
R -1;
}
The APL script fix is trivial with Vim, You just do:
:set ff=unix
:w!
BTW, I Bcc'd Adrian, since I haven't heard back from him, so
I don't know if I'm spamming him too much. :->
Oh - I had a dicken's of a time building the code under Linux!
I had gcc 3.4 and it just wouldn't do right!
So, I downgraded to 2.95 and ran into other problems, them moved
up the food chain through 2.96, 3.2, 3.2.7, then down to 3.2-1.
I must've not paid attention, because my configuration integrity
was broken until the 3.2-1. Even, then, I failed to do a "make clean"
which caused me a little grief - I did it, then all worked like
a charm! It took approximately 30 minutes to build on my 1.7GHz P4
vs 4 hours under Windows/Cygwin - which, btw had no configuration
issues! (Well, the admin overhead was two days for Linux. :-)
Best Regards,
Art
__________________________________________________
Do you Yahoo!?
Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop!
http://platinum.yahoo.com
More information about the apluslist
mailing list