Moving from C to D

bob blah at blah.com
Wed Jan 28 03:24:59 PST 2009


do IN become in maybe?

BLS Wrote:

> BCS wrote:
> > Reply to bob,
> > 
> >> sorry i copy wrong line. how do i do this line:
> >>
> >> int PASCAL FAR mycnt ( IN SOCKET s, IN const struct sockaddr FAR *name, 
> > IN int namelen );
> >>
> >> bob Wrote:
> >>
> > 
> > step 1 would be get the output from the preprocessor and take a look at 
> > it. I'm guessing that PASCAL, FAR and IN are macros
> > 
> > step 0 is try htod:   http://www.digitalmars.com/d/1.0/htod.html
> > 
> > 
> 
> I think
> int PASCAL FAR mycnt()
> becomes :
> extern (Pascal) int mycnt()
> 
> The FAR* thingy seems to be a 16 bit relict...
> 
> Guess the IN is not nessesary in D..., not sure though
> 
> Bjoern



More information about the Digitalmars-d-learn mailing list