[fpc-devel] Semaphore Support

2024-12-17 Thread Amir via fpc-devel
Hi,   I had a wrapper around fpc's Semaphore (psem_t), and implemented a Blocking Stack on top of it. I see my code does not work correctly for the following use case: I have defined a ThreadPool that each of its thread gets a data and may Push some  data into the stack while the main thread

[fpc-devel] Forward Record

2024-12-04 Thread Amir via fpc-devel
Hi,   I have a use-case where I needed to forward declare some records. The FPC documentation says "Note that a forward type declaration is only possible with pointer types and classes, not with other types".   I wonder why? Is there an

Re: [fpc-devel] Cannot create Merge Request

2024-01-03 Thread Amir--- via fpc-devel
+1 On 1/3/24 21:53, Christo Crause wrote: On Thu, Jan 4, 2024 at 6:18 AM Amir--- via fpc-devel wrote: I do not see the option to upload attach the patch file? In GitLab, scroll down to the bottom of the page showing your issue. There should be an edit box where you can type a new comment

Re: [fpc-devel] Cannot create Merge Request

2024-01-03 Thread Amir--- via fpc-devel
I do not see the option to upload attach the patch file? On 1/3/24 02:39, Michael Van Canneyt wrote: On Tue, 2 Jan 2024, Amir--- via fpc-devel wrote: Hi there, I never used gitlab before, so my question might be very stupid! I am trying to follow the instruction here <ht

[fpc-devel] Cannot create Merge Request

2024-01-02 Thread Amir--- via fpc-devel
Hi there, I never used gitlab before, so my question might be very stupid! I am trying to follow the instruction here to create a patch. I have created a Feature Request

[fpc-devel] PB2PAS: Proto Compiler for FPC

2021-02-25 Thread Amir via fpc-devel
Hi there,   I would like to share the proto compiler I developed and get some feedback on it as well.   The compiler's code is located https://github.com/AmirAavani/PB2PAS. The generated code(units) uses the units in https://github.com/AmirAavani/my-units/tree/master/PB2PAS.   I attached two

[fpc-devel] Do we need a TFPGMap.IsSorted method?

2020-09-01 Thread Amir via fpc-devel
Hi there,   The other day, I wanted to write a code to memorize and search some values (something like the following):     MyMap := TIntIntMap.Create;     for  i := 1 to ABigNumber do    MyMap.Insert(AnIncreasingFunction(i), ComputationallyExpensiveFunction(AnIncreasingFunction(i))); To