Re: [fpc-devel] OS2 DOSCALLS and timezone

2014-04-07 Thread waldo kitty
On 4/7/2014 2:23 PM, Tomas Hajny wrote: On 7 Apr 14, at 12:47, waldo kitty wrote: i've a need to work with the OS2 timezone parameter in the OS' system clock... Which "parameter" do you mean, DosCalls.TDateTime (aka _DATETIME defined in OS/2 headers for C)? ummm... ??? hahaha... i dunno...

Re: [fpc-devel] Pascal to Javascript - Call for Help

2014-04-07 Thread Marcos Douglas
On Mon, Apr 7, 2014 at 5:44 AM, Michael Van Canneyt wrote: > > > On Sat, 5 Apr 2014, Marcos Douglas wrote: > >>> >>> Michael. >> >> >> Hi Michael, >> >> A first little patch. >> In line 1101 -- Function TPasToJSConverter.ConvertRepeatStatement -- >> you need to put a "raise" >> >> ===code=== >> e

Re: [fpc-devel] OS2 DOSCALLS and timezone

2014-04-07 Thread Tomas Hajny
On 7 Apr 14, at 12:47, waldo kitty wrote: > i've a need to work with the OS2 timezone parameter in the OS' system > clock... Which "parameter" do you mean, DosCalls.TDateTime (aka _DATETIME defined in OS/2 headers for C)? > i'm not understanding a few things and haven't been able to figure

[fpc-devel] OS2 DOSCALLS and timezone

2014-04-07 Thread waldo kitty
i've a need to work with the OS2 timezone parameter in the OS' system clock... i'm not understanding a few things and haven't been able to figure out the code path so i'm writing here to ask for some assistance... if this should be in the user's list, please let me know and i'll move the conve

[fpc-devel] Range check with array of const, and dword?

2014-04-07 Thread Martin Frb
Is the following supposed to give a range check? 2.6.4 on win The value is correct for a DWord. program Project1; {$R+} uses sysutils; var n: DWORD; s: String; begin n := $C2001122; s := Format('%x', [n]); // range check here writeln(s); readln; end. ___

Re: [fpc-devel] minor spelling glitch in FPImage.pp

2014-04-07 Thread Reinier Olislagers
On 06/04/2014 12:32, Reinier Olislagers wrote: > ... patch for spelling glitch attached to issue; it keeps old spelling > as deprecated. FPC/RTL/FCL compiles fine with it. Haven't tested it with > applications. > Went through the rest of the FPC code tree; patch in issue 25979 Regards, Reinier _

Re: [fpc-devel] Extentions/extensions in fpmimetypes.pp

2014-04-07 Thread Michael Van Canneyt
On Mon, 7 Apr 2014, Michael Van Canneyt wrote: On Mon, 7 Apr 2014, Reinier Olislagers wrote: Noticed this in fpmimetypes.pp: Type TMimeType = Class(TObject) private FExtensions: String; FExtentions: String; ... Public ... Property Extensions : String Read FExtensions Write FExt

Re: [fpc-devel] Extentions/extensions in fpmimetypes.pp

2014-04-07 Thread Michael Van Canneyt
On Mon, 7 Apr 2014, Reinier Olislagers wrote: Noticed this in fpmimetypes.pp: Type TMimeType = Class(TObject) private FExtensions: String; FExtentions: String; ... Public ... Property Extensions : String Read FExtensions Write FExtentions; end; I wonder if this is correct? If it

[fpc-devel] Extentions/extensions in fpmimetypes.pp

2014-04-07 Thread Reinier Olislagers
Noticed this in fpmimetypes.pp: Type TMimeType = Class(TObject) private FExtensions: String; FExtentions: String; ... Public ... Property Extensions : String Read FExtensions Write FExtentions; end; I wonder if this is correct? If it is really meant to read from one variable an

Re: [fpc-devel] i8086 huge pointers

2014-04-07 Thread Max Nazhalov
Monday, April 7, 2014, Nikolay Nikolov wrote: NN> Back in the old days, I never used huge pointers, because I wrote in NN> Turbo Pascal, which didn't have them, so I don't have an opinion which NN> way is better. I've rechecked -- and yes, You are right, BP7 RTL itself uses SelectorInc only in DP

Re: [fpc-devel] i8086 huge pointers

2014-04-07 Thread Nikolay Nikolov
On 04/07/2014 12:10 PM, Tomas Hajny wrote: On Mon, April 7, 2014 10:56, Nikolay Nikolov wrote: . . Ok, I just added this constant to the msdos rtl (r27497). However, as far as BP7 compatibility is concerned, it doesn't really matter which huge pointer model we use, because BP7 doesn't have a

Re: [fpc-devel] i8086 huge pointers

2014-04-07 Thread Tomas Hajny
On Mon, April 7, 2014 10:56, Nikolay Nikolov wrote: . . > Ok, I just added this constant to the msdos rtl (r27497). However, as > far as BP7 compatibility is concerned, it doesn't really matter which > huge pointer model we use, because BP7 doesn't have a huge pointer type > and in fact, it doesn

Re: [fpc-devel] i8086 huge pointers

2014-04-07 Thread Nikolay Nikolov
On 04/07/2014 03:51 AM, Max Nazhalov wrote: Sunday, April 6, 2014, Nikolay Nikolov wrote: NN> Back in the old days, I never used huge pointers, because I wrote in Turbo Pascal, NN> which didn't have them, so I don't have an opinion which way is better. NN> So, which way should FPC for i8086 fol

Re: [fpc-devel] Pascal to Javascript - Call for Help

2014-04-07 Thread Michael Van Canneyt
On Sat, 5 Apr 2014, Marcos Douglas wrote: Michael. Hi Michael, A first little patch. In line 1101 -- Function TPasToJSConverter.ConvertRepeatStatement -- you need to put a "raise" ===code=== except FreeAndNil(B); FreeAndNil(C); raise; end; ===code=== Thank you. There wer

Re: [fpc-devel] Pascal to Javascript - Call for Help

2014-04-07 Thread Michael Schnell
On 04/07/2014 10:16 AM, Michael Van Canneyt wrote: I don't want Java. Just plain HTML and Javascript, standards-compliant. I see. This does make sense. But I see no reason why you would not be able to use the jvm to do what you want. I have no idea how to integrate Java Byte Code in a HTML

Re: [fpc-devel] Pascal to Javascript - Call for Help

2014-04-07 Thread Michael Van Canneyt
On Mon, 7 Apr 2014, Michael Schnell wrote: On 04/05/2014 11:48 AM, Michael Van Canneyt wrote: I've finally committed a first version of the pascal-to-javascript conversion engine. GREAT ! Thanks ! One additional side-chain thought: I understand that the goal is to allow to compile Pascal

Re: [fpc-devel] Pascal to Javascript - Call for Help

2014-04-07 Thread Michael Schnell
Another slightly related question: did anybody try to use the fpc to Java-Byte-Code compiler to create "server-site Java" CGI applications (to get around the arch-dependance of native compiled fpc programs) ? -Michael ___ fpc-devel maillist - fpc-de

Re: [fpc-devel] Pascal to Javascript - Call for Help

2014-04-07 Thread Michael Schnell
On 04/05/2014 11:48 AM, Michael Van Canneyt wrote: I've finally committed a first version of the pascal-to-javascript conversion engine. GREAT ! Thanks ! One additional side-chain thought: I understand that the goal is to allow to compile Pascal programs to be able to run inside a Browser.