Re: [fpc-pascal] C translation question

2016-10-24 Thread Ryan Joseph
I just got back to this problem now. Yes, changing it to a while loop fixed the little bug and cleans things up in the translation for sure. Thanks for the tip. > On Oct 24, 2016, at 3:20 AM, Bernd Oppolzer > wrote: > > int pnpoly (int nvert, float *vertx, float *verty, float testx, float test

Re: [fpc-pascal] C translation question

2016-10-24 Thread Lars
On Mon, October 24, 2016 5:20 am, José Mejuto wrote: > El 24/10/2016 a las 1:40, Lars escribió: > > >> Hi, what is the status of automated conversion tools? Last I remember >> reading about them was when I read a delphi page on how to convert >> header files. Are you saying that nowadways you can

Re: [fpc-pascal] C translation question

2016-10-24 Thread Lars
I previously wrote: > >> Are you saying that nowadways you can actually convert >> plain C code to fpc, Found this too: http://c2pas.sourceforge.net/ It says it can convert a large portion, but not all, obviously ___ fpc-pascal maillist - fpc-pascal@

Re: [fpc-pascal] C translation question

2016-10-24 Thread Lars
On Mon, October 24, 2016 8:00 pm, Lars wrote: > I previously wrote: > >> >>> Are you saying that nowadways you can actually convert >>> plain C code to fpc, > > Found this too: > > > http://c2pas.sourceforge.net/ > And there is also this interesting find: http://cc.embarcadero.com/item/26951 (C

Re: [fpc-pascal] importtl tool

2016-10-24 Thread LacaK
Dňa 24.10.2016 o 13:10 José Mejuto napísal(a): El 24/10/2016 a las 8:17, LacaK escribió: I'm not "sure" because if the flag does not tell us nothing (no IN, no OUT) I do not know if there is a "default behavior" except the "ByRef" flag and both "constref" and "var" are "ByRef". I have found: h

Re: [fpc-pascal] C translation question

2016-10-24 Thread José Mejuto
El 24/10/2016 a las 1:40, Lars escribió: Hi, what is the status of automated conversion tools? Last I remember reading about them was when I read a delphi page on how to convert header files. Are you saying that nowadways you can actually convert plain C code to fpc, not just header files but al

Re: [fpc-pascal] importtl tool

2016-10-24 Thread José Mejuto
El 24/10/2016 a las 8:17, LacaK escribió: I'm not "sure" because if the flag does not tell us nothing (no IN, no OUT) I do not know if there is a "default behavior" except the "ByRef" flag and both "constref" and "var" are "ByRef". I have found: https://msdn.microsoft.com/en-us/library/windows/