Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal

fpc-pascal · 2016-01

  1. ARM CMSIS support

    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…

    Marc Santhoff, Bernd Mueller, Jeppe Johansen
    13
  2. New feature: IfThen() intrinsic

    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…

    Sven Barth, Alexandrov Alexandru, Anthony Walter
    119
  3. Pascal Lexical Diagrams

    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…

    Anthony Walter, Dmitry Boyarintsev, Ewald
    32
  4. [ISSUE] Generic problem: function Iif<T> ... : Wrong number of parameters specified for call to "Iif$1"

    Issued as #29546 <http://bugs.freepascal.org/view.php?id=29546>. Thank you! Silvio Clécio

    silvioprog
    0
  5. How to test fpjson?

    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…

    silvioprog, Graeme Geldenhuys, Michael Van Canneyt
    6
  6. Issues with fpc-build-3.0.0

    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…

    Tony Whyman, Jonas Maebe, Mark Morgan Lloyd
    10
  7. GLExt crashing

    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…

    Ryan Joseph, Michalis Kamburelis, Reimar Grabowski
    10
  8. RTL with debug info on win64

    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

    Martin Schreiber
    1
  9. SIGSEGV when using varargs calling

    Consider the following types: TPuts1 = procedure; cdecl varargs; TPuts2 = procedure(par: string); cdecl varargs; TPuts3 = procedure(const par: string); cdecl varargs;…

    silvioprog, Jonas Maebe, leledumbo
    8
  10. Documentation example error

    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…

    Graeme Geldenhuys, Jonas Maebe, Michael Van Canneyt
    8
  11. bitmask vs sets. Is there a performance difference?

    Is there a performance difference between using bitmask values and sets? For example: Option #1: ================================= const FLAG_A = 1; // 1 shl 0 FLAG_B =…

    Graeme Geldenhuys, Jonas Maebe, Nikolay Nikolov
    7
  12. CrossFPC

    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…

    Andreas, Michael Ring
    2
  13. AVR Busy Wait implementation

    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…

    Simon Ameis, Christo Crause, Florian Klaempfl
    21
  14. Revision 32985: faSymLink = $00000400 platform;

    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…

    Bart, Graeme Geldenhuys
    2
  15. constructor "guarantee" and other behavioural stuff

    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:…

    Pierce Ng, Mark Morgan Lloyd, Michael Van Canneyt
    5
  16. libevent for socket

    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

    Xiangrong Fang, Bo Berglund, Michael Van Canneyt
    3
  17. XML Registry Bug?

    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.…

    Tony Whyman
    0
  18. location modifier

    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:…

    Mattias Gaertner, Karoly Balogh (Charlie/SGR, Michael Van Canneyt
    7
  19. [FEATURE REQUEST] New FGL type: TFPGMapObjectData

    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…

    silvioprog, Maciej Izak
    3
  20. Can I compile MASM code/file in FPC?

    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…

    silvioprog, Sven Barth
    4
  21. FileAge() issue?

    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…

    silvioprog, Michael Van Canneyt, Sven Barth
    5
  22. Somebody raised another issue on the FPC Github mirror

    If somebody wants to follow up, feel free. https://github.com/graemeg/freepascal/commit/2924efbb06d376af73c271babe4fe3c11702f3a2#commitcomment-15491388 - Graeme - fpGUI…

    Graeme Geldenhuys, Bart, Sven Barth
    2
  23. Writing floating points to steams

    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…

    Torsten Bonde Christiansen, Dennis, Graeme Geldenhuys
    17
  24. [PATCH] Adds the method `TFPGMap.TryGetValue()`

    Issued at #29397 [1]. Thank you! [1] http://bugs.freepascal.org/view.php?id=29397 Silvio Clécio

    silvioprog
    0
  25. Is the TFPGMap.KeyData()/TDictionary.TryGetValue() faster than TStringList.Values[]?

    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)…

    silvioprog, Maciej Izak, Marco van de Voort
    8
  26. Objects, open arrays and memory leaks

    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…

    Santiago A.
    0
  27. Do I need to make fpc 3.0.0 twice?

    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…

    Bo Berglund, Jonas Maebe, leledumbo
    10
  28. Problem with Socket Programming

    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…

    Helmut weber
    0
  29. Problem with varargs directive

    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…

    silvioprog, Anthony Walter
    4
  30. building arm cross compiler on FreeBSD

    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.…

    Marc Santhoff, Jonas Maebe, Michael Ring
    8
  31. Constructor question

    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)…

    Bart, Mattias Gaertner
    2
  32. Strange file

    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…

    Ched
    0
  33. try except end cannot handle Exception class name with "." Fatal: Syntax error, "DO" expected but "." found

    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 :=…

    Dennis, Graeme Geldenhuys, Sven Barth
    2
  34. JSON Web Token (JWT) implementation needed

    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…

    leledumbo, Michael Van Canneyt
    5
  35. GUIDs under FreeBSD don't seem very random

    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…

    Graeme Geldenhuys
    1
  36. Synchronize(dummyproc) with Linux.

    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…

    Fred van Stappen, fredvs, Graeme Geldenhuys
    50
  37. No official FPC 3.0 installer for Solaris

    As the subject line says. I just had a look on SourceForge, and the last Solaris/OpenSolaris/Illumos FPC release is 2.6.4.…

    Graeme Geldenhuys, Marco van de Voort, Mark Morgan Lloyd
    9
  38. what does fpc make target sourceinstall do?

    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…

    Bo Berglund, Anthony Walter
    2
  39. Default type of string literals

    Consider the following program: program stringtypeoverloadproblem; {$mode objfpc}{$H+} uses sysutils; var Foo: String; begin Foo := ConcatPaths(['foo', 'bar']); end.…

    Bernd
    0