[fpc-pascal] Testing

2025-03-08 Thread Peter B via fpc-pascal
Just testing, please ignore. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Pascal sensitive diff tool?

2025-02-21 Thread Peter B via fpc-pascal
anges have pascal significance. Sublime Merge is a nice git client, and provides a Debian package, but it is picking up whitespace & capitalisation changes in the diffs. Regards, Peter ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.

Re: [fpc-pascal] Pascal sensitive diff tool?

2025-02-21 Thread Peter B via fpc-pascal
On 21/02/2025 01:33, Wayne Sherman via fpc-pascal wrote: Peter B wrote: I'm wondering if there is any diff tool out there, that caters for Pascal syntax, so can filter out the noise from reformatting etc. Beyond Compare https://www.scootersoftware.com/ (30-day free trial, but well worth b

[fpc-pascal] backtrace from shared library?

2025-02-20 Thread Peter B via fpc-pascal
esses, let alone line numbers. (backtraces from exceptions outside the library are working just fine) Regards, Peter ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

[fpc-pascal] Pascal sensitive diff tool?

2025-02-20 Thread Peter B via fpc-pascal
Hi, I'm wondering if there is any diff tool out there, that caters for Pascal syntax, so can filter out the noise from reformatting etc. I found difftastic. It has an option for Pascal, but is case sensitive which rather defeats the object! Regards,

Re: [fpc-pascal] How to read the 'a_quick_guide_to_fpgui.ipf'

2025-01-08 Thread Peter Blackman via fpc-pascal
On 2nd thoughts it is probably not docview. I built docview, but it will not open this file. Docview files are .inf not .ipf However, it is plain text, so readable in any text editor, but no neat formatting of course. ___ fpc-pascal maillist - fpc-pa

Re: [fpc-pascal] How to read the 'a_quick_guide_to_fpgui.ipf'

2025-01-08 Thread Peter B via fpc-pascal
emeg/fpGUI/tree/develop/docview Hints of Eliza's bucket, as this is the "Quick" guide :-) Cheers, Peter ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] docs

2024-10-21 Thread Peter B via fpc-pascal
/project/lazarus/versions Cheers, Peter ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] question on docs

2024-10-20 Thread Peter B via fpc-pascal
On 20/10/2024 22:17, ppadilcdx--- via fpc-pascal wrote: I’m a little confused by some references in the docs. Hopefully I can explain it clearly. Looking at TFPGList in fgl. The Sort method refers to a TCompareFunc (it does not link to its definition). TFPGList says it’s methods are the same a

Re: [fpc-pascal] What to do to get new users

2024-10-17 Thread Peter B via fpc-pascal
on all 20 architectures, fpc for only half of those. https://buildd.debian.org/status/package.php?p=llvm-defaults https://buildd.debian.org/status/package.php?p=fpc&suite=sid Regards, Peter ___ fpc-pascal maillist - fpc-pascal@lists.freepa

Re: [fpc-pascal] Floating point question

2024-02-22 Thread Peter B via fpc-pascal
On 22/02/2024 14:22, Jean SUZINEAU via fpc-pascal wrote: As far as I know Extended is not supported on Linux. This is wrong, sorry.  I'm using Extended on Linux and it works just fine. Cheers, Peter ___ fpc-pascal maillist - fpc-p

Re: [fpc-pascal] What's in Hello World

2024-01-08 Thread Peter B via fpc-pascal
On 07/01/2024 16:07, James Richters via fpc-pascal wrote: Try building with smartlinking, -XX I never knew there was an option for smartlinking. I'm using the FPC text IDE, I see various options like Generate Smaller Code, and level 1, 2, and 3 optimizations, but I don't see anything specifica

Re: [fpc-pascal] What's in Hello World

2024-01-07 Thread Peter B via fpc-pascal
Try building with smartlinking, -XX I get 35k Thats with 3.2.2 on linux ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] What's in Hello World

2024-01-07 Thread Peter B via fpc-pascal
On 06/01/2024 19:05, Matthew Phillips via fpc-pascal wrote: I compiled the Hello World program from the docs and noticed that it's 435k. Compared to a lot of newer languages, like Golang, that's not bad at all. I then compiled the equivalent C program with gcc which came out at 33k. So I'm just

Re: [fpc-pascal] Strings greater than 255 characters

2023-12-19 Thread Peter B via fpc-pascal
ln into an Ansistring. Cheers, Peter ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Program crash - read the error messages

2023-09-01 Thread Peter B via fpc-pascal
Can you compile the crashing program with  -gl    ? That should give you a useful stack dump with line numbers. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Wrong assignment detected only run time without warning

2023-06-16 Thread Peter B via fpc-pascal
On 16/06/2023 11:55, Giuliano Colla via fpc-pascal wrote: Is that the intended behavior of compiler? Yes. Assigning a 64bit integer to a 32bit one is fine as long as the range is within bounds. Range of a variable can only be checked at run time. ___

Re: [fpc-pascal] Passing around Pascal strings vs AnsiString

2023-06-15 Thread Peter B via fpc-pascal
upgrade. It turned out the issue was switching the string default from pascal shortstring to ansi. YMMV, but I would always use shortsting locally where length permits. Cheers, Peter P.S.  Think this was D4 ___ fpc-pascal maillist - fpc-pascal

Re: [fpc-pascal] Size of set.

2023-05-23 Thread Peter B via fpc-pascal
On 23/05/2023 01:14, Mikael Backman via fpc-pascal wrote: Hi, basic questions here. Is there any way to decide the number of elements in a set?  there any way to  traverse the elements in a set? Regards Mikael ___ fpc-pascal maillist - fpc-pascal@l

Re: [fpc-pascal] pointer to char vs pchar

2023-03-24 Thread Peter B via fpc-pascal
On 24/03/2023 14:29, Martin Frb via fpc-pascal wrote: On 24/03/2023 15:04, Benito van der Zander via fpc-pascal wrote: why is a pointer to a char not a pchar (for type helpers)? My guess: For the same reason that "p2" fails in the below. Distinct type. May be assignment compatible, but a type

Re: [fpc-pascal] Lack of PIC code support for m68k CPU (was: FPC crashes with Internal error 200502052 compiling shared library on m68k)

2023-03-10 Thread Peter B via fpc-pascal
fixed. FWIW, I don't have any m68k hardware to test any fix, just noticed that the c-evo-dh build crashed on Debian. Cheers, Peter ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinf

Re: [fpc-pascal] Lack of PIC code support for m68k CPU (was: FPC crashes with Internal error 200502052 compiling shared library on m68k)

2023-03-09 Thread Peter B via fpc-pascal
with a meaningful error message, rather that crash out with an internal error? Cheers, Peter ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

[fpc-pascal] FPC crashes with Internal error 200502052 compiling shared library on m68k

2023-03-03 Thread Peter B via fpc-pascal
ed the bug tracker and can't see any related issues. I don't use m68k, so I'm not affected myself with this, just F.Y.I. Should I raise it as an issue on GitLib? Cheers, Peter ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org htt

Re: [fpc-pascal] Get highest element of a StringList

2022-09-12 Thread Peter B via fpc-pascal
On 12/09/2022 07:52, Jean SUZINEAU via fpc-pascal wrote: As Bart suggested, you can use too the for/in loop:  for s in sl do WriteLn( s); And that is IMHO by far the most elegant, and least error prone, representation. Cheers, Peter ___ fpc-pascal

Re: [fpc-pascal] Access Violation When SetLength(DynArray, Value)

2022-09-08 Thread Peter B via fpc-pascal
parts of the program to identify the point of corruption, which might seem unrelated to array in question if the heap is getting messed up somehow. Cheers, Peter P.S. I had a strange (possible) heap corruption issue with a large program a year ago that broke stringlists. I never found the

Re: [fpc-pascal] Arguments gets corrupted with anonymous nested function

2022-09-07 Thread Peter B via fpc-pascal
heers, Peter ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Broken code with PEEPHOLE & REGVAR

2022-03-14 Thread Peter via fpc-pascal
Testing 3.2.3 on Arch Linux # [584] if not AttackPositionReached then     testb    %r15b,%r15b     je    .Lj270 # [587] TestLoc := AttackLoc;     movl    83288(%rsp),%r13d                # <- *** # Var AttackLoc located in register r13d     movl    %r13d,24(%rsp) # [591] NextLoc :

Re: [fpc-pascal] Broken code with PEEPHOLE & REGVAR

2022-03-14 Thread Peter via fpc-pascal
On 14/03/2022 06:59, Sven Barth via fpc-pascal wrote: Peter via fpc-pascal schrieb am So., 13. März 2022, 22:58: On 13/03/2022 18:19, Florian Klämpfl via fpc-pascal wrote: > Thanks for tracking this down! I have cherry picked the commit to fixes. Great! It was a nasty bug. G

Re: [fpc-pascal] Broken code with PEEPHOLE & REGVAR

2022-03-13 Thread Peter via fpc-pascal
On 13/03/2022 18:19, Florian Klämpfl via fpc-pascal wrote: Thanks for tracking this down! I have cherry picked the commit to fixes. Great! It was a nasty bug. Good to see it fixed for the next release. ___ fpc-pascal maillist - fpc-pascal@lists.fre

Re: [fpc-pascal] Broken code with PEEPHOLE & REGVAR

2022-03-13 Thread Peter via fpc-pascal
On 12/03/2022 11:33, Florian Klämpfl via fpc-pascal wrote: Am 12.03.2022 um 12:05 schrieb Peter via fpc-pascal : Its looking like it was fixed in main somewhere between 31cd3df724 Jan, 2021 & 837b433a28 Apr, 2021 Can you bisect it by any chance? See https://wiki.freepascal

Re: [fpc-pascal] Broken code with PEEPHOLE & REGVAR

2022-03-12 Thread Peter via fpc-pascal
Its looking like it was fixed in main somewhere between 31cd3df7    24 Jan, 2021 & 837b433a    28 Apr, 2021 ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Broken code with PEEPHOLE & REGVAR

2022-03-11 Thread Peter via fpc-pascal
* # <<-- # Var AttackLoc *located in register r14d*     movl    %r14d,24(%rsp) . AttackLoc location is changed to a register as before, but here it is actually moved with a movl. It seems the bug is caused by the absence of this movl instruction. Cheers,

Re: [fpc-pascal] Broken code with PEEPHOLE & REGVAR

2022-03-11 Thread Peter via fpc-pascal
x27;m afraid. Regards, Peter ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Broken code with PEEPHOLE & REGVAR

2022-03-10 Thread Peter via fpc-pascal
On 10/03/2022 22:46, Sven Barth via fpc-pascal wrote: Peter via fpc-pascal schrieb am Do., 10. März 2022, 23:39: There are four source files, around 250k, to compile this library. I can supply them if anyone wants to investigate. Is this sufficient for a bug report?  Does anyone know

Re: [fpc-pascal] Broken code with PEEPHOLE & REGVAR

2022-03-10 Thread Peter via fpc-pascal
Attaching source & assembler function TBarbarina.DoAttack(uix, AttackLoc: integer): boolean; // AttackLoc=maNextCity means bombard only var MoveResult, Kind, Temp, MoveStyle, TestLoc, TestTime, NextLoc, NextTime, V8, RecoverTurns, ecix: integer; NextTile: cardinal; AttackPositionReached

[fpc-pascal] Broken code with PEEPHOLE & REGVAR

2022-03-10 Thread Peter via fpc-pascal
ike this? Maybe already fixed? I'll attach the source and assembler for this routine in a follow up mail. Cheers, Peter ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Hello, new Pascal programmer. had a question!

2021-09-03 Thread Peter via fpc-pascal
Sorry, my bad. I hadn't got Thunderbird configured right. All mail from this list just showed the list address in the 'From' field. Now fixed it.  Edit > Preferences > Advanced > "Show only display name for people in my address book" which was checked. Cheers, Pete ___

Re: [fpc-pascal] Hello, new Pascal programmer. had a question!

2021-09-02 Thread Peter via fpc-pascal
https://castle-engine.io/modern_pascal_introduction.html You can also download it as a single PDF. g. Thanks Dennis. Very useful refresher! Cheers, Pete ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi

Re: [fpc-pascal] How does FPC perform in the FASTEST Computer Language Race

2021-07-10 Thread Peter via fpc-pascal
difference. Regards, Peter | ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

[fpc-pascal] Version 3.2.2 changes

2021-04-08 Thread Peter via fpc-pascal
is out, so I assume the contents are pretty much fixed now. Regards, Peter ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Why has the tkFloat default value changed?

2021-03-01 Thread Peter via fpc-pascal
On 28/02/2021 22:11, Mattias Gaertner via fpc-pascal wrote: Hi, In FPC 3.2.0 the default "Default" value of a single/double property has changed from $8000 (fpc 3.0.4) to 0. This breaks TWriter. The $8000 means the property has no default value. Now FPC 3.2.0 no longer writes a property

[fpc-pascal] Precedence of compiler switches/directives

2020-10-08 Thread Peter via fpc-pascal
ssume that as directives can be set to different values in different parts of the code, that they must have the highest precedence. Is this correct and always the case? Peter ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org

Re: [fpc-pascal] Regression in 3.2.0 ??

2020-08-24 Thread Peter via fpc-pascal
Thanks to Sven & Michael for commenting. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

[fpc-pascal] Regression in 3.2.0 ??

2020-08-18 Thread Peter via fpc-pascal
no idea if that is a valid fix. (More info; see bug 37566) Regards, Peter ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Blowfish encryption: What I´m doing wrong?

2018-04-25 Thread Peter
returned by the method Encrypt, it raise an exception 203 on line > after {6}  > I don´t know how to debug this. > > -- > /Timeo hominem unius libri/ > > []s > Guionardo Furlan > http://www.guionardofurlan.com.br > > > ___ > fpc-pascal

Re: [fpc-pascal] Freepascal Floating Point Issue

2017-08-24 Thread Peter
FPC has a header for the GMP library. Regards, Peter B ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Freepascal Floating Point Issue

2017-08-22 Thread Peter
Hi James, Its unlikely that 999.999 has an EXACT representation in floating point. 999.999002 maybe the closest value at your chosen precision. Extended type has more precision, but still probably won't be exact. Regards, Peter B __

[fpc-pascal] strutils (RTL) content missing from fp-docs in Debian package

2017-07-21 Thread Peter
Hi, Since fpc version 3.0 (2.6.4 was OK) the Debian docs package has no content for strutils. Does anyone have any thoughts on what the cause might be? Regards, Peter B https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=858797 ___ fpc-pascal

Re: [fpc-pascal] for loops performance problems?

2017-07-04 Thread Peter
I usually start performance investigations by compiling with '-al', and looking at the generated assembler. Regards, Peter P.S. From what we know so far, inclined to agree with Charlie. ___ fpc-pascal maillist - fpc-pascal@lists.freepasca

Re: [fpc-pascal] machine readable grammar of object pascal?

2017-05-03 Thread Peter
On 03/05/17 00:53, Marc Santhoff wrote: > Hi, > > for playing around I would need a grammar of Object Pascal. I do not > care for which tool it is written or at best if it is plain EBNF. > > Does such grammar exist? > > TIA, > Marc > > > ___ > fpc-pa

Re: [fpc-pascal] 32-bit random numbers

2017-04-21 Thread Peter
o use random to a int64, and mask out the upper bits. You could also write an XORShift generator if you are prepared to forgo the presence of zero in the sequence. Peter. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepa

Re: [fpc-pascal] Feature announcement: Management Operators

2017-03-04 Thread Hans-Peter Suter
2017-02-28 21:50 GMT+01:00 Graeme Geldenhuys : > Records - well, I use them like they were defined > in Delphi 7 and earlier. I really don't see the need for Records with > Methods (ie: TP Objects) and such. > Go with modern times! It's the 21st century now ;-) (For inspiration have e.g. a loo

Re: [fpc-pascal] Manual sources? Some doc questions.

2017-03-03 Thread Hans-Peter Suter
@Michael and @Marco, Very helpful comments, thank you! Regarding, > > in subversion. See > http://www.freepascal.org/develop.var > Section 'Other repositories' Yes, found it. (Tex, I thought so (considering the nicely formatted pdf)). - In prog.pdf there is a section about "Compiler and RTL s

[fpc-pascal] Manual sources? Some doc questions.

2017-03-03 Thread Hans-Peter Suter
I couldn't find the source for the manuals, e.g. [prog.pdf]( http://www.freepascal.org/docs.var). Does someone know where I can find them? Some other questions: - In prog.pdf there is a section about "Compiler and RTL source tree structure". Is there some documentation about the (not-mentioned

Re: [fpc-pascal] FreePascal Windows - Force files to write to disk

2017-02-22 Thread Peter
On 21/02/17 21:12, James Richters wrote: > My understanding was the Close(file); would save the file all the way to > disk and flush any buffers that were holding it, I would try adding a Flush(File) before the Close, even though that should not really be needed. ___

[fpc-pascal] 3.0.2-rc1

2016-12-15 Thread Peter
Hi, I notice an ftp folder for 3.0.2-rc1 has appeared, dated 10-Dec, but I cannot access the folder ftp://ftp.freepascal.org/pub/fpc/beta/3.0.2-rc1/ I get error "550 Failed to change directory." Is this folder still under construction, or is something wrong in the permissions? Che

Re: [fpc-pascal] FPC can't determine overloaded function to call

2016-04-28 Thread Peter
On 28/04/16 14:02, Graeme Geldenhuys wrote: > Hi, > > I can't figure out why FPC is struggling with figuring out which > overloaded methods to call. This is my application code which FPC has a > problem with. > > type > TPDFFloat = Single; > > TPDFCoord = record > X,Y: TPDFFloat; > end

Re: [fpc-pascal] Class vs Object type

2016-04-06 Thread Peter
es stack space! This might be fixable by directing the process to use the alternate stack for signal handling. The error message would hopefully then be more meaningful. Regards, Peter ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] PDF generator

2016-03-18 Thread Peter
On 05/03/16 17:27, Michael Van Canneyt wrote: > Hi, > > I have committed a PDF generator to FPC Subversion: fcl-pdf. > Hi Michael, What's the input format? html? Peter ___ fpc-pascal maillist - fpc-pascal@lists.fr

Re: [fpc-pascal] Pascal Lexical Diagrams

2016-02-01 Thread Peter
On 30/01/16 09:45, Anthony Walter wrote: > I've been working on writing Javascript to generate lexical language > diagrams Would this be of any interest? (Rather than reinvent the wheel.) http://www.bottlecaps.de/rr/ui Peter ___ fpc-pasc

Re: [fpc-pascal] Do I need to make fpc 3.0.0 twice?

2016-01-13 Thread Peter
On 13/01/16 07:33, Marco van de Voort wrote: > In our previous episode, Sven Barth said: >> There is a variant of the OPT parameter that applies options only for the >> last compilation. This way you can use options that the compiling compiler >> does not yet support. Now if I'd only remember that.

Re: [fpc-pascal] Do I need to make fpc 3.0.0 twice?

2016-01-12 Thread Peter
__ > fpc-pascal maillist - fpc-pascal@lists.freepascal.org > http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal > But what about optimising the RTL to -O4? I did a separate pass to build the RTL with -O4 which 2.64 does not support. I found it makes a us

Re: [fpc-pascal] Beautifier for freepascal

2015-12-01 Thread Peter
In addition to ptop and JCL already mentioned, there is the closed source DelForEx.zip intended for use with Delphi. There are standaline versions of it that run under wine on 'nix. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists

Re: [fpc-pascal] MSEide+MSEgui version 4.0 for FPC 3.0.0

2015-11-17 Thread Hans-Peter Suter
Congratulations! I'm very interested in your llvm based compiler project. I don't know how you find the energy to build so many exciting things. Take care and thanks a lot!! 2015-11-13 10:47 GMT+01:00 Martin Schreiber : > Hi, > > MSEide+MSEgui 4.0 for FPC 3.0.0 has been released! > https://source

Re: [fpc-pascal] default value of a sub range field produces No range Check error

2015-10-16 Thread Peter
Shows the same issue. Takes default value of zero; no range check on the first writeln. Regards, Peter ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Linking failed on RaspberryPi

2015-09-18 Thread Peter
On 16/09/15 02:28, Xiangrong Fang wrote: > Hi Peter, > > xrfang@pi ~ $ ls /usr/lib/**/crti.o > /usr/lib/arm-linux-gnueabihf/crti.o > > Thanks! Then you could try compiling your program with the switch -Fl /usr/lib/arm-linux-gnueabihf {Note its a lower case l not an upper c

Re: [fpc-pascal] Sound procedure does not work

2015-09-15 Thread Peter
On 15/09/15 22:14, Graeme Geldenhuys wrote: > On 2015-09-15 20:59, Peter wrote: >> I guess he means Procedure Sound in rtl/unix/crt.pp >> This does not work for me either, just get the "sound of silence". > > > That is a know problem for many years. Here is a

Re: [fpc-pascal] Sound procedure does not work

2015-09-15 Thread Peter
On 15/09/15 18:34, Fred van Stappen wrote: > > What sound procedure is unable to work ? > > Thanks. > > Fre;D > I guess he means Procedure Sound in rtl/unix/crt.pp This does not work for me either, just get the "sound of silence". Procedure Sound(Hz: Word); begin {$ifdef havekiocsound} if

Re: [fpc-pascal] Sound procedure does not work

2015-09-15 Thread Peter
On 15/09/15 11:25, Graeme Geldenhuys wrote: > . > the default -Mfpc (what I consider outdated > language mode). > > > Regards, > - Graeme - > Finding maxint at 32767 (64bit compiler) with that mode can be a bit of a shock too! Regards, PB ___

Re: [fpc-pascal] Linking failed on RaspberryPi

2015-09-15 Thread Peter
It would be useful to see the output of these two commands grep Fl /etc/fpc.cfg ls /usr/lib/**/crti.o Jonas knows a lot more about FPC than I do! Regards, PB ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-b

Re: [fpc-pascal] Linking failed on RaspberryPi

2015-09-15 Thread Peter
On 14/09/15 21:09, Mark Morgan Lloyd wrote: > Peter wrote: >> On 04/09/15 02:15, Xiangrong Fang wrote: >>> . >>> Is there anything missing from my FPC installation? >>> TIA for any hint. >> >> To build FPC programs on linux one generally needs a

Re: [fpc-pascal] Linking failed on RaspberryPi

2015-09-14 Thread Peter
, or some other combination of 'libc' and 'dev'. Please post the solution if/when you find it for the benefit of others. This same question seems to keep poping up on this list. Regards, Peter ___ fpc-pascal maillist - f

Re: [fpc-pascal] fpc svn development version fails to build from source

2015-08-24 Thread Peter
On 07/08/15 13:41, Roderick Johnstone wrote: > Hi > > I'm trying to build the fpc svn development version on Red Hat > > FATAL: cannot open file /usr/lib/fpc/lexyacc/yyparse.cod > > > so it seems to be looking in the wrong place for yyparse.cod, or > yyparse.cod is not installed correct

Re: [fpc-pascal] quality of FPC random

2015-08-20 Thread Peter
http://www.2uo.de/myths-about-urandom/ ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] shift right operation with variables

2015-08-17 Thread Peter
I was going to comment that the 'bitmask example doesn't work, which it didn’t, but looks like its been recently fixed by adding the needed QWord cast on the '1's. http://wiki.freepascal.org/Bit_manipulation Qwords are certainly trickier to use the Dwords. _

Re: [fpc-pascal] quality of FPC random

2015-08-17 Thread Peter
On 17/08/15 09:05, Michael Schnell wrote: > Unfortunately "Randomize" (in Linux in "System") just does > randseed:=longint(Fptime(nil)); > > if it would use /dev/urandom, > Perhaps that is worthy of a bug report? ___ fpc-pascal maillist - fpc-pa

Re: [fpc-pascal] alignment of records

2015-08-07 Thread Peter
On 07/08/15 12:58, Peter wrote: > However, I can't get it to pass Should have been "get it to parse" of course. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] alignment of records

2015-08-07 Thread Peter
include style directives, unless the headers are copied to the current folder and the <> removed. Peter ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] which GUI (noob)

2015-08-06 Thread Peter
On 04/08/15 16:20, Graeme Geldenhuys wrote: > On 2015-08-04 16:11, Peter wrote: >> I have not used Lazarus for a while, but I think you can use it as an >> IDE, while using fpGUI as a component set. Perhaps someone can confirm? > > I believe I answered that in an earli

Re: [fpc-pascal] which GUI (noob)

2015-08-04 Thread Peter
On 04/08/15 20:28, Juha Manninen wrote: > when QT4 is removed, Lazarus LCL will already support > QT5 bindings. Alpha version of the bindings already exist. Well, thats good news then. I couldn't find any mention of QT5 in the wiki. Peter.

Re: [fpc-pascal] which GUI (noob)

2015-08-04 Thread Peter
has a following, but last time I looked, there wasn’t much documentation to help get started with it. Peter ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Floor, Ceil and Int64

2015-07-01 Thread Peter
Bart, Agree it would be nice to have a wider range for Floor & Ceil. I would suggest raising a bug report for this. Its not been fixed in trunk (as of this post). Regards, Peter ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://

Re: [fpc-pascal] For .. in .. loops with sets and valued enums

2015-06-19 Thread Peter
On 19/06/15 08:46, Torsten Bonde Christiansen wrote: > program Project1; > > type > TMyEnum = ( > a = 1, > b = 3, > c = 5 > ); > TMySet = set of TMyEnum; > var > Item: TMyEnum; > > begin > for Item in TMySet do > Writeln('Value = ', Integer(Item)); > end. My guess is that

Re: [fpc-pascal] Warning: Type size mismatch, possible loss of data / range check error

2015-06-18 Thread Peter
On 18/06/15 16:53, Jonas Maebe wrote: > On 18/06/15 17:37, Peter wrote: > >> The problem occurs with BOTH switches -Cr & -CO >> Any one of these, and the compiler is silent, > -CO is a switch that is barely used and that is tested even less, > unfortunately (no exte

[fpc-pascal] Warning: Type size mismatch, possible loss of data / range check error

2015-06-18 Thread Peter
ler is silent, Is this a bug? Surely, the above A:=0; is valid Pascal isn’t it? Regards, Peter ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Truncate procedure unable to work under Linux, is this a bug?

2015-05-20 Thread Peter
On 20/05/15 16:36, Marco van de Voort wrote: > In our previous episode, Peter said: > >> It should work if Truncate64 is used instead of Truncate. >> I suggest its a bug, albeit probably a wishlist one. >> >> http://man7.org/linux/man-pages/man2/ftruncate.2.html >

Re: [fpc-pascal] Truncate procedure unable to work under Linux, is this a bug?

2015-05-20 Thread Peter
t; > Michael. > > > ___ > fpc-pascal maillist - fpc-pascal@lists.freepascal.org > http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal Hi, It should work if Truncate64 is used instead of Truncate. I suggest its a bug, albeit probably a wishlist one. http://man7.org/linux/man-pages/man2/ftruncate.2.html Regards, Peter ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] CRTI.O and CRTN.O not found

2015-04-17 Thread Peter
On 17/04/15 16:45, Peter wrote: > On 15/04/15 05:39, Anthony Walter wrote: >> Peter: I always install the build-essentials package whenever I setup >> a debian system, yet I occasionally get both -crti.o not found and >> -crtn.o not found >> >> Bart: That first go

Re: [fpc-pascal] CRTI.O and CRTN.O not found

2015-04-17 Thread Peter
On 15/04/15 05:39, Anthony Walter wrote: > Peter: I always install the build-essentials package whenever I setup > a debian system, yet I occasionally get both -crti.o not found and > -crtn.o not found > > Bart: That first google result you linked relates to mavericks a

Re: [fpc-pascal] CRTI.O and CRTN.O not found

2015-04-14 Thread Peter
On 05/04/15 20:57, Anthony Walter wrote: > A user on my forums sent me this message. I've experienced the problem > as wee for quite some time. I was wondering if anyone has a universal > fix for it yet since it seems to happen so frequently to many people? > > From Artie: > > I just installed Laza

[fpc-pascal] fpGUI - UI Designer - place own components ?

2015-03-05 Thread Peter Krawies
nt palette of the UI Designer. Is that possible - at all ? Thanks, Peter ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Ping problems - OS/X

2014-05-21 Thread Peter Brooks
foolishly, as it turned out, I thought it meant 'flawed' rather than 'doesn't work at all'. On 21 May 2014 18:33, waldo kitty wrote: > On 5/21/2014 7:00 AM, Peter Brooks wrote: >> >>AStringList.LoadFromStream(Aprocess.Output)

Re: [fpc-pascal] Ping problems - OS/X

2014-05-21 Thread Peter Brooks
s just the same. Is there an easier way to print the stream that comes back from TProcess? I think that the problem is in TStringList. On 21 May 2014 14:08, Mattias Gaertner wrote: > On Wed, 21 May 2014 13:00:58 +0200 > Peter Brooks wrote: > >> Sorry, I misled you. I did move

Re: [fpc-pascal] Ping problems - OS/X

2014-05-21 Thread Peter Brooks
Sorry, I misled you. I did move it higher up, earlier, to test something, and I forgot to put it back. This version has exactly the same behaviour: -rw-r--r-- 1 peterbrooks wheel 0 21 May 13:00 output.txt Program nmp(input,output); uses Classes, SysUtils, Process; var AProcess: TPr

[fpc-pascal] Ping problems - OS/X

2014-05-21 Thread Peter Brooks
I've got a little program that just pings. It runs. I get a 0 error return, but there doesn't seem to be any output: -rw-r--r-- 1 root wheel 0 21 May 11:09 output.txt So it's re-writing the output.txt file, but the written(AstringList.Text) isn't putting anything there. This is almost a dire

Re: [fpc-pascal] FPC 2.6.4 release!

2014-03-11 Thread Peter Brooks
Congratulations! I'll download it very soon.. On 11 March 2014 21:36, Marco van de Voort wrote: > > Finally, FPC 2.6.4 has landed. FPC 2.6.4 is an update to 2.6.2 and 2.6.0 that > contains most library progress over the 2.6.2. It will probably conclude the > 2.6.x branch. > > Building is still in

Re: [fpc-pascal] Freepascal on OSX 10.9 Mavericks $LINKLIB gcc broken

2014-03-10 Thread Peter Brooks
Why are you wanting to use gcc instead? If I wanted to do this, I'd just replace c with a link to gcc. On 10 March 2014 16:14, m...@rpzdesign.com wrote: > Peter: > > I was surprised too. That is why I broadcast the alarm to the FPC > community. > > I am running FPC

Re: [fpc-pascal] Freepascal on OSX 10.9 Mavericks $LINKLIB gcc broken

2014-03-09 Thread Peter Brooks
I'm a bit surprised. As it happens, just this week I compiled the fpc compiler from scratch on Mavericks. It worked perfectly well, and is compiling perfectly well - version 2.6.0. I was wondering, though, whether there was any enhanced support for features on the Intel 'Sandy-Bridge' and 'Ivy-Bri

Re: [fpc-pascal] Sets

2013-10-02 Thread Peter
Perhaps you need the {$PACKENUM n} compiler directive for the enumerated type? On 02/10/13 18:09, Juha Manninen wrote: > If I have have a set with < 9 elements, like : > > type > TMyEnum = ( > xOne, > xTwo, > xThree, > xFour, > xFive > ); > // Count <= 8, fits in one Byt

Re: [fpc-pascal] GUI confusion

2013-09-30 Thread Peter
HI, You might like Geany. http://www.geany.org/Main/About Peter ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

  1   2   3   4   5   6   >