fpc-pascal · 2020-05
- Ethernet Relays17
Does anyone have any advice on how to get started sending commands from FPC to use these ethernet relays: https://www.amazon.com/gp/product/B076CNJNFH Default IP…
- optimization for strlicomp()4
function strlicomp(str1,str2 : pwidechar;l : SizeInt) : SizeInt; var counter: sizeint; c1, c2: char; begin counter := 0; if l=0 then…
- Implementing a simple tcp/ip connection4
I needed to implement a simple dedicated TCP/IP connection between a client and a server. Nothing fancy, just sending and receiving short strings. I have used in the…
- get class of procedure variable3
In the example below "callback" is assigned to a method of "obj", but is it possible to get the class back from the variable? In the pseudo code I would expect .GetClass…
- TFPGList and objects3
Using objects in TFPGList is currently not possible because class operators are not supported in objects. I tried using global scope operators but they don't seem to…
- Copying a Pchar to an array of bytes4
I'm not too familiar with Pchar, and apparently I'm missing something. I have a Pchar string which I must copy into an array of bytes. Could someone explain me while a…
- Delphi TService2
Does somebody have a compatible TService somewhere for dual compilation Delphi/Lazarus purposes? There is daemonapp, but that seems to be incompatible, but maybe it can…
- Zoned date/time conversions2
I need to do timezone enabled date/time conversions... Use case 1) We want the application server to always use UCT and the application server might not be in the sime…
- How to implement a simple tcp/ip connection?16
I need to implement a simple dedicated TCP/IP connection between a client and a server. Nothing fancy, just sending and receiving short strings. I have used in the past…
- fpDebug extension for Visual Studio Code17
As I wrote before I'm working on a fpDebug-extension for Visual Studio Code, based on the DAB (Debug Adapter Protocol). This protocol is also used by other editors. I…
- Custom attributes1
Hi! FPC compiler has a define when custom attributes are present? Something like FPC_HAS_CONSTREF, to say when constref is available... Fabio Luis Girardi PascalSCADA…
- Bug 37080 -- StrToHostAddr accepts all Pascal number notations11
While doing some work on bug 37060, the refactoring of StrToHostAddr and StrToHostAddr6 in the sockets unit,(https://bugs.freepascal.org/view.php?id=37060), I found that…
- please where is fpc-3.2.0rc1.arm64-linux1
Please is there some precompiled Linux ARM64 Binary of fpc-3.2.0rc1? Because I can only find ARM not ARM64 Bit precompiled binary. May be, that compiler is stored on…
- Optimizing code generation fpc (lazarus)?3
Maybe a stupid question, but... I am struggling with porting a Windows service application written with D7/D2007 back in 2004-2006 or so. I need to get it moved to Linux…
- Return value of StrToHostAddr and StrToHostAddr6 in sockets unit20
While working with StrToHostAddr and StrToHostAddr6 over the past couple of weeks I've run into issues caused by the functions returning all zero addresses to indicate…
- Different behaviour between FPC 2.6.4 and FPC 3.0.411
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…
- Code tools and changing include file text1
When a file changes I get the full source text and update the version in code tools by doing this: Code := CodeToolBoss.FindFile(Path); Code.Source := text; This works…
- Code tools search paths9
I found out that setting TCodeToolsOptions.FPCOptions (-Fu and -Fi) was doing something because it helped FindDeclaration to search for units not in the same same…
- Bugs in StrToHostAddr6 in sockets unit14
Using fpc 3.0.4 on Fedora 30. I've just started using the StrToHostAddr6 function in the sockets unit to parse IPv6 addresses. I've found a couple of issues with it. 1.…
- Compiler mode for code in rtl and rtl-extra3
I've been beavering away at a fix for https://bugs.freepascal.org/view.php?id=37013 and I've run into something unexpected. When I try to build rtl-extra with my proposed
- Using include files in code tools8
When using code tools I've found that it needs to start from a main unit (otherwise other relevant macros may not be set) and then insert includes into the source text.…
- BSON formatter7
Working on the language server it's become clear that JSON is going to be a killer bottleneck, but that's what Microsoft decided to use. It's almost a deal breaker just…
- FPCMake and Makefile.fpc question3
Here's the first line of the Lazarus Makefile: ----------------------------------------- # # Don't edit, this file is generated by FPCMake Version 2.0.0 # default: all…
- Raspberry Pi3B - often EBusError: Bus error or misaligned data access1
With the 3.2.0-RC1 on a Raspberry PiB running raspbian, most of my software which ran very well when compiled with fpc 3.0.4 do stop with the error in title when or near…
- Code tools and constants in generics2
As to be expected with new feature code tools now fails with constants in generics. Should I make a bug report to fix this? Ryan Joseph
- Name collisions in scoped enums10
I've been using scoped enums and noticed that I'm getting collisions with reserved keywords. Shouldn't these be allowed in scoped enums since they are required to be…
- Code tools unrelated completions5
Code tools completions are returning functions that don't appear related to the current unit such as "fpc_Copy" from /usr/local/share/fpcsrc/rtl/inc/compproc.inc. Here's…
- FPC development guiding.3
Hi Free Pascal team. I'm a long term FPC user and ethusiast of Pascal language and it is my preferred language. In my working day I'm used to coding with C/C++ or even…
- Empty Set in constants in generics2
Should generics accept empty sets as constants? I think they should and this is a bug but I wanted to ask first. ======================== {$mode objfpc} program test;…
- Concat TCollection?3
I have many TCollection's that I need to concat together into one larger collection for streaming. Since it's just a list I thought I could add the elements together but…
- Vector code5
Can someone recommend a good book on writing (assembly) vector code ? Adriaan van Os
- TFPGMap retrieving values6
I've been starting to use the RTL so I'm not very familiar with it but I thought TFPGMap was supposed to be a hash table for fast lookup, so why does TFPSMap.Find using…
- Pascal Language Server131
I am new to Pascal programming and since I like using Emacs, I wanted to try to improve its support for editing Pascal code. I decided to implement an LSP server which…
- Question about compiling FPC trunk after revision 448495
For years I have been using the same script to compile FPC, in this script I use the next command: make -j 9 clean all install After the revision 44849 the use of the…
