Re: [fpc-devel] threads vs widestringmanager / crash

2022-12-19 Thread Michael Van Canneyt via fpc-devel
On Mon, 19 Dec 2022, Ondrej Pokorny via fpc-devel wrote: On 19.12.2022 07:42, Sven Barth via fpc-devel wrote: The RTL assumes that it does not have to deal with threads during the initialization of the System unit. So even if the symptom of the crash is fixed in that location it isn't said

Re: [fpc-devel] Sorting tests

2022-11-29 Thread Michael Van Canneyt via fpc-devel
On Tue, 29 Nov 2022, J. Gareth Moreton via fpc-devel wrote: Surely that's a bug in the comparison functions that should be fixed and not something that can be blamed on introsort.  If a comparison function is faulty, then pretty nuch any sorting algorithm can be considered to have

Re: [fpc-devel] Sorting tests

2022-11-28 Thread Michael Van Canneyt via fpc-devel
On Mon, 28 Nov 2022, Sven Barth via fpc-devel wrote: Stefan Glienke via fpc-devel schrieb am Mo., 28. Nov. 2022, 00:20: Probably not unless FPC has something similar to https://docwiki.embarcadero.com/Libraries/Alexandria/en/System.IsManagedType (that function among a few others is

Re: [fpc-devel] Just need to double check the size of Integer

2022-11-24 Thread Michael Van Canneyt via fpc-devel
On Thu, 24 Nov 2022, Marco van de Voort via fpc-devel wrote: On 24-11-2022 14:59, Michael Van Canneyt via fpc-devel wrote: SizeInt = SmallInt; (IMHO get rid of small and short in general, and simply put int8/16 instead. But that might require compiler work?) Agreed. I would also

Re: [fpc-devel] Just need to double check the size of Integer

2022-11-24 Thread Michael Van Canneyt via fpc-devel
Int = SmallInt; Michael. On 24/11/2022 13:52, Michael Van Canneyt via fpc-devel wrote: On Thu, 24 Nov 2022, J. Gareth Moreton via fpc-devel wrote: Would it be better to define "SizeInt = SmallInt;" here just so it's crystal clear what size it is? Where is 'her

Re: [fpc-devel] Just need to double check the size of Integer

2022-11-24 Thread Michael Van Canneyt via fpc-devel
On Thu, 24 Nov 2022, J. Gareth Moreton via fpc-devel wrote: Would it be better to define "SizeInt = SmallInt;" here just so it's crystal clear what size it is? Where is 'here' ? Michael. ___ fpc-devel maillist - fpc-devel@lists.freepascal.org

Re: [fpc-devel] Just need to double check the size of Integer

2022-11-24 Thread Michael Van Canneyt via fpc-devel
On Thu, 24 Nov 2022, Marco van de Voort via fpc-devel wrote: On 24-11-2022 14:25, Ondrej Pokorny via fpc-devel wrote: Am 24.11.2022 um 14:15 schrieb Marco van de Voort via fpc-devel: On 24-11-2022 14:13, J. Gareth Moreton via fpc-devel wrote: I just need to double-check something.  Under

Re: [fpc-devel] Policy regarding SHL/SHR under x86

2022-10-24 Thread Michael Van Canneyt via fpc-devel
On Mon, 24 Oct 2022, J. Gareth Moreton via fpc-devel wrote: That's useful - thank you.  Michael Van Canneyt mentioend he updated the documentation for this - where is this usually located? It's not here, for example: https://www.freepascal.org/docs-html/ref/refsu45.html Daily documentation

Re: [fpc-devel] Streaming error with a property of type Double set to +/-Inf

2022-09-23 Thread Michael Van Canneyt via fpc-devel
On Wed, 21 Sep 2022, Bart via fpc-devel wrote: Hi, When in Lazarus I set a property of type Double to -Inf or +Inf, I get a compilation error: Error: Invalid property value (at 41,17, stream offset 031A) sp.lpr(20,1) Error: Error while compiling resources -> Compile with -vd for more

Re: [fpc-devel] Insufficient Dwarf info for Interfaces

2022-09-15 Thread Michael Van Canneyt via fpc-devel
On Thu, 15 Sep 2022, Martin Frb via fpc-devel wrote: On 15/09/2022 16:17, Michael Van Canneyt via fpc-devel wrote: On Thu, 15 Sep 2022, Martin Frb via fpc-devel wrote: https://gitlab.com/freepascal.org/fpc/source/-/issues/39904 On top of adding the functions in the interface

Re: [fpc-devel] Insufficient Dwarf info for Interfaces

2022-09-15 Thread Michael Van Canneyt via fpc-devel
On Thu, 15 Sep 2022, Martin Frb via fpc-devel wrote: https://gitlab.com/freepascal.org/fpc/source/-/issues/39904 On top of adding the functions in the interface to the dwarf info, it would be great if the compiler could also add some sort of link to the underlaying TObject. So the

Re: [fpc-devel] Cannot build Lazarus with actual FPC main

2022-08-19 Thread Michael Van Canneyt via fpc-devel
On Fri, 19 Aug 2022, Gabor Boros via fpc-devel wrote: Hi All, With actual FPC main (61debb15) got the below error. No error with an earlier FPC main (8028a769). Any idea? make -C packager/registration make[1]: Entering directory `e:/Lazarus/main/packager/registration'

Re: [fpc-devel] FCL streamex question

2022-08-18 Thread Michael Van Canneyt via fpc-devel
On Wed, 17 Aug 2022, MARCOU Gilles via fpc-devel wrote: Hi, following the advice of howardpc, I repost here my question from the forum (https://forum.lazarus.freepascal.org/index.php/topic,60287.0.html). Recently I wanted to rewind a file to read again a previous line. After some search

Re: [fpc-devel] Fwd: [Lazarusdev] Moving issue 39853 to FPC project

2022-08-18 Thread Michael Van Canneyt via fpc-devel
On Thu, 18 Aug 2022, Ondrej Pokorny via fpc-devel wrote: Hello it looks like only people with FPC developer status can move issues to the FPC project. Therefore I forward the request to fpc-devel. I moved it. Michael. ___ fpc-devel maillist

Re: [fpc-devel] Gaps in a non-contiguous enum

2022-08-16 Thread Michael Van Canneyt via fpc-devel
On Tue, 16 Aug 2022, Ondrej Pokorny via fpc-devel wrote: Am 16.08.2022 um 13:19 schrieb Michael Van Canneyt via fpc-devel: On Tue, 16 Aug 2022, Ondrej Pokorny via fpc-devel wrote: --- code end Run it in Delphi and FPC and compare the outputs: Delphi output: PropCount: 0 Property info

Re: [fpc-devel] Gaps in a non-contiguous enum

2022-08-16 Thread Michael Van Canneyt via fpc-devel
On Tue, 16 Aug 2022, Ondrej Pokorny via fpc-devel wrote: --- code end Run it in Delphi and FPC and compare the outputs: Delphi output: PropCount: 0 Property info is null FPC output: PropCount: 1 Property name: Fruit Property kind: tkEnumeration As you can see FPC creates a valid PropInfo

Re: [fpc-devel] Gaps in a non-contiguous enum

2022-08-16 Thread Michael Van Canneyt via fpc-devel
On Tue, 16 Aug 2022, Martin Frb via fpc-devel wrote: On 16/08/2022 09:37, Michael Van Canneyt via fpc-devel wrote: On Tue, 16 Aug 2022, Juha Manninen via fpc-devel wrote: And function GetEnumValue() is buggy. It is not buggy. It does not support enumerateds with gaps, because RTTI does

Re: [fpc-devel] Gaps in a non-contiguous enum

2022-08-16 Thread Michael Van Canneyt via fpc-devel
On Tue, 16 Aug 2022, Juha Manninen via fpc-devel wrote: On Thu, Aug 11, 2022 at 9:37 PM Martin Frb via fpc-devel < fpc-devel@lists.freepascal.org> wrote: fpc code is still "unexpected". It takes into account the MinValue type TMyEnum = (a=5, b=7); GetEnumName(pt, 5) // a GetEnumName(pt,

Re: [fpc-devel] C library header - var vs pointer for function arguments

2022-08-03 Thread Michael Van Canneyt via fpc-devel
On Thu, 4 Aug 2022, gabor via fpc-devel wrote: I'd like to provide some fixes for packages that are headers for c libraries. When and should I use the "var" argument for function arguments that return a value, or should I always use pointers (excluding arguments that might accept nil)?

Re: [fpc-devel] Smart-linking on linux/x86-64

2022-07-04 Thread Michael Van Canneyt via fpc-devel
On Mon, 4 Jul 2022, Joost van der Sluis via fpc-devel wrote: Hi all, I have a very small application, see below. One procedure is not called at all. But when I compile with ppcx64 -XX -CX testcfi.pp The P$TESTCFI_$$_NEVERCALLES symbol is still in the executable. On Windows (internal

Re: [fpc-devel] Differences in Regular Expression handling between FPC 3.3.1 and 3.2.0

2022-06-29 Thread Michael Van Canneyt via fpc-devel
On Wed, 29 Jun 2022, Russ via fpc-devel wrote: Hi, It looks like in FPC trunk that regular expressions use unicode properties and is returning unicode results as it is now built, because {$DEFINE Unicode} is now defined in the regexpr unit. That is in error; I reverted that. The define

Re: [fpc-devel] ConvUtils: ConvTypeToFamily and ConvFamilyToDescription conundrums

2022-06-11 Thread Michael Van Canneyt via fpc-devel
Applied, thank you very much ! Michael. On Sat, 11 Jun 2022, Bart via fpc-devel wrote: On Wed, Jun 8, 2022 at 3:24 PM Marco van de Voort via fpc-devel wrote: I doubt that there are mission critical convutils programs out there, given the fact that it took 10+ years to find out the

Re: [fpc-devel] Type+multi helpers overload bug

2022-05-08 Thread Michael Van Canneyt via fpc-devel
On Sun, 8 May 2022, Hairy Pixels via fpc-devel wrote: Basically it looks like multi helpers don’t actually work with overloaded methods and simply choses the last helper declared. Should I fix this? Seems unlikely we would not notice this before but maybe we did. {$modeswitch typehelpers}

Re: [fpc-devel] qoi image file format support

2022-05-07 Thread Michael Van Canneyt via fpc-devel
On Sat, 7 May 2022, Marģers . via fpc-devel wrote: There is this super new, super fast and super what not image format. I have added support for fcl-images. attached zip file contains: 1) read and write support in files qoif/qoicomn.pas qoif/fpwriteqoi.pas qoif/fpreadqoi.pas 2) example of

Re: [fpc-devel] TShiftState

2022-05-07 Thread Michael Van Canneyt via fpc-devel
On Sat, 7 May 2022, Mattias Gaertner via fpc-devel wrote: Hi, Delphi has some extra TShiftState enums: ssTouch, ssPen, ssHorizontal https://docwiki.embarcadero.com/Libraries/Sydney/en/System.Classes.TShiftState I propose for fpc to add these three and add an alias constant ssCommand =

Re: [fpc-devel] Issue in FPDOC Editor or Makeskel?

2022-03-28 Thread Michael Van Canneyt via fpc-devel
On Mon, 28 Mar 2022, Zeljko Avramovic via fpc-devel wrote: I have already opened and issue for Lazarus FPDOC Editor, but now I am not sure if that should be fixed in FPDOC Editor or Makeskel tool so I would appreciate an advice so that I can change bug report if needed. Basically, FPDOC

Re: [fpc-devel] Issue in FPDOC Editor or Makeskel?

2022-03-28 Thread Michael Van Canneyt via fpc-devel
On Mon, 28 Mar 2022, Zeljko Avramovic via fpc-devel wrote: I have already opened and issue for Lazarus FPDOC Editor, but now I am not sure if that should be fixed in FPDOC Editor or Makeskel tool so I would appreciate an advice so that I can change bug report if needed. Basically, FPDOC

Re: [fpc-devel] case is

2022-03-23 Thread Michael Van Canneyt via fpc-devel
On Wed, 23 Mar 2022, Mattias Gaertner via fpc-devel wrote: On Wed, 23 Mar 2022 22:20:38 +0700 Hairy Pixels via fpc-devel wrote: [...] > Did you use multiple "is" or did you check for sorted and use one > loop? No it’s just like a the case of string syntax which checks for equality with

Re: [fpc-devel] TIniFile with option ifoWriteStringBoolean

2022-03-16 Thread Michael Van Canneyt via fpc-devel
On Wed, 16 Mar 2022, Bart via fpc-devel wrote: Hi, User Nimral in the wiki noted this: If you specify ifoWriteStringBoolean in Options for TIniFile _and_ you forget to assign values to BoolTrueStrings/BoolFalseStrings, then writing and reading boolean values is not symmetrical. Writing a

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

2022-03-16 Thread Michael Van Canneyt via fpc-devel
On Mon, 14 Mar 2022, Wayne Sherman via fpc-devel wrote: On Mon, May 10, 2021 at 7:08 PM Wayne Sherman wrote: The Google API supports the following signing algorithms: https://cloud.google.com/iot/docs/how-tos/credentials/jwts JWT RS256 (RSASSA-PKCS1-v1_5 using SHA-256 RFC 7518 sec 3.3).

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

2022-03-14 Thread Michael Van Canneyt via fpc-devel
On Sun, 13 Mar 2022, 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. I had a little time

Re: [fpc-devel] FPC download on MACOS Monterey does not create an FPC app nor an fpsrc library?

2022-02-07 Thread Michael Van Canneyt via fpc-devel
On Sun, 6 Feb 2022, Pieter van Engen via fpc-devel wrote: Hallo, I installed an new MacMini with MACOS Monterey, installed XCCODE en XCODE tools, then downloaded and installed: ppc-3.2.0.intel-macosx.dmg started that, it finished with INSTALLATION COMPLETED! But alas there was no FPC app

Re: [fpc-devel] syshelpers patches

2022-01-22 Thread Michael Van Canneyt via fpc-devel
On Sat, 22 Jan 2022, Zeljko Avramovic via fpc-devel wrote: Done. https://gitlab.com/freepascal.org/fpc/source/-/issues/39541 Thank you. I already applied 2 patches, I still need to commit the examples. Michael. ___ fpc-devel maillist -

Re: [fpc-devel] syshelpers patches

2022-01-21 Thread Michael Van Canneyt via fpc-devel
On Fri, 21 Jan 2022, Zeljko Avramovic via fpc-devel wrote: [Probably for @mvancanneyt] I have just submitted patches for syshelpers here: https://gitlab.com/freepascal.org/fpc/source/-/issues/39268#note_810963784 It's a closed thread and I can not reopen it, so maybe it would be better if I

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

<    1   2   3   4   5   6   7   8   9   10   >