Re: [Freedos-devel] Problem with procedural types in 16-bit DOS FreePascal

2022-11-08 Thread Aitor Santamaría
Hello Ralf, On Tue, 8 Nov 2022 at 02:16, Ralf Quint wrote: > On 11/7/2022 4:56 PM, Aitor Santamaría wrote: > > > After all, if you declare a procedure to be far is because you want it to > be called far, right? > > I have not tried anything like this with 16bit FPC, but in BP7 (and > probably

Re: [Freedos-devel] Problem with procedural types in 16-bit DOS FreePascal

2022-11-07 Thread Ralf Quint
On 11/7/2022 4:56 PM, Aitor Santamaría wrote: After all, if you declare a procedure to be far is because you want it to be called far, right? I have not tried anything like this with 16bit FPC, but in BP7 (and probably before that, but that's +30 years ago  ), procedural parameters have

Re: [Freedos-devel] Problem with procedural types in 16-bit DOS FreePascal

2022-11-07 Thread Aitor Santamaría
Hello! I simplified my email, but this is how it is actually being done :( Aitor On Mon, 7 Nov 2022 at 14:38, stefano cirilli wrote: > Hi, try to define the variable as a Type: > > I googled this: > Type TOneArg = Procedure (Var X : integer); on >

Re: [Freedos-devel] Problem with procedural types in 16-bit DOS FreePascal

2022-11-07 Thread Aitor Santamaría
Hello, On Mon, 7 Nov 2022 at 10:12, Rugxulo wrote: > Hi, > > On Sun, Nov 6, 2022 at 9:08 PM Jerome Shidel wrote: > > > > Make sure your compiling to the correct memory model. (I think huge, but > you’ll need to double check that) > > Default is Small, e.g. "-WmSmall". I assume "-WmCompact"

Re: [Freedos-devel] Problem with procedural types in 16-bit DOS FreePascal

2022-11-07 Thread Aitor Santamaría
Hello Jerome, On Mon, 7 Nov 2022 at 04:08, Jerome Shidel wrote: > Make sure your compiling to the correct memory model. (I think huge, but > you’ll need to double check that) > Compact is the one that gives me less problems (it's also the one that got most recommendations :) ). > You may

Re: [Freedos-devel] Problem with procedural types in 16-bit DOS FreePascal

2022-11-07 Thread Jerome Shidel
Hi Rugxulo, > On Nov 7, 2022, at 4:11 AM, Rugxulo wrote: > > Hi, > >> On Sun, Nov 6, 2022 at 9:08 PM Jerome Shidel wrote: >> >> Make sure your compiling to the correct memory model. (I think huge, but >> you’ll need to double check that) > > Default is Small, e.g. "-WmSmall". I assume

Re: [Freedos-devel] Problem with procedural types in 16-bit DOS FreePascal

2022-11-07 Thread stefano cirilli
Hi, try to define the variable as a Type: I googled this: Type TOneArg = Procedure (Var X : integer); on https://www.freepascal.org/docs-html/ref/refse17.html On 07/11/22 01:18, Aitor Santamaría wrote: > Hello, > > I am trying to recompile FD-KEYB using 16-bit DOS FreePascal, in order > to see

Re: [Freedos-devel] Problem with procedural types in 16-bit DOS FreePascal

2022-11-07 Thread Rugxulo
Hi, On Sun, Nov 6, 2022 at 9:08 PM Jerome Shidel wrote: > > Make sure your compiling to the correct memory model. (I think huge, but > you’ll need to double check that) Default is Small, e.g. "-WmSmall". I assume "-WmCompact" would work better for you? > You may need to ensure the actual

Re: [Freedos-devel] Problem with procedural types in 16-bit DOS FreePascal

2022-11-06 Thread Jerome Shidel
I’m not at my computer right now. So, this will just be rather vague…. Although I’ve used FPC/Lazarus for some things, I haven’t used it to create stuff to run under DOS. But, I have seen some weirdness regarding this sort of thing when targeting current GUIs. I forget the exact details.