fpc-pascal · 2016-05
- Using paszlib from fpc 3.0 with fpc and delphi 2007?10
I have a project that is targeting both Linux (on Raspberry Pi) and Windows. It started in Delphi 2007 and is a command line utility. It needs to use some zip…
- Questions regarding FPImage's TFPMemoryImage.FData variable8
The internal FData field variable of TFPMemoryImage is of type FPFItegerArray and is defined as follows: TFPIntegerArray = array [0..(maxint-1) div sizeof(integer)-1] of…
- Best way / tool to create resource files (*.res) for fpc projects1
For Lazarus projects, the IDE comes with an integrated resource editor that uses fcl-res to create the resource file In my case, i want to create a standalone resource…
- How to declare function with untyped array parameter7
is there way how to declare function, which will accept as parameter any array type ? (this parameter I need forward to System.Length() only ) Just like Length()…
- Assigning Interface method to event handler9
Can I safely assign a method from an Interface reference to an event handler. The code below works, but I'm not sure if it is safe to do so, and allowed.…
- CustApp.pp missing semi-colons1
RE: http://mantis.freepascal.org/view.php?id=30114 I was told to discuss this here. Not really sure what to discuss. The code style of custapp.pp uses semi-colons all…
- Using Free Pascal Scanner/Parser in Other Projects1
Currently, is feasible/possible to use the free pascal's scanner/parser portions in other projects that needs to perform pascal lexical analysis? (e.g syntax coloring…
- Inline methods20
is it possible inline also methods of objects (not regular procedures) ? I have very simple class method, which call I need inline. (looking at assembler code it is not…
- Parser Generator9
Hi. I am currently looking into integrating a custom language parser into my program and have been searching the web for parser generators that can create Pascal code…
- Maximum of memory which can be used by single program in 32 bit Windows22
another question: is there any limit in FPC, which causes that only cca 1GB of memory can be used by FPC ? I have program, which reads big XML file (cca 500MB) using…
- PChars and AnsiString Code Pages3
I've been looking at some old code which still seems to work in fpc 3.0.0 - but is it safe? The code looks like: {$mode delphi} var Buf: PChar; s: string; begin Buf :=…
- Does FPC 2.6.4 or later have an Ascii85 (Base85) implementation1
Ascii85 - also known as Base85. It works similar to Base64, but where Base64 increases the original data by 33% (four ASCII characters to represent 3 bytes of data),…
- JSON register new data types for custom output/input4
Is it possible (or on some wish list) to register new data types with fpjson so it can understand and generate custom output, and understand reading back that custom…
- pretty print json output2
Does fpjson support an option to “pretty print” (neatly indent) generated JSON output? Graeme
- What to use when porting WaitForMultipleObjects to Linux?4
When porting a Delphi console program on Windows to FreePascal on Linux, what can one do with API calls like WaitForMultipleObjects, which is used to synchronize…
- fpc/lazarus and kinect sample5
Hi! I got an xbox 360 kinect, which I'd like to use for controlling a drone (Crazyflie 2). https://www.youtube.com/watch?v=UzFwg2Fpv4E The drone software is all in a…
- Smart Pointers34
I don't know if here is the correct place to make this question. I read that mails about implementation of management operators and smart pointers. 1 - These features…
- passing "array of const" into cdecl procvar4
I'm having a little trouble figuring out how to do the following: I have a procedural type defined as such: =========================== type Tjson_pack = function( fmt :…
- TJSONboolean and locale settings4
Is TJSONboolean, and it’s internal BoolToStr(AValue, True) and StrToBool() calls, affected by locale settings? For example: My locale is en_GB and I store a Boolean…
- FCL licensing choice2
Is it a requirement that all FCL code be LGPL licensed? I’ve randomly picked about 8 or so directories and all the code I reviewed was LGPL 2.1 licensed. Can code be…
- code example where AnsiString used in FCL (SqlDB) causes data loss30
Here is an example [proof if you will] of the problem. I wrote a small test program that reads data from a Firebird database where the database and field charset is set…
- Summary of Unicode Strings Debate3
A summary of what i learned from the Unicode String debate: 1 - FPC 3 introduces code page aware strings 2 - FPC 3 updates the RTL to provide a better support for code…
- Warning not to use the "String" type with FPC 3.x58
I really think the FPC team should make it blatantly clear that the usage of the aliased "String" type should not be used any more with FPC 3.x. It turn I think major…
- RTL and Unicode Strings12
I am very confused about the way the system codepage are determined. platform dependent manner. Suppose that my app needs to read a file encoded with UTF-8. Suppose that…
- Invoking methods through rtti7
Is there any way to invoke a method passing parameters through rtti? Best regards
- String theory4
While my first thought over the "String Type" or "End of World" threads was this is another "how many angels to the pinhead" type discussion. However, having worked…
- {$H+} meaning with compiler {$mode DELPHIUNICODE}3
This weekend I tried to unify tiOPF's Delphi and FPC code. Year back tiOPF branched to support D2009 only and do loads of code clean-up. FPC couldn't follow that branch…
- TMaskUtils.ValidateInput function: how is it supposed to behave?12
I cannot find any documentation about TMaskUtils.ValidateInput function (unit MaskUtils). AFAICS Delphi does not have such a class? (ref:…
- Updating wiki translations in español (es)0
Please send me any correction or error detected es: Cualquier error que encuentren envienme un mail y sera corregido cuanto antes. http://wiki.freepascal.org/Function/es…
- Any unit tests for the FastHTMLParser unit in FCL - chm package?0
As the subject line says, are there any existing unit tests for the FastHTMLParser unit found in the “chm” package of the FCL? My initial search in FCL suggests that…
- TThread and WaitFor1
is this safe: FThread.Terminate; // what if here is switched FThread to execution and will immediately end his Execute procedure FThread.WaitFor; // what happens if…
- test - ignore0
test - ignore
- hello world5
Folks: Apologies for the beginner nature of this query... why won't this compile? It is the only open file and is saved, looks like a main program to me. program Hello;…
- FPC Text IDE and Alt+F3 shortcut not working0
Under FreeBSD & Linux using Mate Terminal (and xterm)... If I press the Alt+F3 shortcut which should close the current active window, it opens the Options Menu instead.…
- getopts unit vs CustApp parameter handling5
Is the getopts unit deprecated or not recommended for usage? The reason I ask is because I see CustApp has similar functionality to the getopts unit, but the custapp has…
- FCL: moving FastHTMLParser3
Is there any chance of moving “packages/chm/src/fasthtmlparser.pas” to a more publicly accessible location inside the FCL? eg: fcl-base? That way other FCL packages…
- intel vs att asm (fstp instruction) (osx/clang features)3
I'm dealing with the following code (from ZenGL library), targeting OSX --------------- {$mode delphi} procedure m_SinCos( Angle : Single; out s, c : Single ); assembler;
- Property Attributes2
http://wiki.freepascal.org/Property_attributes. <http://wiki.freepascal.org/Property_attributes> 1 - Is there any plans to merge the branch which contains the…
