Re: [fpc-devel] divide bcd's

2011-06-19 Thread LacaK
Hi Joost, try attached patch. For me it works as expected. -Laco. Maybe someone else can. If not, I think we should rewrite the whole function. Joost. --- fmtbcd.pp.ori Mon Jun 20 07:10:16 2011 +++ fmtbcd.pp Mon Jun 20 07:51:26 2011 @@ -2205,8 +2205,6 @@ writeln; bh1

Re: [fpc-devel] Hi listers, , , , I am trying to translate a C headerwith H2PAS

2011-06-19 Thread Hans-Peter Diettrich
Skybuck Flying schrieb: There is no configuration, or any configuration options. When View->Config is shown it shows nothing except "File: " and then more nothingness. The configuration resides in the project file (and #include files), via #pragma directives for e.g. the search path. Please

Re: [fpc-devel] void test( void *data ) to procedure test( var data ); ? is it safe ?

2011-06-19 Thread Hans-Peter Diettrich
Skybuck Flying schrieb: So now I am wondering if it's safe to convert: void test( void *data ) to procedure test( var data ); AFAIR this can cause problems, when the C code tests "data" for NULL. I don't want no strange stack problems or access violations or anything like that, so I h

Re: [fpc-devel] New language idea: Unified types (assignment size-compatible types).

2011-06-19 Thread Paul Dunn
On Sun, Jun 19, 2011 at 1:15 AM, Skybuck Flying wrote: > Here is a new language idea which would make Delphi a bit more friendly: Do the Embarcadero developers read this list? > First the problem: > > pointers and longwords are not assignment compatible. > > This is pretty much bullshit because

[fpc-devel] New language idea: Unified types (assignment size-compatible types).

2011-06-19 Thread Skybuck Flying
Hello, Here is a new language idea which would make Delphi a bit more friendly: First the problem: pointers and longwords are not assignment compatible. This is pretty much bullshit because they are the same size. Now the solution, create a new type which has the same size and make it "size c

[fpc-devel] void test( void *data ) to procedure test( var data ); ? is it safe ?

2011-06-19 Thread Skybuck Flying
I had to convert "void test( void *data)" to Delphi/Pascal. My first conversion was: procedure test( data : pointer ); The documentation of the test function seems to indicate that this function returns all kinds of pointers, so it's like a call by reference call. So I am starting to wonder if

Re: [fpc-devel] Hi listers, , , , I am trying to translate a C headerwith H2PAS

2011-06-19 Thread Skybuck Flying
There is no configuration, or any configuration options. When View->Config is shown it shows nothing except "File: " and then more nothingness. Bye, Skybuck. ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mail