Re: [fpc-devel] I've asked this before, but perhaps I wasn't specific enough that time: what do I *personally*, specifically need to do to ensure that a native Windows 64-bit build winds up on the FPC

2022-01-12 Thread Michael Van Canneyt via fpc-devel
On Wed, 12 Jan 2022, Mattias Gaertner via fpc-devel wrote: On Wed, 12 Jan 2022 23:20:34 +0100 Sven Barth via fpc-devel wrote: [..] When compiling from a target supporting Extended to one only supporting Double there isn't a loss of precision when calculating values at compile time. The

Re: [fpc-devel] Now sure why this raises Runtime Error 216

2022-01-06 Thread Michael Van Canneyt via fpc-devel
On Thu, 6 Jan 2022, Ozz Nixon via fpc-devel wrote: Procedure Make_Language_File( Description,MenuPath,TextPath,QuestPath:String; Enabled:Boolean;SecurityLevel:Byte;Flags:Longint); Var FileSize:Longint; Begin Writeln('Language_File empty size is ',SizeOf(L)); FileSize:=0;

Re: [fpc-devel] jUnit output for fpcunit

2021-12-29 Thread Michael Van Canneyt via fpc-devel
On Wed, 29 Dec 2021, Joost van der Sluis via fpc-devel wrote: Op 29-12-2021 om 16:05 schreef Michael Van Canneyt via fpc-devel: On Wed, 29 Dec 2021, Joost van der Sluis via fpc-devel wrote: I'm trying to run my fpcunit unit-tests on Gitlab, and let Gitlab show the results. But it can

Re: [fpc-devel] jUnit output for fpcunit

2021-12-29 Thread Michael Van Canneyt via fpc-devel
On Wed, 29 Dec 2021, Joost van der Sluis via fpc-devel wrote: Hi all, I'm trying to run my fpcunit unit-tests on Gitlab, and let Gitlab show the results. But it can only handle JUnit-like xml. Does someone already have something lying around to convert the fpcunit format into junit?

Re: [fpc-devel] Functors

2021-12-26 Thread Michael Van Canneyt via fpc-devel
On Sun, 26 Dec 2021, Blaise--- via fpc-devel wrote: On 26.12.2021 19:33, Michael Van Canneyt via fpc-devel wrote: On Sun, 26 Dec 2021, Blaise--- via fpc-devel wrote: On 26.12.2021 11:50, Michael Van Canneyt via fpc-devel wrote: None of what is shown below cannot be handled by ordinary

Re: [fpc-devel] Functors

2021-12-26 Thread Michael Van Canneyt via fpc-devel
On Sun, 26 Dec 2021, Blaise--- via fpc-devel wrote: On 26.12.2021 11:50, Michael Van Canneyt via fpc-devel wrote: Please explain what's the point or benefit of this. Do you mean "in general", or "specifically to FPC"? A) In general: I reckon that the article covers t

Re: [fpc-devel] Functors

2021-12-26 Thread Michael Van Canneyt via fpc-devel
On Sun, 26 Dec 2021, Ryan Joseph via fpc-devel wrote: On Dec 26, 2021, at 3:50 PM, Michael Van Canneyt via fpc-devel wrote: I think the idea of using a fixed member identifier for special purposes is really stupid design. I'll never forgive Embarcadero their 'GetEnumerator' idea

Re: [fpc-devel] Functors

2021-12-26 Thread Michael Van Canneyt via fpc-devel
On Sun, 26 Dec 2021, Blaise--- via fpc-devel wrote: I propose that the support for https://en.wikipedia.org/wiki/Function_object be added to the FPC. Please explain what's the point or benefit of this. None of what is shown below cannot be handled by ordinary methods, and I find the

Re: [fpc-devel] Minor doc error about "const param"

2021-12-20 Thread Michael Van Canneyt via fpc-devel
On Mon, 20 Dec 2021, Bart via fpc-devel wrote: On Mon, Dec 20, 2021 at 12:07 PM Martin Frb via fpc-devel wrote: https://www.freepascal.org/docs-html/current/ref/refsu67.html#x183-20700014.4.4 > Specifying a parameter as Constant is giving the compiler a hint that the contents of the

Re: [fpc-devel] Minor doc error about "const param"

2021-12-20 Thread Michael Van Canneyt via fpc-devel
On Mon, 20 Dec 2021, Martin Frb via fpc-devel wrote: On 20/12/2021 12:29, Michael Van Canneyt wrote: On Mon, 20 Dec 2021, Martin Frb via fpc-devel wrote: Actually an commission, but an important one. https://www.freepascal.org/docs-html/current/ref/refsu67.html#x183-20700014.4.4

Re: [fpc-devel] Minor doc error about "const param"

2021-12-20 Thread Michael Van Canneyt via fpc-devel
On Mon, 20 Dec 2021, Martin Frb via fpc-devel wrote: Actually an commission, but an important one. https://www.freepascal.org/docs-html/current/ref/refsu67.html#x183-20700014.4.4 > Specifying a parameter as Constant is giving the compiler a hint that the contents of the parameter will not

Re: [fpc-devel] Fix for an annoying error

2021-11-30 Thread Michael Van Canneyt via fpc-devel
is raised, it may cause a cascade error if any of its functions are used in the unit because they're not declared. Gareth aka. Kit On 30/11/2021 16:22, Michael Van Canneyt via fpc-devel wrote: On Tue, 30 Nov 2021, J. Gareth Moreton via fpc-devel wrote: That was a conundrum I was trying to answer

Re: [fpc-devel] Fix for an annoying error

2021-11-30 Thread Michael Van Canneyt via fpc-devel
On Tue, 30 Nov 2021, J. Gareth Moreton via fpc-devel wrote: That was a conundrum I was trying to answer when making the patch.  What is a warning and what is an error? A lot of the verification code is dependent on compile-time constants whose values depend on the compiler's target

Re: [fpc-devel] tkLString vs tkAString

2021-11-30 Thread Michael Van Canneyt via fpc-devel
On Tue, 30 Nov 2021, Marc Weustink via fpc-devel wrote: Hi, I ran into an issue with a piece of ported Delphi (6) code and RTTI. Part of the Delphi code was based on strings with a RTTI type tkLString where in FPC the type appeared to be tkAString. Fixing this was easy, but it made me

Re: [fpc-devel] Optimisation and thread safety

2021-11-13 Thread Michael Van Canneyt via fpc-devel
On Fri, 12 Nov 2021, J. Gareth Moreton via fpc-devel wrote: Hi everyone, I have a question when it comes to optimising memory reads and writes.  What are the rules for FPC when it comes to writing to memory and then reading from it later within a single subroutine? For example, say I had

Re: [fpc-devel] Main build fails

2021-10-30 Thread Michael Van Canneyt via fpc-devel
Fixed. Michael. On Sat, 30 Oct 2021, J. Gareth Moreton via fpc-devel wrote: (Meant to send that to the Core team, sorry, but it's probably applicable here too) On 30/10/2021 18:33, J. Gareth Moreton via fpc-devel wrote: Hi everyone, It seems that as of this e-mail, the

Re: [fpc-devel] different fpc dir structure on different platforms?

2021-10-21 Thread Michael Van Canneyt via fpc-devel
On Wed, 20 Oct 2021, Jos Wegman via fpc-devel wrote: Hi, I have two virtual machines 1. Debian 11 2. Win 10 In both machines I want to install the fpc compiler from sourcecode. I create a base directory and two subdirectories. fpc -> fpcsrc   -> fpcbin I clone the sourcecode from

Re: [fpc-devel] Preparing 3.2.4, call for merge request and regressions

2021-09-27 Thread Michael Van Canneyt via fpc-devel
On Mon, 27 Sep 2021, LacaK via fpc-devel wrote: And I get then redirect to:

Re: [fpc-devel] Preparing 3.2.4, call for merge request and regressions

2021-09-27 Thread Michael Van Canneyt via fpc-devel
On Mon, 27 Sep 2021, LacaK via fpc-devel wrote: Hello, commit ab86ce7e62db2add637961e3ff98a7703c86cb2c Author: lacak Date:   Mon Jul 12 12:17:03 2021 + Sorry for so long list, but I absolutely do not understand how to do "cherry-pick" ... trying do it - I see there (in step 4: Pick

Re: [fpc-devel] Preparing 3.2.4, call for merge request and regressions

2021-09-27 Thread Michael Van Canneyt via fpc-devel
On Mon, 27 Sep 2021, LacaK via fpc-devel wrote: Hello, commit ab86ce7e62db2add637961e3ff98a7703c86cb2c Author: lacak Date:   Mon Jul 12 12:17:03 2021 + Sorry for so long list, but I absolutely do not understand how to do "cherry-pick" ... trying do it - I see there (in step 4: Pick

Re: [fpc-devel] Preparing 3.2.4, call for merge request and regressions

2021-09-27 Thread Michael Van Canneyt via fpc-devel
On Mon, 27 Sep 2021, LacaK via fpc-devel wrote: Dňa 27.9.2021 o 9:13 Michael Van Canneyt napísal(a): On Mon, 27 Sep 2021, LacaK via fpc-devel wrote: Hello, commit ab86ce7e62db2add637961e3ff98a7703c86cb2c Author: lacak Date:   Mon Jul 12 12:17:03 2021 + Sorry for so long list

Re: [fpc-devel] Preparing 3.2.4, call for merge request and regressions

2021-09-27 Thread Michael Van Canneyt via fpc-devel
On Mon, 27 Sep 2021, LacaK via fpc-devel wrote: Hello, commit ab86ce7e62db2add637961e3ff98a7703c86cb2c Author: lacak Date:   Mon Jul 12 12:17:03 2021 + Sorry for so long list, but I absolutely do not understand how to do "cherry-pick" ... trying do it - I see there (in step 4: Pick

Re: [fpc-devel] Promote specific warning into error

2021-09-24 Thread Michael Van Canneyt via fpc-devel
On Fri, 24 Sep 2021, Marc Weustink via fpc-devel wrote: On 24-9-2021 14:24, Marc Weustink via fpc-devel wrote: Hi, Is there a way to promote a specific warning(4056) into an error ? from the commandline I mean. I've found {$warn 4056 error} but I don't want to put this in all sources

Re: [fpc-devel] Building a debug version of FPC-main on Windows

2021-08-29 Thread Michael Van Canneyt via fpc-devel
On Sat, 28 Aug 2021, Werner Pamler via fpc-devel wrote: Am 25.08.2021 um 20:53 schrieb Marco van de Voort via fpc-devel: Sorry. I'm on holiday, and I only check in occasionally at night. Try changing PP= to FPC= Thank you, Marco. Now I did already the second successful build of a older

Re: [fpc-devel] Untranslatable (hardcoded) messages

2021-08-23 Thread Michael Van Canneyt via fpc-devel
On Mon, 23 Aug 2021, Bart via fpc-devel wrote: On Mon, Aug 23, 2021 at 2:28 PM Tomas Hajny via fpc-devel wrote: Does it exist in C:\Windows\SysWOW64\ on your machine? Yes, there is a common.dll there. I think that syswow64 is not in my %PATH%, but currently I'm at work and cannot check.

[fpc-devel] FPC move to mantis completed

2021-08-08 Thread Michael Van Canneyt via fpc-devel
Hello, After several technical issues (8 tries were needed to convert the FPC sources to git), the move from svn/mantis to gitlab has been completed. The FPC sources are now available at https://gitlab.com/freepascal.org/fpc/source All FPC git repositories are available at:

Re: [fpc-devel] Moving to gitlab.

2021-07-29 Thread Michael Van Canneyt via fpc-devel
On Thu, 29 Jul 2021, Michael Van Canneyt via fpc-devel wrote: On Thu, 29 Jul 2021, Denis Kozlov via fpc-devel wrote: Regarding the old bug tracker. Can you please keep it online, perhaps making it accessible in read-only mode? There are many references to issues in the old bug tracker

Re: [fpc-devel] Moving to gitlab.

2021-07-29 Thread Michael Van Canneyt via fpc-devel
On Thu, 29 Jul 2021, Denis Kozlov via fpc-devel wrote: Regarding the old bug tracker. Can you please keep it online, perhaps making it accessible in read-only mode? There are many references to issues in the old bug tracker across many code bases and discussions, at it would be a real

Re: [fpc-devel] Moving to gitlab.

2021-07-27 Thread Michael Van Canneyt via fpc-devel
On Tue, 27 Jul 2021, Ryan Joseph via fpc-devel wrote: I see the old bug reporter has been taken down now. Can anyone explain how to see my old bug reports now? I went to https://gitlab.com/groups/freepascal.org/fpc/-/issues and filtered by my username "genericptr" but nothing came up.

Re: [fpc-devel] Moving to gitlab.

2021-07-22 Thread Michael Van Canneyt via fpc-devel
On Thu, 22 Jul 2021, J. Gareth Moreton via fpc-devel wrote: I didn't actually mean to support SVN, but just to connect to the Github repository instead (via git I presume). You presume right :-) I'll probably have to do a lot of reading up on git, since I have a lot of local branches

Re: [fpc-devel] [fpc-pascal] Moving to gitlab.

2021-07-22 Thread Michael Van Canneyt via fpc-devel
On Thu, 22 Jul 2021, John Lee via fpc-pascal wrote: I use viewvc to look at repository - is there an equivalent when everyting is on gitlaB? tia john Yes; The gitlab interface. https://gitlab.com/freepascal.org/fpc/testconversion3/-/commits/main Michael

Re: [fpc-devel] Moving to gitlab.

2021-07-22 Thread Michael Van Canneyt via fpc-devel
On Thu, 22 Jul 2021, J. Gareth Moreton via fpc-devel wrote: For those who connect to the SVN repository through a command-line terminal to update the trunk, can we have instructions on how to connect to the new GitHub repository this way?  The instructions aren't yet on

[fpc-devel] Moving to gitlab.

2021-07-22 Thread Michael Van Canneyt via fpc-devel
Hello, Some of you may have seen this on the lazarus list: During the upcoming weekend we will be moving to GitLab. During this time, there may be interruptions to 2 of our services: - SVN will become unavailable permanently. - Mantis/Bugtracker will become unavailable.   * It will be taken

Re: [fpc-devel] {$if SizeOf(TMyOrdinalType) = 1} doesn't compile

2021-07-18 Thread Michael Van Canneyt via fpc-devel
On Sun, 18 Jul 2021, Zeljko Avramovic via fpc-devel wrote: As discussed at https://forum.lazarus.freepascal.org/index.php/topic,55397.0.html, this compiles and works well: {$MACRO ON} {$if SizeOf(byte) = 1} WriteLn('SizeOf(byte) = ', SizeOf(byte)); {$endif} however this does not

Re: [fpc-devel] To all Mantis (Bugtracker) account holders - prepare for the move to Gitlab - Now

2021-07-17 Thread Michael Van Canneyt via fpc-devel
On Sat, 17 Jul 2021, Ryan Joseph via fpc-devel wrote: On Jul 17, 2021, at 12:58 PM, Michael Van Canneyt via fpc-devel To map your gitlab user name (or ID) to the mantis user, we ask that you file an issue in the mantis project of the current bugtracker https://bugs.freepascal.org

[fpc-devel] To all Mantis (Bugtracker) account holders - prepare for the move to Gitlab - Now

2021-07-17 Thread Michael Van Canneyt via fpc-devel
Repost from the lazarus list: --- Hello All, https://forum.lazarus.freepascal.org/index.php/topic,55167.0.html We are moving our bugs to Gitlab. - If you have a mantis account, - and you want your bugs (or notes) to be identified on gitlab we can add your gitlab account to the info of the

Re: [fpc-devel] BitHelpers

2021-07-08 Thread Michael Van Canneyt via fpc-devel
On Thu, 8 Jul 2021, Zeljko Avramovic via fpc-devel wrote: BitHelpers are quite mature now and I would like to see them as part of FreePascal. If devs agree to that, then I would like to discuss what is the best way to include them. As mentioned at

Re: [fpc-devel] FPC & Lazarus moving to gitlab

2021-06-23 Thread Michael Van Canneyt via fpc-devel
On Wed, 23 Jun 2021, J. Gareth Moreton via fpc-devel wrote: Hopefully I should be able to get to grips with the command line interface so I can update my local copy through gitlab while also coinciding with all my local git branches for development (mixing SVN and git has been an...

[fpc-devel] FPC & Lazarus moving to gitlab

2021-06-22 Thread Michael Van Canneyt via fpc-devel
Hello All, The Free Pascal and Lazarus teams are in the process of switching to Gitlab to manage their source code and issue reports. In order to lower maintenance of their own infrastructure, a hosted solution has been chosen, and an open source license was granted to the teams. You can

Re: [fpc-devel] mantis 0038496 custom variants and documentation

2021-05-30 Thread Michael Van Canneyt via fpc-devel
On Sun, 30 May 2021, Marco van de Voort via fpc-devel wrote: Before the 3.2.2 release I looked into mantis 0038496 and now I come back to it. I noticed that custom variants are completely undocumented, is this know (IOW should I file a bug?). Please do. I am aware of this issue, but it

Re: [fpc-devel] Crash in TWriter with read only class property = nil

2021-05-21 Thread Michael Van Canneyt via fpc-devel
On Fri, 21 May 2021, Martin Frb via fpc-devel wrote: If you have a readonly property such as (tested with 3.2.2 rc)   TMyComponent = class(TComponent)   private     FFoo: TComponent;   published     property ReadOnly: TComponent read FFoo;   end; and FFoo is nil, then TWriter will crash.

Re: [fpc-devel] TypeInfo RTTI / possible inconsistency

2021-05-18 Thread Michael Van Canneyt via fpc-devel
On Tue, 18 May 2021, Martin Frb via fpc-devel wrote: On 18/05/2021 15:24, Martin Frb via fpc-devel wrote: I was looking at TypeInfo (based on 3.2.2rc) line 632  unit TypInfo     tkMethod:   followed by   ResultType : ShortString // for

Re: [fpc-devel] Working on FillWord, FillDWord and FillQWord again

2021-05-14 Thread Michael Van Canneyt via fpc-devel
On Fri, 14 May 2021, J. Gareth Moreton via fpc-devel wrote: Hi everyone, I'm back to working on the x86_64 implementations of FillWord, FillDWord and FillQWord again due to demand from a couple of end users. https://bugs.freepascal.org/view.php?id=32637 One question I do have though,

Re: [fpc-devel] Defer keyword

2021-05-07 Thread Michael Van Canneyt via fpc-devel
On Fri, 7 May 2021, Sven Barth via fpc-devel wrote: I thought it was agreed at the time that this was the most viable way forward ? As far as I remember there wasn't really any agreement. Can be, I was not sure... I remember this path was investigated. IIRC there was also the proposal

Re: [fpc-devel] Defer keyword

2021-05-07 Thread Michael Van Canneyt via fpc-devel
On Fri, 7 May 2021, Sven Barth via fpc-devel wrote: In my opinion the better solution is to continue the road that Maciej started and to implement that "default field" concept together with operator hoistening so that records with management operators can be used as containers. This is

Re: [fpc-devel] Nested function closures

2021-04-27 Thread Michael Van Canneyt via fpc-devel
On Tue, 27 Apr 2021, Ryan Joseph via fpc-devel wrote: Continued from our discussion at https://bugs.freepascal.org/view.php?id=24481. if the compiler devs will allow me as soon as this is finished I want to allow the existing nested functions functionality to work with anonymous functions,

Re: [fpc-devel] Quick question on VMT / writeable or protected memory

2021-04-14 Thread Michael Van Canneyt via fpc-devel
On Wed, 14 Apr 2021, Jonas Maebe via fpc-devel wrote: On 14/04/2021 17:49, Alfred via fpc-devel wrote: The mORMot[1] sources could give you some info. During runtime, it patches the exe-memory to redirect function calls. Hard part was to get around the W^X memory protection on some BSD's.

Re: [fpc-devel] TStreamReader (streamex unit) issue

2021-04-09 Thread Michael Van Canneyt via fpc-devel
Thanks. I've assigned it to myself. Michael. On Fri, 9 Apr 2021, Andrea Mauri via fpc-devel wrote: Submitted as: 0038734 (https://bugs.freepascal.org/view.php?id=38734) On Fri, 9 Apr 2021 at 09:11, Michael Van Canneyt wrote: Hello, Can you please post this in the bugtracker ? So

Re: [fpc-devel] Annoying error when building compiler on i386-win32

2021-04-06 Thread Michael Van Canneyt via fpc-devel
On Tue, 6 Apr 2021, Florian Klämpfl via fpc-devel wrote: Am 06.04.2021 um 10:42 schrieb Michael Van Canneyt via fpc-devel : On Tue, 6 Apr 2021, Florian Klämpfl via fpc-devel wrote: Am 06.04.2021 um 07:37 schrieb Sven Barth via fpc-devel : Am 05.04.2021 um 20:33 schrieb J. Gareth

Re: [fpc-devel] Annoying error when building compiler on i386-win32

2021-04-06 Thread Michael Van Canneyt via fpc-devel
On Tue, 6 Apr 2021, Florian Klämpfl via fpc-devel wrote: Am 06.04.2021 um 07:37 schrieb Sven Barth via fpc-devel : Am 05.04.2021 um 20:33 schrieb J. Gareth Moreton via fpc-devel: Hi everyone, I have a slightly annoying error when building the compiler for i386-win32. I mentioned it

Re: [fpc-devel] Public access of FPC features and settings

2021-04-02 Thread Michael Van Canneyt via fpc-devel
On Fri, 2 Apr 2021, Florian Klämpfl via fpc-devel wrote: Am 02.04.2021 um 16:21 schrieb Michael Ring via fpc-devel : Florian, it seems you missed a comment on that topic I wrote a while ago. You are right. The controller unit is written now like:

Re: [fpc-devel] Public access of FPC features and settings

2021-04-02 Thread Michael Van Canneyt via fpc-devel
On Fri, 2 Apr 2021, Florian Klämpfl via fpc-devel wrote: Am 07.03.2021 um 15:12 schrieb Florian Klämpfl via fpc-devel : Am 07.03.21 um 12:05 schrieb Alfred via fpc-devel: Hello, As a follow-up on a Lazarus feature request. Among other applications, Lazarus uses some hard-coded list that

Re: [fpc-devel] FPC 3.2.2-RC1 released!

2021-03-24 Thread Michael Van Canneyt via fpc-devel
On Wed, 24 Mar 2021, Martin Frb via fpc-devel wrote: On 24/03/2021 12:10, Marco van de Voort via fpc-devel wrote: Hello, We have placed the first release candidate of the Free Pascal Compiler version 3.2.2 on our ftp servers. There is still an open 3.0.4 regression issue

Re: [fpc-devel] SocketCAN implementation

2021-03-17 Thread Michael Van Canneyt via fpc-devel
On Wed, 17 Mar 2021, Zeljko Avramovic via fpc-devel wrote: I had a look. Thanks, I really appreciate it. Since this is currently linux-only, and there are several units, I would opt to make this a separate package. The directory structure to use should be clear, I suppose: can

Re: [fpc-devel] SocketCAN implementation

2021-03-14 Thread Michael Van Canneyt via fpc-devel
On Sun, 14 Mar 2021, Zeljko Avramovic via fpc-devel wrote: Hello everyone,   I have implemented SocketCAN wrappers for FreePascal which I would like to contribute. Before creating a patch for Mantis, could someone please take a look at it's current form and advise me on further steps,

Re: [fpc-devel] TSdfDataset segfaults with utf-8

2021-03-10 Thread Michael Van Canneyt via fpc-devel
Done, thanks for the patch. Michael; On Wed, 10 Mar 2021, Luca Olivetti via fpc-devel wrote: Hello, could somebody take a look at https://bugs.freepascal.org/view.php?id=37370 I proposed a fix in the last message. Bye -- Luca ___ fpc-devel

Re: [fpc-devel] Public access of FPC features and settings

2021-03-09 Thread Michael Van Canneyt via fpc-devel
On Tue, 9 Mar 2021, Michael Van Canneyt via fpc-devel wrote: On Tue, 9 Mar 2021, Florian Klämpfl via fpc-devel wrote: Since we write the resource strings in JSON, and XML is meanwhile all but replaced by JSON, I think it would be much better to write JSON ? The compiler writes the node

Re: [fpc-devel] Public access of FPC features and settings

2021-03-09 Thread Michael Van Canneyt via fpc-devel
On Tue, 9 Mar 2021, Florian Klämpfl via fpc-devel wrote: Since we write the resource strings in JSON, and XML is meanwhile all but replaced by JSON, I think it would be much better to write JSON ? The compiler writes the node tree already as XML, so I thought XML might be the better

Re: [fpc-devel] Public access of FPC features and settings

2021-03-08 Thread Michael Van Canneyt via fpc-devel
On Sun, 7 Mar 2021, Florian Klämpfl via fpc-devel wrote: Am 07.03.21 um 12:05 schrieb Alfred via fpc-devel: Hello, As a follow-up on a Lazarus feature request. Among other applications, Lazarus uses some hard-coded list that represent FPC features. Like supported MCU and boards. It would

Re: [fpc-devel] [Core] Dangerous download on bug report

2021-02-24 Thread Michael Van Canneyt via fpc-devel
On Wed, 24 Feb 2021, Bart via fpc-devel wrote: On Wed, Feb 24, 2021 at 10:06 AM Bart wrote: I have downloaded that file (some time ago) The download links seems to have gone from the bugreport? (Or maybe I need new glasses) No, it is still there, comment from 2021-02-09 22:25:

Re: [fpc-devel] [Core] Dangerous download on bug report

2021-02-24 Thread Michael Van Canneyt via fpc-devel
On Wed, 24 Feb 2021, Bart via fpc-devel wrote: On Wed, Feb 24, 2021 at 8:36 AM Michael Van Canneyt via fpc-devel wrote: I am also using Mozilla Firefox. So do I. I have downloaded that file (some time ago) just to see if I could simplify the problem. I had no problems, it was just a zip

Re: [fpc-devel] [Core] Dangerous download on bug report

2021-02-23 Thread Michael Van Canneyt via fpc-devel
but the link had me download an installer for the file instead, which installed malware. Gareth aka. Kit On 24/02/2021 07:25, Michael Van Canneyt via fpc-devel wrote: Gareth, I don't know what you've been doing on that site, but I downloaded the bugreport file without problems. I didn't have

Re: [fpc-devel] [Core] Dangerous download on bug report

2021-02-23 Thread Michael Van Canneyt via fpc-devel
Gareth, I don't know what you've been doing on that site, but I downloaded the bugreport file without problems. I didn't have to install anything, just downloaded a zip without the need to download or install anything else. The zip file contains only (a lot of) pascal files. I agree the method

Re: [fpc-devel] compiler has problem finding right function: IfThen (Math vs. StrUtils)y

2021-01-05 Thread Michael Van Canneyt via fpc-devel
On Tue, 5 Jan 2021, Pascal Riekenberg via fpc-devel wrote: Michael Van Canneyt via fpc-devel hat am 05.01.2021 09:15 geschrieben: I did a small test, your program compiles with the trunk compiler ? No, only if you put StrUtils at the end of the uses list. And I checked, the math

Re: [fpc-devel] compiler has problem finding right function: IfThen (Math vs. StrUtils)

2021-01-05 Thread Michael Van Canneyt via fpc-devel
I did a small test, your program compiles with the trunk compiler ? And I checked, the math IfThen() functions have overload attached. What compiler did you use ? Michael. On Tue, 5 Jan 2021, Michael Van Canneyt via fpc-devel wrote: The ones in math must be marked with overload

Re: [fpc-devel] compiler has problem finding right function: IfThen (Math vs. StrUtils)

2021-01-05 Thread Michael Van Canneyt via fpc-devel
The ones in math must be marked with overload. Then the compiler will continue to search. Michael. On Tue, 5 Jan 2021, Pascal Riekenberg via fpc-devel wrote: Please find a simple test project attached Note: If you put the StrUtils at the end of the uses list the program compiles. Pascal

Re: [fpc-devel] Explicitly named return values and implicit aliases Result

2020-12-16 Thread Michael Van Canneyt via fpc-devel
On Wed, 16 Dec 2020, Blaise--- via fpc-devel wrote: On 16.12.2020 12:24, Michael Van Canneyt via fpc-devel wrote: To be correct: Result is not the name of the result value, it is an alias. But, conceptually, I would rather look at the function name resolving to the return value

Re: [fpc-devel] Explicitly named return values and implicit aliases Result

2020-12-16 Thread Michael Van Canneyt via fpc-devel
On Wed, 16 Dec 2020, Blaise--- via fpc-devel wrote: On 16.12.2020 0:07, Sven Barth wrote: No, those two are in fact correct this way. Is that the /team's/ consensus? The modeswitch Result enables the use of Result as an alias for *any* routine … Incorrect. The identifier Result does

Re: [fpc-devel] Different handling of try..except depending on OS?

2020-12-10 Thread Michael Van Canneyt via fpc-devel
On Thu, 10 Dec 2020, Tomas Hajny via fpc-devel wrote: On 2020-12-10 07:34, Sven Barth via fpc-devel wrote: Am 09.12.2020 um 23:45 schrieb Bart via fpc-devel: Compiled with fpc 3.2.0 on Windows it will output (both 32 and 64 bit): Runtime error 201 at $004015F1 $004015F1 $00407307

Re: [fpc-devel] Different handling of try..except depending on OS?

2020-12-10 Thread Michael Van Canneyt via fpc-devel
On Thu, 10 Dec 2020, Bart via fpc-devel wrote: On Thu, Dec 10, 2020 at 7:34 AM Sven Barth via fpc-devel wrote: It's possibly related to FPC using SEH on Win32 and Win64 instead of the SetJump/LongJump based exception handling on other platforms. Slight differences are possible and we'd

Re: [fpc-devel] Different handling of try..except depending on OS?

2020-12-10 Thread Michael Van Canneyt via fpc-devel
On Thu, 10 Dec 2020, Bart via fpc-devel wrote: On Thu, Dec 10, 2020 at 7:34 AM Sven Barth via fpc-devel wrote: That is correct, because without the SysUtils unit (which declared the Exception type) the RTL can't convert the triggered runtime error to an exception type that can be caught

Re: [fpc-devel] r47731 doesn't build!

2020-12-09 Thread Michael Van Canneyt via fpc-devel
Already fixed. Michael. On Wed, 9 Dec 2020, Pascal Riekenberg via fpc-devel wrote: Target OS: Win32 for i386 Compiling pastojs\src\pas2jsfiler.pp Compiling pastojs\src\pas2jsfileutils.pp Compiling pastojs\src\fppas2js.pp Writing Resource String Table file: fppas2js.rsj pas2jsfiler.pp(210,5)

Re: [fpc-devel] TMask classes

2020-12-03 Thread Michael Van Canneyt via fpc-devel
Hello José, FPC has 2 units with similar functionality, fpmasks (in fpindexer) and maskutils (in fcl-base). I think one of these units could be extended with extra functions; I don't think we should introduce new units. For maskutils there are already some tests, so if you write tests for

Re: [fpc-devel] Compiler message colour scheme

2020-11-23 Thread Michael Van Canneyt via fpc-devel
On Sun, 22 Nov 2020, Jonas Maebe via fpc-devel wrote: On 22/11/2020 17:42, Sven Barth via fpc-devel wrote: Am 22.11.2020 um 17:40 schrieb J. Gareth Moreton via fpc-devel: Most modern Macs are Unix-based, so the escape sequences should work, right? Granted, I think we need someone with a Mac

Re: [fpc-devel] Compiler message colour scheme

2020-11-22 Thread Michael Van Canneyt via fpc-devel
On Sun, 22 Nov 2020, Jonas Maebe via fpc-devel wrote: On 22/11/2020 16:03, Ryan Joseph via fpc-devel wrote: What version of the trunk is this in and what's the flag to enable it? My trunk is maybe 30 days old and I don't see any way to get the colors. It's only enabled on Linux and

Re: [fpc-devel] ViewVC not working

2020-11-17 Thread Michael Van Canneyt via fpc-devel
On Tue, 17 Nov 2020, gabor via fpc-devel wrote: Can't open ViewVC page from SVN repository - I'm getting 404 error. Is the website down or is it a temporary problem? I use this address: https://svn.freepascal.org/cgi-bin/viewvc.cgi/ It is a temporary problem, I disabled viewvc.cgi, we were

Re: [fpc-devel] Google API service acct and JWT

2020-10-21 Thread Michael Van Canneyt via fpc-devel
On Tue, 20 Oct 2020, Wayne Sherman via fpc-devel wrote: Michael Van Canneyt, there is a discussion about using fphttpclient with Google API service account on the forums: https://forum.lazarus.freepascal.org/index.php/topic,51478.0.html The last post has a code example of signing a JWT

Re: [fpc-devel] A slightly different bug report!

2020-10-19 Thread Michael Van Canneyt via fpc-devel
Gareth, I deleted it, you did right to mark it as spam. Michael. On Mon, 19 Oct 2020, J. Gareth Moreton via fpc-devel wrote: Hi everyone, I just closed a bug report with a comment that it was 'spam'. Would you agree? https://bugs.freepascal.org/view.php?id=37957 Is there a specific way

Re: [fpc-devel] Github hosting of FPC utilities and [stable] sources

2020-10-13 Thread Michael Van Canneyt via fpc-devel
On Wed, 14 Oct 2020, Michael Fuchs via fpc-devel wrote: Am 13.10.20 um 15:06 schrieb Michael Van Canneyt via fpc-devel: This is planned, we wait for 3.2.2 and then we move to git. Will there still be an access via SVN or is git the only possibility? There are no plans to support SVN

Re: [fpc-devel] Github hosting of FPC utilities and [stable] sources

2020-10-13 Thread Michael Van Canneyt via fpc-devel
On Tue, 13 Oct 2020, Ryan Joseph via fpc-devel wrote: On Oct 13, 2020, at 7:06 AM, Michael Van Canneyt via fpc-devel wrote: This is planned, we wait for 3.2.2 and then we move to git. will it go on GitHub also and replace the old mirror site we've been using or will you host

Re: [fpc-devel] Github hosting of FPC utilities and [stable] sources

2020-10-13 Thread Michael Van Canneyt via fpc-devel
On Tue, 13 Oct 2020, Alfred via fpc-devel wrote: Hello to All, Again I would like to ask for a central GIT repo of FPC [stable] sources and FPC external utilities. This is planned, we wait for 3.2.2 and then we move to git. Michael. ___

Re: [fpc-devel] OpenSSL v1.1.x DLL loading / Bug 37137

2020-09-28 Thread Michael Van Canneyt via fpc-devel
On Mon, 28 Sep 2020, Ondrej Pokorny via fpc-devel wrote: On 28.09.2020 15:34, Michael Van Canneyt via fpc-devel wrote: I made some time for this, it's checked in with revision 46987. Note that this revision also enables support for LibreSSL (or whatever it is called) versions on linux/mac

Re: [fpc-devel] OpenSSL v1.1.x DLL loading / Bug 37137

2020-09-28 Thread Michael Van Canneyt via fpc-devel
On Fri, 11 Sep 2020, Michael Van Canneyt wrote: Thank you very much for the patch. I will look at this ASAP. Hi Michael, The OpenSSL library loading code still has the potential to load mismatched library versions. Did you get a chance to review the patch I sent? Not yet, I'm currently

Re: [fpc-devel] Unknown compilerproc in r 46894

2020-09-19 Thread Michael Van Canneyt via fpc-devel
It is a known issue, needs still to be fixed. Michael. On Sat, 19 Sep 2020, Ryan Joseph via fpc-devel wrote: I was just going to test the applied patch https://bugs.freepascal.org/view.php?id=36909 with revision 46894 and I got this error. Any ideas?

Re: [fpc-devel] Feature request/discussion - SetLengthNoInit

2020-09-16 Thread Michael Van Canneyt via fpc-devel
On Wed, 16 Sep 2020, Benito van der Zander via fpc-devel wrote: Hi, I'm against adding support for this. Dynamic arrays have guaranteed behavior. If users find that this behavior is not appropriate for their use case then they should not use them (or as you already suggested,

Re: [fpc-devel] Feature request/discussion - SetLengthNoInit

2020-09-14 Thread Michael Van Canneyt via fpc-devel
On Mon, 14 Sep 2020, J. Gareth Moreton via fpc-devel wrote: On 14/09/2020 19:41, Michael Van Canneyt via fpc-devel wrote: Better add an additional (optional) parameter SkipInit : Boolean = False; Michael. That won't work because constructs such as "var Data: array of array of

Re: [fpc-devel] Feature request/discussion - SetLengthNoInit

2020-09-14 Thread Michael Van Canneyt via fpc-devel
On Mon, 14 Sep 2020, J. Gareth Moreton via fpc-devel wrote: Hi everyone, This is something that came up in a discussion with a client. One thing he noticed when using SetLength with dynamic arrays is that it can cause a CPU bottleneck because it initialises the entire block to zero, which

Re: [fpc-devel] OpenSSL v1.1.x DLL loading / Bug 37137

2020-09-11 Thread Michael Van Canneyt via fpc-devel
On Fri, 11 Sep 2020, Wayne Sherman via fpc-devel wrote: On Tue, Jun 30, 2020 at 12:38 AM Michael Van Canneyt wrote: On Tue, 30 Jun 2020, Wayne Sherman via fpc-devel wrote: > OpenSSL library loading fixes. Patch file is attached. Comments are welcome. > > Summary: > 1)

Re: [fpc-devel] Wrong reference to bugtracker in svn log

2020-08-29 Thread Michael Van Canneyt via fpc-devel
On Fri, 28 Aug 2020, Bart via fpc-devel wrote: Hi, Bugtracker issue #35022 was resolved in r44477. Unfortunately in the bugtracker itself it states the issue is resolved in r44478. The log entry for r44477 states that this revision resolves bug #36809 (that however was fixed in r44429). I

Re: [fpc-devel] certificate verify issue of tfphttpclient with openssl

2020-08-22 Thread Michael Van Canneyt via fpc-devel
On Sun, 23 Aug 2020, baldzhang via fpc-devel wrote: At 2020-08-22 06:28:55, "Michael Van Canneyt via fpc-devel" wrote: On Sat, 22 Aug 2020, baldzhang via fpc-devel wrote: Patch checked and applied in rev. 46540 谢谢您,这个很有用! Michael. Thanks for the hard work of p

Re: [fpc-devel] certificate verify issue of tfphttpclient with openssl

2020-08-21 Thread Michael Van Canneyt via fpc-devel
On Sat, 22 Aug 2020, baldzhang via fpc-devel wrote: certificate verify issue of tfphttpclient with openssl patch file attached, some explain: a) sslsockets.pp the TVerifyCertificateEvent shall allow to modify the "Allow" param, for compatibility reason, function DoVerifyCert: Boolean

Re: [fpc-devel] ftfont and FreeType

2020-07-18 Thread Michael Van Canneyt
On Sat, 18 Jul 2020, Werner Pamler wrote: Am 17.07.2020 um 23:29 schrieb Michael Van Canneyt via fpc-devel: First you'll have to explain something: Why does it break existing code according to you ? The default library name is the same in both units. Compile and run the noguidemo

Re: [fpc-devel] ftfont and FreeType

2020-07-17 Thread Michael Van Canneyt via fpc-devel
On Fri, 17 Jul 2020, Werner Pamler wrote: Am 17.07.2020 um 17:26 schrieb Michael Van Canneyt: It is exactly the opposite. It can now load the DLL dynamically. home:~/fpc/packages/fcl-image/src> svn log freetypeh

Re: [fpc-devel] ftfont and FreeType

2020-07-17 Thread Michael Van Canneyt
On Fri, 17 Jul 2020, Werner Pamler wrote: Am 17.07.2020 um 12:30 schrieb Ondrej Pokorny: I am not 100% sure, but some freetype.dll versions can depend on zlib1.dll. I.e. you need to copy zlib1.dll to the exe directory as well. Actually I just found an info about it:

Re: [fpc-devel] Google APIs - Authenticate using a service account?

2020-07-10 Thread Michael Van Canneyt
On Fri, 10 Jul 2020, gabor via fpc-devel wrote: W dniu 2020-07-10 o 22:31, Florian Klämpfl pisze: It starts with simply things: how to use multiple screens with the web based solutions: how to undock chat window, screen cast, participants or videos and arrange them to different screens?

Re: [fpc-devel] Google APIs - Authenticate using a service account?

2020-07-10 Thread Michael Van Canneyt
On Fri, 10 Jul 2020, Florian Klämpfl wrote:  And run-time is shifting to web: Most desktop applications I know are being moved (or have moved) to the web. I believe that soon, the only native apps left will be services and apps that need hardware access (automation etc.) Well, using

Re: [fpc-devel] Google APIs - Authenticate using a service account?

2020-07-10 Thread Michael Van Canneyt
On Fri, 10 Jul 2020, Joost van der Sluis wrote: Op 10-07-2020 om 11:02 schreef Michael Van Canneyt: There is:  fppkg install cnocOIDC And you will have JWT support. Have a look at the TcnocOIDCIDTokenClaim and TcnocRSAPublicKey/TcnocRSAPrivateKey classes. Joost, I am aware

Re: [fpc-devel] Google APIs - Authenticate using a service account?

2020-07-10 Thread Michael Van Canneyt
On Fri, 10 Jul 2020, Joost van der Sluis wrote: Op 30-06-2020 om 09:47 schreef Michael Van Canneyt: On Fri, 26 Jun 2020, Wayne Sherman via fpc-devel wrote: Is there support in the fpc google api units for authenticating as a service account? Background: Service accounts allow

Re: [fpc-devel] Google APIs - Authenticate using a service account?

2020-06-30 Thread Michael Van Canneyt
On Tue, 30 Jun 2020, Wayne Sherman via fpc-devel wrote: On Tue, Jun 30, 2020 at 1:36 AM Michael Van Canneyt wrote: I know. But we can't include Synopse in FPC. Can just the JWT/crypto portions be incorporated if it makes sense? I'd rather not: morMot is tightly integrated, and I would

Re: [fpc-devel] Google APIs - Authenticate using a service account?

2020-06-30 Thread Michael Van Canneyt
On Tue, 30 Jun 2020, Wayne Sherman via fpc-devel wrote: On Tue, Jun 30, 2020 at 12:47 AM Michael Van Canneyt wrote: The problem with the service account is that you must create a JWT Token. FPC does not yet have a unit that can generate *and sign* a JWT Token. The good news is I have

  1   2   3   4   5   6   7   8   9   10   >