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

2024-01-07 Thread Rainer Stratmann via fpc-pascal
Am Sonntag, 7. Januar 2024, 14:09:24 CET schrieb Florian Klämpfl via fpc- pascal: > > Am 07.01.2024 um 13:21 schrieb Ingemar Ragnemalm via fpc-pascal > > : > > > > Just for comparison, I fired up Think Pascal and made Hello world! > > > > Plain Hello world, closes so quickly that you don't have

Re: [fpc-pascal] RIP: Software design pioneer and Pascal creator Niklaus Wirth

2024-01-05 Thread Rainer Stratmann via fpc-pascal
Misconstruing complexity as sophistication: According to Wirth, “people seem to misinterpret complexity as sophistication.” The more complicated a product is, the more polished or knowledgeable the user would appear. Hence, software vendors create complex software and send this marketing

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

2023-09-01 Thread Rainer Stratmann via fpc-pascal
Am Freitag, 1. September 2023, 18:46:06 CEST schrieb Peter B via fpc-pascal: > Can you compile the crashing program with -gl? Yes, I can. I know this, but then the program is bigger. For finding the error it is useful, yes. Otherwise I switch it off. There are around 100 clients that

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

2023-09-01 Thread Rainer Stratmann via fpc-pascal
Am Freitag, 1. September 2023, 17:57:26 CEST schrieb Tomas Hajny via fpc- pascal: > On 2023-09-01 17:39, Rainer Stratmann via fpc-pascal wrote: > > Ah, sorry. I Forgot it totally. > > > > It is a plain console program under Linux. > > > > Yes, the remaining prog

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

2023-09-01 Thread Rainer Stratmann via fpc-pascal
: EAccessViolation: Access violation $0814EC41 ... ... ... This messages I need to read automatically Am Freitag, 1. September 2023, 16:13:54 CEST schrieb Tomas Hajny via fpc- pascal: > On 2023-09-01 15:43, Rainer Stratmann via fpc-pascal wrote: > > > Hello, > > > Where

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

2023-09-01 Thread Rainer Stratmann via fpc-pascal
Where can I find the output of the error messages if a program crashes. There is another program that still is running. I want to read the error messages automatically if that is possible. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org

[fpc-pascal] Compile time -> processor benchmark values

2023-05-29 Thread Rainer Stratmann via fpc-pascal
Now I have a i7-3770S cpubenchmark says: Average CPU Mark: 6175 Single Thread Rating: 2043 https://www.cpubenchmark.net/cpu.php?cpu=Intel+Core+i7-3770S+%40+3.10GHz I expect to buy a new computer with a i5-13400F or similar cpubenchmark says: Average CPU Mark: 25969 Single Thread Rating: 3702

Re: [fpc-pascal] Working on a new way to educate people about pascal

2022-12-29 Thread Rainer Stratmann via fpc-pascal
Am Donnerstag, 29. Dezember 2022, 15:02:41 CET schrieb DougC via fpc-pascal: > The response has been made that the example code in the tutorial is more > complicated than it should be. The installation process (in my case Linux) should be easy as well. For beginners that is at least as important

Re: [fpc-pascal] Working on a new way to educate people about pascal

2022-12-28 Thread Rainer Stratmann via fpc-pascal
Am Dienstag, 27. Dezember 2022, 17:47:13 CET schrieb Anthony Walter via fpc- pascal: > Hi guys, > > I had a new idea for an interface design to help people who either are not > into programming yet or have only used a language other than Free Pascal. Hello, the design is really good. I have the

Re: [fpc-pascal] Be careful of too many features

2022-05-30 Thread Rainer Stratmann via fpc-pascal
Am Montag, 30. Mai 2022, 20:59:56 CEST schrieb Steve Litt via fpc-pascal: > I think adding yet more features obfuscates and Perlizes > Pascal. What does Perlize mean? Only a very little percentage of the code is using it. And you could easily do it in another way. I also don't like make things

Re: [fpc-pascal] Feature announcement: implicit generic function specializations

2022-04-22 Thread Rainer Stratmann via fpc-pascal
Am Freitag, 22. April 2022, 19:53:34 CEST schrieben Sie: > Am 22.04.2022 um 15:48 schrieb Rainer Stratmann via fpc-pascal: > > Am Mittwoch, 20. April 2022, 19:15:15 CEST schrieb Sven Barth via fpc- pascal: > We don't deal in percentages, however it reduces the amount of typing > re

Re: [fpc-pascal] Feature announcement: implicit generic function specializations

2022-04-22 Thread Rainer Stratmann via fpc-pascal
Am Freitag, 22. April 2022, 17:27:33 CEST schrieb Hairy Pixels via fpc-pascal: > > On Apr 22, 2022, at 8:48 PM, Rainer Stratmann via fpc-pascal > It’s like everything else in programming languages. > > 1) you can specialize the function manually so implicit specialization is >

Re: [fpc-pascal] Feature announcement: implicit generic function specializations

2022-04-22 Thread Rainer Stratmann via fpc-pascal
Am Mittwoch, 20. April 2022, 19:15:15 CEST schrieb Sven Barth via fpc-pascal: > This feature is enabled with the modeswitch > ImplicitFunctionSpecialization and is for now not enabled by default as > this has the potential to break existing code. How many percent of the users need this feature?

[fpc-pascal] Interface section overload procedures are all public

2022-01-23 Thread Rainer Stratmann via fpc-pascal
// making only one procedure bugtest public in the interface section // makes all other bugtest procedures public as well! // Lazarus 2.0.0+dfsg-2 // FPC-Version: 3.0.4 // OS: Linux Debian 32 Bit unit test; interface procedure bugtest( p1 : longint ); implementation procedure bugtest( p1 :

Re: [fpc-pascal] freepascal.org SSL_ERROR_BAD_CERT_DOMAIN

2022-01-05 Thread Rainer Stratmann via fpc-pascal
Here it is ok now. Linux Debian, Firefox Browser Am Mittwoch, 5. Januar 2022, 11:05:34 CET schrieb Michael Van Canneyt via fpc- pascal: > On Wed, 5 Jan 2022, Dimitrios Chr. Ioannidis via fpc-pascal wrote: > > Hi, > > > > On 2022-01-05 11:09, Dmitry Boyarintsev via fpc-pascal wrote: > >> On Wed,

[fpc-pascal] freepascal.org SSL_ERROR_BAD_CERT_DOMAIN

2022-01-04 Thread Rainer Stratmann via fpc-pascal
https://freepascal.org/ ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] How to list IP and MAC of network adapters on Windows?

2021-12-28 Thread Rainer Stratmann via fpc-pascal
May be that helps a little bit. Please give a feedback if it works or not or if you can improve it. I use the curl library directly. Not on the command line. {$ifdef windows} uses sockets , winsock2; procedure adds2( var dw : dword ; p : pointer ); var addr : pinaddr; begin addr := p; if

Re: [fpc-pascal] Creating a shared library (Linux)

2021-12-28 Thread Rainer Stratmann via fpc-pascal
tings -> path window could be better explained. Am Dienstag, 28. Dezember 2021, 13:10:56 CET schrieb Rainer Stratmann via fpc- pascal: > https://www.freepascal.org/docs-html/prog/progse55.html > > When analysing the mylib.o output file under Linux with > > nm -D mylib.o >

[fpc-pascal] Creating a shared library (Linux)

2021-12-28 Thread Rainer Stratmann via fpc-pascal
https://www.freepascal.org/docs-html/prog/progse55.html When analysing the mylib.o output file under Linux with nm -D mylib.o the answer is: no symbols. I have an export section in the library and in the past it worked already, but I did not remember exactly how. How can I get a shared

Re: [fpc-pascal] 64 bit Linux syscall from 32 bit fpc program

2021-12-24 Thread Rainer Stratmann via fpc-pascal
Am Freitag, 24. Dezember 2021, 23:02:03 CET schrieb Sven Barth via fpc-pascal: > Rainer Stratmann via fpc-pascal schrieb > > am Fr., 24. Dez. 2021, 15:04: > > Is it possible to make a direct 64 bit Linux syscall from a 32 bit fpc > > programm? > > No, because your pro

[fpc-pascal] 64 bit Linux syscall from 32 bit fpc program

2021-12-24 Thread Rainer Stratmann via fpc-pascal
Is it possible to make a direct 64 bit Linux syscall from a 32 bit fpc programm? ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] How To: Use lib curl example

2021-12-05 Thread Rainer Stratmann via fpc-pascal
Am Sonntag, 5. Dezember 2021, 20:38:30 CET schrieb Rainer Stratmann via fpc- pascal: > Does that mean curl is always waiting until the whole operation (download) > is complete? > > Is it possible to do it in a nonblocked way? For example with a continuous > nonblocked loop call

Re: [fpc-pascal] How To: Use lib curl example

2021-12-05 Thread Rainer Stratmann via fpc-pascal
Does that mean curl is always waiting until the whole operation (download) is complete? Is it possible to do it in a nonblocked way? For example with a continuous nonblocked loop call and a flag when the operation is finished? Am Dienstag, 28. September 2021, 02:01:00 CET schrieb Anthony

Re: [fpc-pascal] Example for unit paszlib

2021-08-26 Thread Rainer Stratmann via fpc-pascal
Canneyt via fpc-pascal: > On Wed, 25 Aug 2021, Rainer Stratmann via fpc-pascal wrote: > > Is there an example for the unit paszlib? > > > > This does not work: > > https://wiki.lazarus.freepascal.org/paszlib > > What does not work exactly ? the zipper unit is

[fpc-pascal] Example for unit paszlib

2021-08-25 Thread Rainer Stratmann via fpc-pascal
Is there an example for the unit paszlib? This does not work: https://wiki.lazarus.freepascal.org/paszlib I have Lazarus 2.0.0 FPC 3.0.4 May be there are different versions of paszlib. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org

Re: [fpc-pascal] 50 years of Pascal, by the the author himself

2021-05-12 Thread Rainer Stratmann via fpc-pascal
https://www.mikroe.com/mikropascal-avr It is in heavy use. They have Pascal compilers for ARM, PIC, etc. also. Am Mittwoch, 12. Mai 2021, 21:51:03 CEST schrieb Ryan Joseph via fpc-pascal: > > On May 12, 2021, at 12:30 PM, Ralf Quint via fpc-pascal > > wrote: > > > > Thought this was kind of

Re: [fpc-pascal] 50 Years of Pascal

2021-02-24 Thread Rainer Stratmann via fpc-pascal
Am Mittwoch, 24. Februar 2021, 17:50:45 CET schrieb Liam Proven via fpc- pascal: > I thought this might interest folks. Apologies if I am late to the party. > > https://cacm.acm.org/magazines/2021/3/250705-50-years-of-pascal/fulltext https://de.wikipedia.org/wiki/Niklaus_Wirth Here is an

Re: [fpc-pascal] fpmmap problem 64 bit linux

2020-11-22 Thread Rainer Stratmann via fpc-pascal
bytes). https://man7.org/linux/man-pages/man2/mmap2.2.html But it is not yet implemented. FPC 3.0.4 Am Samstag, 21. November 2020, 13:31:22 CET schrieb Rainer Stratmann via fpc- pascal: > I watched the syscalls with strace and my assumption was confirmed. > > function Fpmmap( start

Re: [fpc-pascal] fpmmap problem 64 bit linux

2020-11-21 Thread Rainer Stratmann via fpc-pascal
easiest answer is "distribute both > 32 and 64 bit versions," but that doesn't help when you need to test the 32 > bit one.. > > -- > Alexander Grotewohl > https://dcclost.com > > -- > Alexander Grotewohl > https://dcclost.com > ________ &

[fpc-pascal] fpmmap problem 64 bit linux

2020-11-20 Thread Rainer Stratmann via fpc-pascal
A 32 bit freepascal program on a 32 bit Linux Debian system is working properly. It uses fpmmap for getting the adress of a kms framebuffer. The same 32 bit program on a 64 bit Linux Debian system *** is not working. When it comes to the fpmmap it gives an error: Sys_EINVAL One of the

Re: [fpc-pascal] Writeln() behaves differently on Windows and Linux, why?

2020-07-09 Thread Rainer Stratmann
I had exactly the same behaviour. Some setterm commands solved it, if I remember correct. setterm -blank 0 setterm -powersave off I guess it was the first command. You can try it. Am Donnerstag, 9. Juli 2020, 18:01:42 CEST schrieb Bo Berglund via fpc-pascal: > I am writing a cross-platform

Re: [fpc-pascal] FPC for Win64

2020-07-07 Thread Rainer Stratmann
Am Dienstag, 7. Juli 2020, 09:42:54 CEST schrieb Marco van de Voort: > Op 07/07/2020 om 09:14 schreef Rainer Stratmann: > > For Linux: Does that mean apt-get install lazarus is always the 32bit > > version? Regardless of the Linux Version (32bit or 64bit). > > No. The

Re: [fpc-pascal] FPC for Win64

2020-07-07 Thread Rainer Stratmann
Am Samstag, 4. Juli 2020, 20:02:39 CEST schrieb Graeme Geldenhuys: > On 02/07/2020 9:30 pm, Evert van Dijken via fpc-pascal wrote: > > I see a WIN32 compiler and a WIN64 cross > > compiler. How it works is a mystery for me. > > I never understood the choice FPC made to not create a native 64-bit

Re: [fpc-pascal] Different behaviour between FPC 2.6.4 and FPC 3.0.4

2020-05-05 Thread Rainer Stratmann
Am Dienstag, 5. Mai 2020, 22:53:53 CEST schrieb Bart via fpc-pascal: > On Tue, May 5, 2020 at 10:05 PM Rainer Stratmann > > wrote: > > Did I overlooked something? > > Your function returns a functiontype? > Is that intended? And I wonder why result := false; did n

Re: [fpc-pascal] Different behaviour between FPC 2.6.4 and FPC 3.0.4

2020-05-05 Thread Rainer Stratmann
Am Dienstag, 5. Mai 2020, 22:53:53 CEST schrieb Bart via fpc-pascal: > On Tue, May 5, 2020 at 10:05 PM Rainer Stratmann > > wrote: > > Did I overlooked something? > > Your function returns a functiontype? > Is that intended? No :-) But that worked a long time (2 yea

Re: [fpc-pascal] Different behaviour between FPC 2.6.4 and FPC 3.0.4

2020-05-05 Thread Rainer Stratmann
hl > https://dcclost.com > > From: fpc-pascal on behalf of > Rainer Stratmann Sent: Tuesday, May 5, 2020 > 4:20:11 PM > To: FPC-Pascal users discussions > Subject: Re: [fpc-pascal] Different behaviour between FPC 2.6.4 and FPC > 3.0.4 > Am Dienstag, 5. Mai 2020, 22:

Re: [fpc-pascal] Different behaviour between FPC 2.6.4 and FPC 3.0.4

2020-05-05 Thread Rainer Stratmann
Am Dienstag, 5. Mai 2020, 22:14:09 CEST schrieb Alexander Grotewohl: > procvar:=@proc_bool; ? Error: Incompatible types > -- > Alexander Grotewohl > https://dcclost.com > > > From: fpc-pascal on behalf of > Rainer Stratmann Sent: Tues

[fpc-pascal] Different behaviour between FPC 2.6.4 and FPC 3.0.4

2020-05-05 Thread Rainer Stratmann
Compiled with FPC 3.0.4 there is an access violation when executing procvar; Compiled with FPC 2.6.4 it works for a long time. Did I overlooked something? Mode: MObjFPC type t_funcboolean = function : boolean; var procvar : t_funcboolean; function proc_bool : t_funcboolean; begin end;

Re: [fpc-pascal] New release of MSEide.

2020-04-02 Thread Rainer Stratmann
Am Donnerstag, 2. April 2020, 20:23:07 CEST schrieb fredvs via fpc-pascal: > Hello everybody. > > Many thanks to fpc team that helped so much for that release (particularly > Sven). > > Have a lot of fun. > > Fre;D How long are you involved already in the MSEide project?

Re: [fpc-pascal] fpbind ipv6 version

2019-10-28 Thread Rainer Stratmann
On Sonntag, 27. Oktober 2019 10:32:11 CET Michael Van Canneyt wrote: > On Sat, 26 Oct 2019, Rainer Stratmann wrote: > > https://www.freepascal.org/docs-html/current/rtl/sockets/fpbind.html > > > > Is there an example for IPV6? > > > > function fpbind( > &g

[fpc-pascal] fpbind ipv6 version

2019-10-26 Thread Rainer Stratmann
https://www.freepascal.org/docs-html/current/rtl/sockets/fpbind.html Is there an example for IPV6? function fpbind( s: cint; addrx: psockaddr; addrlen: TSockLen ):cint; I guess psockaddr is different in IPV6 version. ___ fpc-pascal maillist -

Re: [fpc-pascal] += property bug?

2019-08-15 Thread Rainer Stratmann
On Mittwoch, 14. August 2019 14:15:51 CEST Ryan Joseph wrote: > > On Aug 14, 2019, at 12:33 PM, Rainer Stratmann > > wrote: > > > > Didn't you know that Ryan? > > Yes, of course, I use them all the time and it’s why I was defending them > from their critics (w

Re: [fpc-pascal] += property bug?

2019-08-14 Thread Rainer Stratmann
On Mittwoch, 14. August 2019 18:24:40 CEST Michael Van Canneyt wrote: > On Wed, 14 Aug 2019, Ryan Joseph wrote: > >> On Aug 14, 2019, at 12:04 PM, Rainer Stratmann wrote: > >>> It’s so > >>> intuitive that basically all languages have adopted the syntax. >

Re: [fpc-pascal] += property bug?

2019-08-14 Thread Rainer Stratmann
On Mittwoch, 14. August 2019 11:45:20 CEST Ryan Joseph wrote: > > On Aug 14, 2019, at 11:41 AM, wkitt...@windstream.net wrote: > > > > good reason?? because someone is too lazy to type 4 more characters? yes, > > i'm counting the readability spaces which could easily be left out... > yes, that’s

Re: [fpc-pascal] += property bug?

2019-08-11 Thread Rainer Stratmann
On Sonntag, 11. August 2019 12:21:18 CEST Ryan Joseph wrote: > > On Aug 11, 2019, at 11:41 AM, Sven Barth via fpc-pascal > > wrote: > > > > This is forbidden by design. > > Why? It makes sense it should resolve to: d.setter(d.getter + 10) but maybe > there’s a problem? For me it seems that you

Re: [fpc-pascal] Lazarus Release 2.0.2 - suggestions

2019-07-21 Thread Rainer Stratmann
On Dienstag, 16. April 2019 22:36:07 CEST Mattias Gaertner via fpc-pascal wrote: > Packages / Install Packages > Select anchordockingdsgn on the right side and click "Install > selection". > Then "Save and rebuild IDE". Habe jetzt das ganz neue Debian 10 - mit apt-get install lazarus (2.0.0) -

[fpc-pascal] Linphone wrapper

2019-05-29 Thread Rainer Stratmann
Is someone using Linphone? I need a wrapper for the library. https://www.linphone.org/technical-corner/liblinphone Or is there another solution for automatic VoIP calls? ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org

[fpc-pascal] Translating c records

2019-04-24 Thread Rainer Stratmann
struct sockaddr_ll { unsigned short sll_family; unsigned short sll_protocol; intsll_ifindex; unsigned short sll_hatype; unsigned char sll_pkttype; unsigned char sll_halen; unsigned char sll_addr[8]; }; type sockaddr_ll = record

Re: [fpc-pascal] Lazarus Release 2.0.2 - suggestions

2019-04-17 Thread Rainer Stratmann
On Dienstag, 16. April 2019 22:36:07 CEST Mattias Gaertner via fpc-pascal wrote: > On Tue, 16 Apr 2019 21:13:52 +0200 > > Rainer Stratmann wrote: > > On Dienstag, 16. April 2019 21:02:50 CEST Rainer Stratmann wrote: > > > But how can I install/activate it. > > >

Re: [fpc-pascal] Lazarus Release 2.0.2 - suggestions

2019-04-16 Thread Rainer Stratmann
On Dienstag, 16. April 2019 13:07:33 CEST Ralf Quint wrote: > But I still think that this should not be the default setting... As you may have not seen while being busy with something else... I repeat it for you. On Dienstag, 16. April 2019 20:44:56 CEST Mattias Gaertner via fpc-pascal wrote: >

Re: [fpc-pascal] Linux DRM (Direct Rendering Manager) porting (kernel mode setting)

2019-04-16 Thread Rainer Stratmann
, dvi connector). You get a mempointer to a framebuffer. It is possible to have access to more than one connector at the same time if the mainboard or graphic card supports it. On Donnerstag, 21. März 2019 23:41:08 CEST Rainer Stratmann wrote: > Currently I am porting some C code from the Linux

Re: [fpc-pascal] Lazarus Release 2.0.2 - suggestions

2019-04-16 Thread Rainer Stratmann
On Dienstag, 16. April 2019 21:02:50 CEST Rainer Stratmann wrote: > But how can I install/activate it. I found an instruction, but I got an error: lazarus.pp(1,1) Fatal: Kann anchordockingdsgn nicht finden verwendet von Lazarus. Check if package AnchorDockingDsgn creates anchordockingdsgn.

Re: [fpc-pascal] Lazarus Release 2.0.2 - suggestions

2019-04-16 Thread Rainer Stratmann
On Dienstag, 16. April 2019 14:34:05 CEST Sven Barth via fpc-pascal wrote: > You can install the AnchorDockingDsgn package and have all windows > integrated (except for forms which need an additional package). That sounds good for both use cases. But how can I install/activate it. I tried with

Re: [fpc-pascal] Lazarus Release 2.0.2 - suggestions

2019-04-16 Thread Rainer Stratmann
On Dienstag, 16. April 2019 11:37:56 CEST Ralf Quint wrote: > On 4/16/2019 4:46 AM, Rainer Stratmann wrote: > Anyone who seriously develops software, specially desktop applications, > is/should be using at least two (better 3 monitors). That is completely new for me that the amount of

Re: [fpc-pascal] Lazarus Release 2.0.2 - suggestions

2019-04-16 Thread Rainer Stratmann
On Dienstag, 16. April 2019 13:46:59 CEST Rainer Stratmann wrote: > buttons of the main window. Also the output window could be one tab of the > search window. I mean search result window more precisely. ___ fpc-pascal maillist - fpc-

Re: [fpc-pascal] Lazarus Release 2.0.2 - suggestions

2019-04-16 Thread Rainer Stratmann
Are there plans to merge some windows? Like here (best solution): https://cdn.portableapps.com/GeanyPortable.png Because I think it is no more up to date. I don't know any other Software that uses so many windows across the whole desktop. It would be more userfriendly to merge at least the main

Re: [fpc-pascal] Can FPC optimize: if (s[i]='a') or ...

2019-04-15 Thread Rainer Stratmann
On Sonntag, 14. April 2019 21:35:43 CEST wkitt...@windstream.net wrote: > On 4/14/19 7:28 AM, Rainer Stratmann wrote: > > On Samstag, 13. April 2019 22:30:55 CEST Alexey Tor. wrote: > >> E.g. i have a loop which test each s[i] char for several cases: 'a', > >> 'b'

Re: [fpc-pascal] Can FPC optimize: if (s[i]='a') or ...

2019-04-14 Thread Rainer Stratmann
On Samstag, 13. April 2019 22:30:55 CEST Alexey Tor. wrote: > E.g. i have a loop which test each s[i] char for several cases: 'a', > 'b', 'c'. > > for i:= 1 to length(s) do > > if (s[i]='a') or (s[i]='b') or (s[i]='c') then ... > > Can FPC optimize it so it only reads s[i] once (to register),

[fpc-pascal] Linux DRM (Direct Rendering Manager) porting

2019-03-21 Thread Rainer Stratmann
Currently I am porting some C code from the Linux DRM Mode-Setting API to pascal. First in my own way. So that it is usable for me. But it would be possible to make a separate unit out of it, of course. I could compile the modeset.c code with the Linux compiler. It runs well on Linux. It's a

Re: [fpc-pascal] Compiling 32 bit software on Debian Linux 64 bit

2018-10-30 Thread Rainer Stratmann
On Dienstag, 30. Oktober 2018 12:25:04 CET Rainer Stratmann wrote: > How is it possible to compile a 32 bit program on a 64 bit Debian Linux? > > When I select i386 as the target cpu the message 'ppc 386 can't be executed' > appears. > > Is it possible to install ppc386 with

[fpc-pascal] Compiling 32 bit software on Debian Linux 64 bit

2018-10-30 Thread Rainer Stratmann
How is it possible to compile a 32 bit program on a 64 bit Debian Linux? When I select i386 as the target cpu the message 'ppc 386 can't be executed' appears. Is it possible to install ppc386 with an apt-get command? ___ fpc-pascal maillist -

Re: [fpc-pascal] Searchable docs online

2018-07-05 Thread Rainer Stratmann
Is the server itself written in freepascal? Or is it apache or nginx? Am Donnerstag, 5. Juli 2018, 15:50:23 schrieb Michael Van Canneyt: > Hello, > > Given the questions of late, I have created a search page for the docs: > > https://www.freepascal.org/docsearch/docsearch.html > > This will

Re: [fpc-pascal] Default record fields

2018-06-22 Thread Rainer Stratmann
Am Freitag, 22. Juni 2018, 16:03:28 schrieb Marcos Douglas B. Santos: > On Fri, Jun 22, 2018 at 12:59 PM, Ralf Quint wrote: > > On 6/22/2018 4:19 AM, Karoly Balogh (Charlie/SGR) wrote: > >> Hi, > >> > >> On Fri, 22 Jun 2018, Ryan Joseph wrote: > >>> I want to do a pivot away from the macro stuff

Re: [fpc-pascal] AppImage

2018-01-16 Thread Rainer Stratmann
Am Dienstag, 16. Januar 2018, 22:41:34 schrieb Sven Barth via fpc-pascal: > This won't work in the more diverse > Linux world where users are more free to decide. But if you take a closer look at this (diverse) that is some kind of pseudo free and decide. It would be technical no such problem

Re: [fpc-pascal] AppImage

2018-01-16 Thread Rainer Stratmann
Am Dienstag, 16. Januar 2018, 19:41:38 schrieb Graeme Geldenhuys: > On 2018-01-16 06:51, Sven Barth via fpc-pascal wrote: > > So, yeah, I'm definitely skeptical about such approaches. > > All valid points. But if it was such a big concern, then why was Apple > happy to go with it. Maybe the

Re: [fpc-pascal] AppImage

2018-01-16 Thread Rainer Stratmann
Am Dienstag, 16. Januar 2018, 07:51:27 schrieb Sven Barth via fpc-pascal: > Maybe because each app will have its own dependencies, thus duplicating > code. > Also if you have different versions of dependencies they might access > shared global configuration in incompatible ways. > Not to mention

[fpc-pascal] AppImage

2018-01-15 Thread Rainer Stratmann
Take a look at https://appimage.org/ Is this possible for Freepascal and Lazarus? ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] MSEide+MSEgui 4.6 for FPC 3.0.4

2017-11-29 Thread Rainer Stratmann
Am Mittwoch, 29. November 2017, 21:43:00 schrieb Marcos Douglas B. Santos: > On Wed, Nov 29, 2017 at 9:35 PM, Rainer Stratmann > > <rainerstratm...@t-online.de> wrote: > > Am Mittwoch, 29. November 2017, 07:19:32 schrieb Martin Schreiber: > >> What

Re: [fpc-pascal] MSEide+MSEgui 4.6 for FPC 3.0.4

2017-11-29 Thread Rainer Stratmann
Am Mittwoch, 29. November 2017, 07:19:32 schrieb Martin Schreiber: > What is missing > in Free Pascal? A userfriendly setup/install for every compile/cross compile scenario out of the box. Without the need for compiling fpc. Without the need for an internet connection.

Re: [fpc-pascal] FPC for AVR

2017-06-15 Thread Rainer Stratmann
Am Donnerstag, 15. Juni 2017, 08:34:49 schrieb Mark Morgan Lloyd: > On 14/06/17 20:15, Brian wrote: > > mikroPascal (not free) supports AVR and many other chips. > > https://shop.mikroe.com/compilers/mikropascal/avr-electronic-license > > Brian > > Yes, but I was asking about the FPC situation.

[fpc-pascal] https how does it work

2017-02-16 Thread Rainer Stratmann
How does httpy work, what is needed? TLS/SSL library? A http webserver without encryption I programed already on my own and wanted to integrate https. Is there any example code of https? ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org

Re: [fpc-pascal] Socket pair

2016-10-03 Thread Rainer Stratmann
There is fpaccept http://www.freepascal.org/docs-html/rtl/sockets/fpaccept.html But in the example accept is used ... (?!) Am Montag, 3. Oktober 2016, 10:27:55 schrieb Santiago A.: > I've seen that "accept" functions with socket pairs are deprecated. And > fpsocketpair returns always -1. > >

Re: [fpc-pascal] Test for valid ip address

2016-07-28 Thread Rainer Stratmann
Am Donnerstag, 28. Juli 2016, 10:26:32 schrieb Jonas Maebe: > On 28/07/16 10:14, Koenraad Lelong wrote: > > I need a way to test if an string containing an ipv4-address is really > > an ipv4-address. > > I tried > > tmpAddress:=HostAddrToStr(StrToHostAddr(IPAddressStr)); > > writeln(tmpAddress); >

Re: [fpc-pascal] Test for valid ip address

2016-07-28 Thread Rainer Stratmann
The IP-Adress is a dword, but you can change, that it fits for you. function str_getval( str : shortstring ) : longint; var cod : longint; begin val( str , result , cod ); end; function ip_from_string( ipstr : shortstring ; out error : boolean ) : dword; var c : char; ipn , pointanz :

[fpc-pascal] EBusError

2016-07-26 Thread Rainer Stratmann
An unhandled exception occured at $08113310 : EBusError : Bus error or misaligned data access $08113310 $08052EF3 $08078A3E $080540B0 $08054D96 $080551D1 $08055915 Is it likely that there is a problem with my Freepascal program or is it also possible that Linux or the Mainboard causes the

Re: [fpc-pascal] Maximum of memory which can be used by single program in 32 bit Windows

2016-05-19 Thread Rainer Stratmann
Is there a different behaviour on linux? I guess there is no limit...(!?) Am Donnerstag, 19. Mai 2016, 08:46:57 schrieb LacaK: > >> another question: is there any limit in FPC, which causes that only cca > >> 1GB of memory can be used by FPC ? > > > > No, but there is one that limits to 2GB.

Re: [fpc-pascal] Build in a C compiler

2016-04-20 Thread Rainer Stratmann
Am Mittwoch, 20. April 2016, 12:40:19 schrieb Mark Morgan Lloyd: > > http://www.mikroe.com/compilers > > If you want to believe that BASIC- as originally implemented- and ALGOL > are related then go ahead and do so. But the politest thing I can say is > that it doesn't make you look particularly

Re: [fpc-pascal] Build in a C compiler

2016-04-20 Thread Rainer Stratmann
Am Mittwoch, 20. April 2016, 07:05:10 schrieb Mark Morgan Lloyd: > No. Pascal and ALGOL are closely related, C and ALGOL are closely > related. Pascal and C are not so closely related. As you can see here Pascal, C, and Basic are very close related. http://www.mikroe.com/compilers

[fpc-pascal] Build in a C compiler

2016-04-19 Thread Rainer Stratmann
That would be great. It is not that difficult. { = begin } = end and the other stuff is quite similar. Pascal and C are close related. It could be made with a compiler switch to determine if the compiler is in the Pascal or in the C compiling mode. No more need to translate (huge amount of)

Re: [fpc-pascal] Lazarus vs MSEgui

2016-04-08 Thread Rainer Stratmann
con of mside why I don't use it: The behaviour of the cursor on the end of the line. You cannot go behind the line as it is usual in almost every other editor. Martin says it is difficult to integrate which I find hard to understand. That behaviour of the cursor confuses me. The other editors

Re: [fpc-pascal] Primitive Record Wrappers

2016-03-01 Thread Rainer Stratmann
On Wednesday 17 February 2016 18:40:52 you wrote: > Hello list, > > In some situations, would be very interesting to determine whether the > value of a primitive variable is initialized or not. For example, fields in > database records can contain null values. By implementing an ORM, it would >

Re: [fpc-pascal] shell script with root rights and automatic password

2015-12-07 Thread Rainer Stratmann
On Monday 07 December 2015 08:38:28 you wrote: > Rainer Stratmann wrote: > > What works is an entry in the sudoers file. > > And then the program/script you can call with root rights. > > I hope this is for something that will only ever run on your own > machine, becau

[fpc-pascal] shell script with root rights and automatic password

2015-12-06 Thread Rainer Stratmann
How to do this? I would like to run a script with root rights from an application. The password should be transferred automatically. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org

Re: [fpc-pascal] shell script with root rights and automatic password

2015-12-06 Thread Rainer Stratmann
On Sunday 06 December 2015 19:15:45 you wrote: > On So, 2015-12-06 at 17:20 +0100, Rainer Stratmann wrote: > > How to do this? > > > > I would like to run a script with root rights from an application. > > The password should be transferred automatically. > > Ot

Re: [fpc-pascal] MSEide+MSEgui 4.0beta1 for FPC 3.0

2015-10-02 Thread Rainer Stratmann
Is it possible now to go behind the last character with the cursor? code abcdefg[c] [c] = cursor On Friday 02 October 2015 10:53:13 you wrote: > Hi, > > MSEide+MSEgui 4.0beta1 for FPC 3.0 is ready for testing: > http://mseide-msegui.sourceforge.net/pics/mseide_4_0.png >

Re: [fpc-pascal] Unit crt

2015-09-23 Thread Rainer Stratmann
On Wednesday 23 September 2015 13:19:28 you wrote: > Rainer Stratmann wrote on Wed, 23 Sep 2015: > > Does an example exist to turn off (and on) the rawmode? > > You posted the routine to do that yourself in the first mail of this > thread (the last one). Ok, I guess the ONO

Re: [fpc-pascal] Unit crt

2015-09-23 Thread Rainer Stratmann
On Wednesday 23 September 2015 12:05:43 you wrote: > In our previous episode, Rainer Stratmann said: > > Does it have something to do with the output of Linux commands? > > Yes. In raw mode cr and lf are separate. so suddenly your lf only advances > to the next line,

Re: [fpc-pascal] Unit crt

2015-09-23 Thread Rainer Stratmann
On Wednesday 23 September 2015 13:19:28 you wrote: > Rainer Stratmann wrote on Wed, 23 Sep 2015: > > Does an example exist to turn off (and on) the rawmode? > > You posted the routine to do that yourself in the first mail of this > thread (the last one). > http://man7.org

Re: [fpc-pascal] Unit crt

2015-09-23 Thread Rainer Stratmann
On Wednesday 23 September 2015 18:24:54 you wrote: > On 23/09/15 15:06, Rainer Stratmann wrote: > > On Wednesday 23 September 2015 13:19:28 you wrote: > >> >Rainer Stratmann wrote on Wed, 23 Sep 2015: > >>> > >Does an example exist to turn off (and o

Re: [fpc-pascal] Unit crt

2015-09-23 Thread Rainer Stratmann
On Wednesday 23 September 2015 13:19:28 you wrote: > Rainer Stratmann wrote on Wed, 23 Sep 2015: > > Does an example exist to turn off (and on) the rawmode? > > You posted the routine to do that yourself in the first mail of this > thread (the last one). There is not

Re: [fpc-pascal] Unit crt

2015-09-23 Thread Rainer Stratmann
On Wednesday 23 September 2015 22:40:32 you wrote: > What means CRT for ? :) https://en.wikipedia.org/wiki/Cathode_ray_tube ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

[fpc-pascal] Unit crt

2015-09-23 Thread Rainer Stratmann
What does SetRawMode do? var OldIO : termio.TermIos; inputRaw, outputRaw: boolean; procedure saveRawSettings(const tio: termio.termios); Begin with tio do begin inputRaw := ((c_iflag and (IGNBRK or BRKINT or PARMRK or ISTRIP or INLCR or

Re: [fpc-pascal] Unit crt

2015-09-23 Thread Rainer Stratmann
wrote: > On Tue, 22 Sep 2015, Rainer Stratmann wrote: > > What does SetRawMode do? > > puts the terminal in RAW mode. > This disables usual terminal tricks such as translating CTRL-C to SIGINT > etc. > > A terminal does quite some things 'behind your back', which are not &

Re: [fpc-pascal] Release of Lazarus 1.4

2015-04-22 Thread Rainer Stratmann
Are there screenshots? Is it with the new layout, one Window only? On Wednesday 22 April 2015 11:07:47 you wrote: The Lazarus team is glad to announce the release of Lazarus 1.4. This release was built with FPC 2.6.4, same as the previous release Lazarus 1.2.6. Here is the list of

Re: [fpc-pascal] Debug information

2015-01-14 Thread Rainer Stratmann
Linux Platform. In the past there was a discussion about it already. It may has to do with dynamic loaded library? On Tuesday 13 January 2015 16:32:37 you wrote: On 13 Jan 2015, at 16:14, Martin Frb wrote: On 13/01/2015 14:40, Rainer Stratmann wrote: Can not get debug information -g

[fpc-pascal] Debug information

2015-01-13 Thread Rainer Stratmann
Can not get debug information -g -gl -gw switched on but no further information (line nr) is displayed when an error occured. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Linux, keypressed, readkey

2014-12-23 Thread Rainer Stratmann
On Sunday 21 December 2014 07:26:42 you wrote: I downloaded the sources, but can not find the crt sources. fpsrc/rtl/linux ? latest stable: http://svn.freepascal.org/svn/fpc/tags/release_2_6_4/rtl/unix/crt.pp trunk:

[fpc-pascal] unit crt linux CR LF

2014-12-20 Thread Rainer Stratmann
When using the crt unit the CR LF is not working properly as I understand. Is it possible to change this behaviour? So that the CR LF is working? For examlpe when displaying file contents with linux command cat. ___ fpc-pascal maillist -

Re: [fpc-pascal] Size of a partition

2014-12-19 Thread Rainer Stratmann
On Thursday 18 December 2014 22:49:08 you wrote: On 12/18/14, Rainer Stratmann rainerstratm...@t-online.de wrote: How to get the total size of an unmounted partition in Linux? Can you use the info at http://serverfault.com/questions/190685/whats-the-best-way-to-get-info-abou t-currently

[fpc-pascal] Linux, keypressed, readkey

2014-12-19 Thread Rainer Stratmann
Is it possible to do keypressed and readkey directly with a systemcall in linux without unit crt? ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

  1   2   3   4   5   >