fpc-pascal · 2016-01
- ARM CMSIS support13
looking at the embedded source code there has been done a lot of work. I'm interested in trying fpc on Cortex-M3 and M4, mostly from ST. While trying to get an overview…
- New feature: IfThen() intrinsic119
Hello together! I've finally come around to add a feature that many people have asked for throughout the years: an inline if that works like the if-statement in that it…
- Pascal Lexical Diagrams32
I've been working on writing Javascript to generate lexical language diagrams for the getlazarus.org learning center portal. With my script I'm able to render these…
- [ISSUE] Generic problem: function Iif<T> ... : Wrong number of parameters specified for call to "Iif$1"0
Issued as #29546 <http://bugs.freepascal.org/view.php?id=29546>. Thank you! Silvio Clécio
- How to test fpjson?6
First, sorry for the silly question! ^^' So, I want to send some improviments to the `jsonscanner` and `jsonparser` units based on the updated JSON RFC…
- Issues with fpc-build-3.0.010
I'm experimenting with building fpc from source in various combinations and a couple of issues have come up which could be bugs or just me not knowing which environment…
- GLExt crashing10
Functions like glBlendEquation from GLExt are crashing (access violation) compiling on Mac with ppc386. The functions didn’t get loaded I think for some reason. Is…
- RTL with debug info on win641
I am not able to build a fixes_3_0 RTL with debug info on win64 with a fixes_3_0 ppcx64.exe. How should it be done? Thanks, Martin
- SIGSEGV when using varargs calling8
Consider the following types: TPuts1 = procedure; cdecl varargs; TPuts2 = procedure(par: string); cdecl varargs; TPuts3 = procedure(const par: string); cdecl varargs;…
- Documentation example error8
I was always under the impression that the examples included in the FPC documentation should be compilable examples. Looking at the following example code included with…
- bitmask vs sets. Is there a performance difference?7
Is there a performance difference between using bitmask values and sets? For example: Option #1: ================================= const FLAG_A = 1; // 1 shl 0 FLAG_B =…
- CrossFPC2
CrossFPC recently released a new update and I decided to test it. Howerver it fails to install on either of my two machine. I tried subscribing the their email list…
- AVR Busy Wait implementation21
has anyone already written a busy wait procedure for AVR or any other embedded processors? I'm currently facing issues converting Arduino's calculation of time…
- Revision 32985: faSymLink = $00000400 platform;2
In revision 32985 faSymlink got a platform modifier. The same goes for for faHidden. However these constants are used cross-platform in FindFirst/FindNext. On *nix…
- constructor "guarantee" and other behavioural stuff5
I last used Pascal in school a long long time ago. Just discovered Free Pascal. I have the following: type TNonceBytes = array[1..8] of byte; TNonce = class private pn:…
- libevent for socket3
Could anyone help me with some samples of writing socket program with libevent, or is there any adapter/wrapper already exists for freepascal? Thanks! Xiangrong
- XML Registry Bug?0
I came across this trying to track down a bug in a linux program where two separate instances of TRegistry were being used to both read and write data to the registry.…
- location modifier7
I can't find the 'location' modifier in the docs. Is it missing? For example: function bsd_socket(Domain: LongInt location 'd0'; Type_: LongInt location 'd1'; Protocol:…
- [FEATURE REQUEST] New FGL type: TFPGMapObjectData3
The FGL unit has many very nice classes, but we should add a new type: TFPGMapObjectData. (or simply TFPGMapObject) This type is just a list that frees its itens on…
- Can I compile MASM code/file in FPC?4
Can I compile MASM code (or files) in FPC? If so, how to declare some MASM directives like .code, .data?, .const etc.?: === begin code === program fpcmasm; {$asmmode…
- FileAge() issue?5
I'm trying to get the datetime from a file, but it seems that the FileAge() function doesn't work properly. See only the second from the results below: FPC: 20/05/2014…
- Somebody raised another issue on the FPC Github mirror2
If somebody wants to follow up, feel free. https://github.com/graemeg/freepascal/commit/2924efbb06d376af73c271babe4fe3c11702f3a2#commitcomment-15491388 - Graeme - fpGUI…
- Writing floating points to steams17
Hi all. What is the best/preferred way to write floatingpoint to a steam? Since TStream doesn't have any native WriteFloat/Double and the likes, some conversion is…
- [PATCH] Adds the method `TFPGMap.TryGetValue()`0
Issued at #29397 [1]. Thank you! [1] http://bugs.freepascal.org/view.php?id=29397 Silvio Clécio
- Is the TFPGMap.KeyData()/TDictionary.TryGetValue() faster than TStringList.Values[]?8
I need two fast list features: Add(Key: string, Value: string); Get(Key: string, Value: string): string; So, I took a look at the `TFPGMap` (and `TDictionary` on Delphi)…
- Objects, open arrays and memory leaks0
Hello: I'm using Free Pascal Compiler version 3.0.0 [2015/11/16] for i386 I'm getting memory leaks (on winXP and Linux) . I have tracked to this. (Note: they are…
- Do I need to make fpc 3.0.0 twice?10
I downloaded the release tag of fpc 3.0.0 via svn and built it using the 2.6.4 seed compiler. It seems to work OK. But now I got to thinking: Should I make fpc 3.0.0…
- Problem with Socket Programming0
I have some problems with Socket programming under Free Pascal (Windows). Meanwhile I succeded in finding a working Internet Domain Client. But the corresponding server…
- Problem with varargs directive4
The problem seems more related to Delphi, but I want to understand why it compiles only in FPC. The declaration is just: === begin code === var FmtStr: function(const…
- building arm cross compiler on FreeBSD8
I'm stuck while trying to build a cross compiler for ARM on FreeBSD. The compiler does not know any arm target. FreeBSD is running on some arm platforms (e.g.…
- Constructor question2
Is this legal Pascal? uses classes,sysutils; type { TA } TA = class protected F1: Integer; F2: Integer; public constructor Create; virtual; end; { TB } TB = Class(TA)…
- Strange file0
Each time I use fp (text mode ide) under linux or win-xp (3.0 and 2.6.4), there appears a new emtpy file in the directory: dummy.$$$ . Apparently it's safe to remove it…
- try except end cannot handle Exception class name with "." Fatal: Syntax error, "DO" expected but "." found2
I am using FPC 2.6.4 TMyClass =class public type EMyException=class(Exception); procedure DoSomething; end; procedure SomeProc; var aObj : TMyClass; begin try aObj :=…
- JSON Web Token (JWT) implementation needed5
Is there anyone already implements https://tools.ietf.org/html/rfc7519? I find a Delphi implementation (https://github.com/paolo-rossi/delphi-jose-jwt), but it uses the…
- GUIDs under FreeBSD don't seem very random1
I use GUID's as my primary key values in databases. tiOPF uses the following FPC functions to do this CreateGUID(lGUID); Result := GUIDToString(lGUID); I just noticed…
- Synchronize(dummyproc) with Linux.50
This about audio and fpc and fpGUI and LCL and Linux. (working good with Windows) Have some trouble with threads synchronize() procedure. The main thread.execute is a…
- No official FPC 3.0 installer for Solaris9
As the subject line says. I just had a look on SourceForge, and the last Solaris/OpenSolaris/Illumos FPC release is 2.6.4.…
- what does fpc make target sourceinstall do?2
I have looked at a cook-book description on how to build fpc from sources on RaspBian Linux and there I found these steps (I have left out some other steps non-related…
- Default type of string literals0
Consider the following program: program stringtypeoverloadproblem; {$mode objfpc}{$H+} uses sysutils; var Foo: String; begin Foo := ConcatPaths(['foo', 'bar']); end.…
