fpc-pascal
Subscribe to this list Your subscription
Latest threads
- Changes to fpWeb...6
I have committed a serious change to the way fpweb handles requests. Especially routing of requests was changed. The old Delphi style routing worked with Datamodules…
- Does the system unit allow file locking/sharing?2
The oldschool way of opening files using the system unit (no sysutils) has the filemode variable.. system.FileMode := fmOpenRead; ... Assign(... Rewrite(... Can this be…
- PascalScript broken by FPC 3.0 ?6
The pascalscripts that worked fine with lazarus 1.4 and fpc 2.64 are crashing when I try to run them in apps compiled with laz 1.6.2 or trunk. I get a SIGSEG attempting…
- How to tell if file is locked, i.e. FileOpen in sysutils0
The fileopen function returns -1 on error, but there is no way to tell if the error is because of a lock, or another issue opening the file? I'm interested in finding…
- Free Vision etc. form editor2
I've just come across http://forum.lazarus.freepascal.org/index.php?topic=18998.0 which was asking about a dialog(ue) editor for Turbo/Free Vision. The links it cites…
- alignment of types ( __alignof__ in fpc)0
Porting some C-headers. Ran, into a declaration: #define _K_SS_ALIGNSIZE (__alignof__ (struct sockaddr *)) _alignof_ seems to be a compiler attribute…
- Dynamic arrays in LLDB0
I am trying to debug an FPC program that uses dynamic arrays. (Don't them all?) It seems to me as if LLDB can not handle them. I get this error: A1 is a dynamic array of…
- Re: bitwise operations using AND, OR, XOR, NOT0
In the meantime I read some articles about the history of FPC and TP and Delphi and learned that these extensions had been made very early in this history. While I…
- javapp0
In figuring out Android programming with FPC I've read about the "javapp" tool. However when I try to do anything with it spends some time doing nothing and then outputs…
- FPC 3.0.0 seed compiler for Rasperry Pi ARM?21
I have a script for building FPC and Lazarus from scratch on Raspberry Pi. This script starts by downloading the seed compiler from this location:…
- JSON stream load/save recursive structure0
Can fpjson handle load AND save of the following structure from/to json: PTreeStructure = ^TTreeStructure; TTreeStructure = class name: string; value: Integer; items:…
- TProcess failed running Swift compiler2
I'm writing a simple editor for Swift language. I use TProcess to run the Swift REPL. Unfortunately, TProcess failed to execute the Swift REPL for no obvious reasons.…
- C# translatation14
I’m going to attempt to translate a perlin noise function (from https://gist.github.com/Flafla2/f0260a861be0ebdeef76) but there are a few things that stopped me from…
- Untyped var params21
I’ve seen functions that use the untyped params like: function GetSomething (var something): boolean; This seems like something useful I would like to use but how can…
- FPC clean room project30
There's someone accusing that Free Pascal (and some parts of Lazarus) is just a reverse engineering of Delphi. Even he said some codes of FPC/Laz are taken from Delphi…
- Repeat result in random1
Here is a short program to print 10 random numbers: program testrandom; var i: Integer; begin Randomize; for i := 1 to 10 do WriteLn(Random); end. If I compile and run…
- questions on fpimage2
firstly a happy new year to you all and keep on rocking! While reading the fpimage unit code I found some pieces I don't understand and could not clear up reading the…
- How to translate C macro1
Could someone suggest how to translate the following code to pascal? #define prev(X) ( *( (void **) ( ((void *) (X)) - 32 ) ) ) ..... prev(ptr) = prev(last); I tried…
- Readln a password14
I wonder what the recommended way is to readln a password from console, as a standard Readln echoes the password. 1. SetConsoleMode seems to be Windows-specific 2. On…
- Question on type helpers10
Why is it that type helpers must be declared in the Interface section of a unit and cannot be private in Implementation section? Consider this (useless) example: unit…
- FastHtmlParser does not fire OnFoundText on e.g. empty table cell6
If you parse HTML using FastHtmlParser in order to extract a HTML table content, then, if a table contains an empty cell (<td></td>), the OnFoundText event is not fired.…
- How to split file of whitespace separated numbers?24
Is there a quick way to split a string of whitespace separated values into the separate members? I have to create a function to process a number of big data files where…
- Linux installation, where to put fpc?6
On a Linux distro like for example Raspbian one could place the fpc compiler below /usr/xxx or in ~/fpc/xxx As far as I can see using /usr makes the installation need…
- FPC 3.0.2-rc1 CHM docs uploaded0
I uploaded CHM docs to FPC ftp site based on the current state (for FPC 3.0.2-rc1) On my private site I uploaded the same docs, but with the (very bulky) lazarus lcl.chm…
- FPC 3.0.2rc1 available0
Finally, as a Christmas present, we have placed the first release candidate of the Free Pascal Compiler version 3.0.2 on our ftp servers. You can help improve the…
- CoAP Implementation0
does anyone know if an implementation of RFC 7252 Constrained Application Protocol a.k.a CoAP exists for object pascal ? I searched but didn't find any . Dimitrios Chr.…
- Using the LCL without Lazarus21
Most of the viewers of this message are probably already aware that I am totally blind and must rely on screen-reading software to put to voice that which appears on the…
- minimal database example1
I have a remote server with Ubuntu 14.04.1 LTS. I access the server via terminal console. Free Pascal Compiler version 2.6.2-8 [2014/01/22] for x86_64 is installed.…
- TFileStream.WriteBuffer() and RAM used ?16
Hello. In a audio library, it uses a buffer to record audio. There is a main loop that store the audio-data given by the audio-input device into the buffer. For this…
- 3.0.2-rc12
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…
