fpc-pascal
Subscribe to this list Your subscription
Latest threads
- Shootout: k-nucleotide implementation (was: Which programming language is fastest?)2
Ok, I have looked at the example that was the slowest: 5 times slower than gcc. k-nucleitide:…
- Compiling Synapse... begginer questions2
A long time ago I got the Synapse. It was stored in \freepascal\lib\synapse\src\trunk and the units compiled in \units\i386-win32. Today I got the stable version, 39,…
- class abstract3
I have two questions regarding class Abstract: 1. From what version of FPC does it support ? 2. Can I inherit from a class and the new class that I declare can be set as…
- How to translate this union ?11
I'm trying to translate the following union<https://github.com/ik5/sofia-sip/blob/master/src/lib/sui.inc#L199>to Pascal, but I do not understand it, and so does h2pas.…
- nested macros in C headers8
I found this: http://pastebin.com/T4jkeE6F in a zip file called vfp.tar.bz4 somewhere on the web, it seems not maintained since ages but obviously it must have compiled…
- fpc graph4
Been trying to use the windows graph from 2.4 release svn, running on standard xp sp3 laptop, with 1024*768 resolution screen setting, 96dpi, intel mobile express 965…
- Generics feature status3
I see now that generics have improved a lot since latest release, we even have Delphi compatible syntax in Delphi mode. Recursive generic type is supported as well now…
- How to get the offset of a record10
In Turbopascal it was possible with offs() type rectype = record var1 : longint; var2 : longint; var3 : boolean; end; var o : longint; recvar : rectype; o := offs(…
- OLE & COM Support0
How is the COM support in FPC nowadays? I have a project coming up that I may use FPC for. Lee
- Initialize object variables3
Is there any way to initialize object variables, other than writing an init method? So something like: myobj = object myvar: word = $ffff; end; Regards, Darius
- run pascal programs as scripts43
I would like to execute small pascal programs like normal unix scripts. For example: #!/usr/bin/instantfpc begin writeln('shebang executed'); end. Has anyone already…
- Working with PUCS4Char and UCS4String0
I'm getting a pointer to wchar_t which is PUCS4Char on linux and osx. To convert an UCS4String to WideString there is UCS4StringToWideString. But how can I convert…
- dependency problem when installing x86_64 on centos 5.51
Hi I'm trying to install fpc 2.4.2 using yum on centos 5.5 : yum localinstall fpc-2.4.2-1.x86_64.rpm It fires an error : Missing dependency : libtinfo.so.5()(64bit) is…
- android JNI JString to String5
I have a strange problem, I pass data from the android String via JNI. pass data from FreePascal wideString successfully using the following code NewString: function…
- A few doubts about C to pascal header translations:3
I've come across some constructs that I'm not sure how to translate: A procedure where one of the arguments is declared as: size_t arg; also a macro where appears:…
- More doubts on C to pascal header translations:2
I saw that h2pas translated: typedef void(*callback)(int pos, void* userdata); to callback = procedure (pos:cint; var userdata:pointer);cdecl; shouldn't it be? callback…
- FPImage and GetDataLineStart62
Hi, I need to write a function that replaces TLazIntfImage by using fpImage, and I can't find an alternative to GetDataLineStart. How can I replace it?. Leonardo M. Ramé
- find return adress of a procedure/function4
How to find the return adress of the calling code of a procedure/function? Where in the stack is the information to the return adress? stack + - x? How to acess to the…
- delphi compatibility2
Just downloaded & tried to registry.pas - for accessing win registry. It uses SysUtils, WinTypes, WinProcs, Messages, Classes,ShellAPI My standard v242 fpc win…
- FileGetAttr fails on TrueCrypt partition5
g: is the XP system volume. x: is the truecrypted NTFS partition. No problem to set / get / show file attributes with Win32 GUI on both volumes. Same with attrib.exe on…
- SDL example3
Hi I am on fpc/packages/sdl/examples. # ppcrossarm demo03.pas -darm -XD -CX Free Pascal Compiler version 2.5.1 [2011/03/01] for arm Copyright (c) 1993-2010 by Florian…
- Message methods3
I'm trying to understand how message methods work in FPC. For this I created a simple app that shows a message. I also created a second (identical form) and I expected…
- Font reading library13
I just tought I'd ask: Do we have a Pascal library for reading font files? TTF and other formats. Obtain the information about the font and the glyphs. Felipe Monteiro…
- GDB Case insensitive Search0
I can't figure out how to make a case insensitive search in GDB. The GDB docs only say that you can do the following but don't give much else or explain regexp.…
- New to freepascal and how to translate my delphi program.5
I am new to free pascal, but have some experience with delphi. I wrote a program to control a milling machine (Elektor Profiler, see elektor.nl/ forum program Doit).…
- stripping HTML7
is there any existing FPC code (even external libraries with bindings) to strip HTML tags from files, including adequate removal of scripts, comments and other…
- Assembling (pipe) /Users/{standard input}:2540:suffix or operands invalid for `cmovns'1
building LCL with OPT="-Cr" causes the problem in anchoreditor.pas (Assembling (pipe) /Users/{standard input}:3839:suffix or operands invalid for `cmovns') . Used…
- Self pointer existence2
Hi When does the self pointer's value become valid? I need a reference to the object being created inside the object's own create method. The last statement in Create…
- Re; New to freepascal and how to translate my delphi program0
Thanks for the quick response. It was just the things I was looking for. Piet
- DIFF Pascal component0
I was wondering if anyone knows a good Pascal component for generating a diff in the standard format. Googling I found TDiff here: http://angusj.com/delphi/ Maybe there…
