fpc-pascal · 2019-01
- Resource compilation47
the $R directive accepts resource scripts (RC) and compiles the RES file from it on demand. However, that only happens if the RES file does not exist - if it does, the…
- FPC code to migrate Outlook PST file to MBOX format?6
I need to switch away from using Outlook 2003 to something sensible like Thunderbird. But when I do I need to keep my mail archive, which is stored in multiple very big…
- trying to use C code in .pas on WIN3219
I've done research, but am just missing something. my .pas code links just fine, but doesn't RUN. ( first writeln never appears ) If I remove the external call to C…
- h2pas fails on c++ header file5
I have a c++ module which just performs calculations, and does not use c++ objects. Just c++ syntax. The header file which is used from a c++ main, is the following:…
- Dos unit for Windows2
I have some problem with a file archiver which uses the Dos unit under Windows, I suspect the flaw resides in GetFAttr function. Looking in the source for Win RTL…
- GDeque unit crash, FPC trunk2
I see stange crash in gdeque unit if I use unit from FPC trunk https://github.com/graemeg/freepascal/blob/master/packages/fcl-stl/src/gdeque.pp crash in…
- AVR GetMem/AllocMem4
AFAIU dynamic allocation memory does not exist for AVR platform ( tried to use AllocMem, GetMem and the mcu restart it's self. ) . Is there any other way to…
- Re: fpc-pascal Digest, Vol 175, Issue 310
I am not sure that I can help, but this is an interesting topic and I am curious if you find a solution. I can only assume that maybe you did not link to gcc and c…
- Conversion of buffer of UnicodeChars to AnsiString0
is there smarter way how to convert buffer of UnicodeChars to AnsiString taking into account codepage conversion as: as := String(UnicodeCharLenToString(buffer, buflen…
- type helper default property2
For example: type THelper = type helper for string function GetItems(Index: word): word; property Items[Index: word]: word read GetItems; default; end; Delphi forbids…
- type helper constructor1
A type helper for a string can add a constructor. But how it can be used differs between FPC and Delphi. For example: {$modeswitch typehelpers} type THelper = type…
- inlining functions depending on implementation only functions17
after updating from fpc 3.1 to fpc 3.3, I am getting a lot of "function was not inlined" warnings, e.g. when an inline function depends on a function not declared in the…
- type helpers5
A type helper can change Self. I wondered how FPC 3.3.1 handles properties and got some unexpected results. Is this by design, a bug, or not-yet-implemented? {$mode…
- SetLength warnings - request22
even if there's closed issue https://bugs.freepascal.org/view.php?id=34169 I would like to ask if it can be reconsidered. The subject is that SetLength now gives…
- Multi-scope helpers draft4
I’d like to propose this mode switch ($modeswitch multiscopehelpers) to allow multiple helpers per scope. I have no idea why Delphi thinks only one helper should be…
- Constants in generics95
I implemented a first draft of constants (integers) in generics. My reason was specifically that I wanted a way to add methods to static arrays and generic records is…
- when will the size of an enumerated type change?1
Type TComparisonMode = (cmThisOnly, cmThisAndThat, cmThisOrThat); TMyClass = class public var ComparisonMode : TComparisonMode; end; I discovered that, the…
- Get "disk" ID3
I need some function to get a unique ID for a disk. I need this to identify if my program has accessed this disk previously. On Windows I can retreive the…
- Small typo in User_Changes_Trunk ?2
reading http://wiki.freepascal.org/User_Changes_Trunk#Modeswitch_TypeHelpers_in_Delphi_modes_enables_type_helper-syntax there is: Remedy: The only problems arise if one…
- Interface bug or some new feature7
Hi all I've been using 3.1.1 compiler for a long time and now I am trying to upgrade to 3.3.1 from trunk. However, I am stuck with some new behavior when using classes +…
- "crtbegin.o" not found6
What is that? I'm seeing that compiler warning in my fpGUI projects too? Since I upgraded to 3.0.4 using Linux 64-bit. It was not there in FPC 2.6.4. Below is a sample…
- Fixes 3.2: make all fails3
OpenSuse Tumbleweed 64-bit (in a VirtualBox VM under Win10) Installed fpc 3.0.4 form rpm. (b.t.w. when clicking on the link for…
