[fpc-pascal] Visual studio code

2023-08-11 Thread Darius Blaszyk via fpc-pascal
Quick question for you all. Has anyone here worked with Visual Studio Code for Free Pascal? I've got the Free Pascal Toolkit plugin up and running, but I'm hitting a bit of a roadblock with setting up GDB debugging. After installing GDB Debugger - Beyond I still cant debug my app upon setting a

[fpc-pascal] Parse JSON

2023-06-25 Thread Darius Blaszyk via fpc-pascal
Hi all, I've hardly done anything with JSON in Freepascal before, so apologies for the trivial question. I want to traverse an array in JSON and retrieve the elements (which I don't know what they are in advance) one by one. An example of the JSON file is given below. "keywords": { "ke

Re: [fpc-pascal] Writing Pascal Physics and Vectors

2021-10-16 Thread Darius Blaszyk via fpc-pascal
;) > >> On 10/16/21 2:58 AM, Darius Blaszyk via fpc-pascal wrote: >> Can you put the link up to the source code please? >>>> On 16 Oct 2021, at 00:27, Anthony Walter via fpc-pascal >>>> wrote: >>> [...] >>> https://www.getlazarus.org/videos

Re: [fpc-pascal] Writing Pascal Physics and Vectors

2021-10-15 Thread Darius Blaszyk via fpc-pascal
Hi Anthony, Can you put the link up to the source code please? Rgds, Darius Sent from my iPhone > On 16 Oct 2021, at 00:27, Anthony Walter via fpc-pascal > wrote: > >  > I've been working on writing Pascal bindings a friendly object orient > interface to a few open source projects. I have

[fpc-pascal] Remove last character from pchar

2021-06-10 Thread Darius Blaszyk via fpc-pascal
Hi, I am a bit struggling with what should be fairly simple. I have a pchar where I am adding and removing characters. What I did so far is to allocate new memory every time and copying the source pchar over to a new one to append or delete a character. This required two helper variables in order

Re: [fpc-pascal] Pass type as function parameter

2021-03-24 Thread Darius Blaszyk via fpc-pascal
Thank you so much Michael! On Wed, Mar 24, 2021 at 11:05 AM Michael Van Canneyt wrote: > > > On Wed, 24 Mar 2021, Darius Blaszyk via fpc-pascal wrote: > > > Hi, > > > > Would it be possible in FPC to pass a type of a variable as a parameter > to > > a

[fpc-pascal] Pass type as function parameter

2021-03-24 Thread Darius Blaszyk via fpc-pascal
Hi, Would it be possible in FPC to pass a type of a variable as a parameter to a function? e.g. MyFunction(integer); I have legacy C code that does this via a macro. Hopefully, it can be done so I do not need to change the existing code too badly. TIA Rgds, Darius ___

Re: [fpc-pascal] Graphing library

2020-11-17 Thread Darius Blaszyk via fpc-pascal
s an old paper about the GKS system: > http://nsucgcourse.github.io/lectures/Lecture01/Materials/Graphical%20Kernel%20System.pdf > > The translator GOUTHGPL supports only a small subset of GKS; see again the > example picture above. > > If you are interested for more details, yo

[fpc-pascal] Graphing library

2020-11-15 Thread Darius Blaszyk via fpc-pascal
Hi, I am looking for a simple to use non-visual graphing library to produce x-y plots in a raster file format (similar to how pyplot works). Rather than developing something from scratch or writing a wrapper to GNU plot (additional dependency), I was hoping something like this already would exist

Re: [fpc-pascal] Archive libraries

2020-08-22 Thread Darius Blaszyk via fpc-pascal
Thank you Michael! On Sat, Aug 22, 2020 at 9:31 AM Michael Van Canneyt wrote: > > > On Sat, 22 Aug 2020, Darius Blaszyk via fpc-pascal wrote: > > > On Thu, Aug 20, 2020 at 11:43 PM Darius Blaszyk > > wrote: > > > >> > >> I have done so for the

Re: [fpc-pascal] Archive libraries

2020-08-22 Thread Darius Blaszyk via fpc-pascal
On Thu, Aug 20, 2020 at 11:43 PM Darius Blaszyk wrote: > > I have done so for the xz format already. The code checks first if the > utility is available and then invokes it. Potentially any other utility > might be included that way. However, I was hoping to include mainly native > libraries wher

Re: [fpc-pascal] Archive libraries

2020-08-22 Thread Darius Blaszyk via fpc-pascal
Thank you Marco! I will have a look at it. Darius On Fri, Aug 21, 2020 at 11:04 AM Marco Borsari via fpc-pascal < fpc-pascal@lists.freepascal.org> wrote: > Il 20/08/2020 17:10, Darius Blaszyk via fpc-pascal ha scritto: > > > To my delight I found out that FPC actually pr

Re: [fpc-pascal] Archive libraries

2020-08-20 Thread Darius Blaszyk via fpc-pascal
On Thu, Aug 20, 2020 at 5:58 PM Tomas Hajny via fpc-pascal < fpc-pascal@lists.freepascal.org> wrote: > > bzip2 is directly supported in FPC packages as well. > I had a second look at the bzip2 unit. Unless I am missing something this unfortunately looks to be a decompression only implementation!

Re: [fpc-pascal] Archive libraries

2020-08-20 Thread Darius Blaszyk via fpc-pascal
> As a last resort, one might invoke the required archiver > executable, passing to it any necessary parameters. Far > Manager's MultiArc universal plugin works exactly that way, > and is easily configurable via invocation patterns with > macros. > I have done so for the xz format already. The co

Re: [fpc-pascal] Archive libraries

2020-08-20 Thread Darius Blaszyk via fpc-pascal
< fpc-pascal@lists.freepascal.org> wrote: > On 2020-08-20 17:10, Darius Blaszyk via fpc-pascal wrote: > > > Hi, > > > To my delight I found out that FPC actually provides quite a few > > archive > > handling libraries out of the box. Thanks to all that hav

[fpc-pascal] Archive libraries

2020-08-20 Thread Darius Blaszyk via fpc-pascal
Hi all, To my delight I found out that FPC actually provides quite a few archive handling libraries out of the box. Thanks to all that have contributed to that! So far I found: * tar * tar.gz * zip Are there any other formats out there that I could use like out of the box? TIA! Darius

Re: [fpc-pascal] FPC buildbot

2020-08-19 Thread Darius Blaszyk via fpc-pascal
form across platforms. I'm happy to finally have a buildbot tool with "zero" configuration that provides me daily snapshots over different platforms. Rgds, Darius On Tue, Aug 4, 2020 at 1:58 PM Joost van der Sluis wrote: > > Op 20-07-2020 om 11:31 schreef Darius Blaszyk via fpc-p

Re: [fpc-pascal] FPC buildbot

2020-07-20 Thread Darius Blaszyk via fpc-pascal
eef Darius Blaszyk via fpc-pascal: > > > I was looking for the sources of a buildbot suitable for an FPC project. > I would like to keep it as simple as possible, so no webserver hassle for > instance. Just simply repo sync, build, run test suite and upload to ftp. I > know b

[fpc-pascal] FPC buildbot

2020-07-15 Thread Darius Blaszyk via fpc-pascal
Hi all, I was looking for the sources of a buildbot suitable for an FPC project. I would like to keep it as simple as possible, so no webserver hassle for instance. Just simply repo sync, build, run test suite and upload to ftp. I know buildbot.net but I was hoping on finding something specific

[fpc-pascal] Database migration

2020-06-19 Thread Darius Blaszyk via fpc-pascal
Hi all, After spending the last 12 months working intensively on a PHP based project, I moved back to FPC once again for another project. One of the more interesting concepts working in PHP was migrations. These are simple scripts that define the columns in a database table including indexes and f