[aplusdev] Re: Source code change to src/a/u.c to report DOS text APL script
corruption
John.Mizel at morganstanley.com
John.Mizel at morganstanley.com
Fri Mar 28 14:57:48 EST 2003
Hi Art,
Thanks for the change, I'll add it to our code base. I also have some
changes and new features pending.
I'm suprized 2.96 caused you problems. Our next build will use some
release of 3.2, though we no longer have the hardware or resources to
create all the binaries we currently have available for 4.18-8.
Thanks,
John
On Fri, 28 Mar 2003, Art wrote:
> 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
>
This communication is intended for the addressee(s) and may contain
confidential and legally privileged information. We do not waive
confidentiality or privilege by mistransmission. If you have received
this communication in error, any use, dissemination, printing or
copying is strictly prohibited; please destroy all electronic and
paper copies and notify the sender immediately.
More information about the apluslist
mailing list