[Info-vax] Dave Cutler, Prism, DEC, Microsoft, etc.
toby
toby at telegraphics.com.au
Wed Dec 16 19:04:01 EST 2009
On Dec 10, 11:28 am, JF Mezei <jfmezei.spam... at vaxination.ca> wrote:
> Richard B. Gilbert wrote:
> > I did some porting of VAX C to DEC C. It was mostly things like adding
> > function declarations to make the compiler stop issuing warning
> > messages. In the process I discovered and fixed an actual bug. ISTR
> > that it was a subscript range problem.
>
> For me, it was all the use of the & in front of variables containing
> character arrays. I had learned C that way. Had to change and review all
> character strings references. For instance &mystring was no longer
> valid under dec-d, but *mystring[0] was.
ITYM: &mystring[0]
In a standard C compiler where mystring is an array,
mystring , &mystring , or &mystring[0] are all the same pointer.
> So I couldn't do just global
> changes.
More information about the Info-vax
mailing list