Re: [fpc-pascal] Error building FPC 3.0.2 from svn sources on RPi3

2017-05-29 Thread leledumbo via fpc-pascal
iSP Return compiler host processor -iTO Return target OS -iTP Return target processor -iVReturn short compiler version ... -- View this message in context: http://free-pascal-general.1045716.n5.nabble.com/Error-building-FPC-3-0-2-from-svn

[fpc-pascal] Using other fpc installation

2017-08-16 Thread kapibara via fpc-pascal
in:/home/roger/fpc/fpc_svn/compiler:/usr/local/bin:/usr/bin:/bin Despite the path, if I run "which fpc" from commandline I get "usr/bin/fpc" anyway. How is that possible when that fpc is not in the path? ___________ fpc-pascal maillist -

Re: [fpc-pascal] Using other fpc installation

2017-08-16 Thread kapibara via fpc-pascal
:/usr/bin:/bin Despite the path, if I run "which fpc" from commandline I get "usr/bin/fpc" anyway. How is that possible when that fpc is not in the path? ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.fr

Re: [fpc-pascal] Using other fpc installation

2017-08-16 Thread kapibara via fpc-pascal
.pas Btw, why have fpc and also ppcx64? Does fpc call ppcx64? On 08/16/2017 09:45 PM, Marco van de Voort wrote: In our previous episode, kapibara via fpc-pascal said: I want to use the fp editor to run the test, but it seems as the "systemic" 2.6.4 is being used for compiling instea

Re: [fpc-pascal] Using other fpc installation

2017-08-16 Thread kapibara via fpc-pascal
You're right, now I fixed that and "which fpc" reports the SVN version! On 08/16/2017 10:15 PM, Tomas Hajny wrote: On Wed, August 16, 2017 21:15, kapibara via fpc-pascal wrote: I meant to say that system fpc is put AFTER the SVN fpc in the path. Due to the missing slash at t

Re: [fpc-pascal] Using other fpc installation

2017-08-16 Thread kapibara via fpc-pascal
The old SVN version is now in play, so far so good! But then "Can't find unit system" happened: roger@bikupan:~/fpc/fptest_working$ fpc fptest.pas Free Pascal Compiler version 3.1.1 [2017/08/16] for x86_64 Copyright (c) 1993-2015 by Florian Klaempfl and others Target OS: L

Re: [fpc-pascal] Using other fpc installation

2017-08-16 Thread kapibara via fpc-pascal
To be sure fpc.cfg is found I started the compilation from fpc's bin directory where the fpc.cfg is located. roger@bikupan:~/fpc/fpc_svn/ bin$ ./fpc /home/roger/fpc/fptest_working/fptest.pas Free Pascal Compiler version 3.1.1 [2017/08/16] for x86_64 Copyright (c) 1993-2015 by Florian Kla

Re: [fpc-pascal] Using other fpc installation

2017-08-16 Thread kapibara via fpc-pascal
-pascal wrote: The old SVN version is now in play, so far so good! But then "Can't find unit system" happened: You need RTL (and other required units, e.g. from packages) compiled with that compiler version and provide path to it either using fpc.cfg, or -Fu command line parameter(s)

Re: [fpc-pascal] Pascal support in the Kattis educational site

2017-08-17 Thread kapibara via fpc-pascal
The results may be sorted also by language name and so all C++ results comes in before Pascal even if runtime is the same. Your program was as fast as No1 but anyway not visible among top ten. This outrageous! ;-) On 08/17/2017 10:21 AM, Ingemar Ragnemalm wrote: A bit of news which I think

Re: [fpc-pascal] fpReport released

2017-08-21 Thread leledumbo via fpc-pascal
y old statically designed reports :) -- View this message in context: http://free-pascal-general.1045716.n5.nabble.com/fpReport-released-tp5729564p5729578.html Sent from the Free Pascal - General mailing list archive at Nabble.com. ___ fpc-pascal maillis

Re: [fpc-pascal] Container class for key-value pairs

2017-09-11 Thread leledumbo via fpc-pascal
the implementation is? -- Sent from: http://free-pascal-general.1045716.n5.nabble.com/ ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] How to call C++ function with Vector

2017-09-26 Thread leledumbo via fpc-pascal
> I am stuck at the keyword vector. > > How is it translated into free pascal? It's hard, you must create additional wrapper that exposes simpler type (pointer or array of pchar) OR make wrapper for the vector methods and simply declare it as an opaque pointer. std::vector is temp

Re: [fpc-pascal] How to call C++ function with Vector

2017-09-26 Thread leledumbo via fpc-pascal
> Would it be possible to do this via a Lua shim? How is it even related with that? -- Sent from: http://free-pascal-general.1045716.n5.nabble.com/ ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-

Re: [fpc-pascal] How to call C++ function with Vector

2017-09-26 Thread leledumbo via fpc-pascal
> I thought FPC had the ability to execute a fragment of Lua, and Lua I believe can call C++ directly. No, Lua can only call C, just like FPC. You do know the problem of C++ interfacing, don't you? -- Sent from: http://free-pascal-general.1045716.n5.na

Re: [fpc-pascal] compiler option for $J directive

2017-10-08 Thread leledumbo via fpc-pascal
> There is my old feature request about it > https://bugs.freepascal.org/view.php?id=30344 :) You can monitor it. No one seems to care to implement it, so if you badly need it: sj.patch <http://free-pascal-general.1045716.n5.nabble.com/file/t111899/sj.patch> Apply in compil

Re: [fpc-pascal] Google Drive API

2017-10-13 Thread leledumbo via fpc-pascal
Marcos Douglas B. Santos wrote > I didn't found... In this path \packages\googleapi\examples only > exists \generator directory. :( > > Trunk, rev 37453. Try this, it wasn't running well due to RTTI changes back then, but probably works now: http://free-pascal-general

Re: [fpc-pascal] JavaScript versions of pascal RTL functions (FormatFloat, DateToStr etc)

2017-10-15 Thread leledumbo via fpc-pascal
> The component developer is doing fantastic work with the visual components, and it starts to look really good. visual? how and/or what does it output? will be interesting if ExtPascal dream can be revived somewhat. -- Sent from: http://free-pascal-general.1045716.n5.nabble.

Re: [fpc-pascal] Is there any pascal interface to TensorFlow or other neural network tools?

2017-10-28 Thread leledumbo via fpc-pascal
> or even neural network libraries written in Pascal? Try contacting schuler in Lazarus forum. -- Sent from: http://free-pascal-general.1045716.n5.nabble.com/ ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.

Re: [fpc-pascal] Compiler directive to compile to 64 bits

2017-11-02 Thread leledumbo via fpc-pascal
> Hi, a newbie question but the docs aren't clear on how to say that I want to use the 64-bit compiler, not the i386 fpc -Px86_64 -Twin64 -- Sent from: http://free-pascal-general.1045716.n5.nabble.com/ ___ fpc-pascal maillist - fp

Re: [fpc-pascal] Object-oriented file (path) handling library

2017-11-09 Thread leledumbo via fpc-pascal
sic ones in System unit, though. -- Sent from: http://free-pascal-general.1045716.n5.nabble.com/ ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] installing cross fpc in parallel to systems fpc

2017-11-09 Thread leledumbo via fpc-pascal
-- Sent from: http://free-pascal-general.1045716.n5.nabble.com/ _______ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

[fpc-pascal] Is there a way to execute code after 'initialization' and before 'main', i. e. AddExitProc complement?

2017-11-28 Thread Роман via fpc-pascal
AndInitialize before 'main' without additional user actions? ___________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Use OpenDocument (.odt) files as templates

2017-12-02 Thread leledumbo via fpc-pascal
> Does someone knows a component to use OpenDocument (.odt) files as templates to generate a .odt output file given some data? FPVectorial seems to support it: http://wiki.freepascal.org/fpvectorial_-_Text_Document_Support -- Sent from: http://free-pascal-general.1045716.n5.nabble.

Re: [fpc-pascal] Why win64 program are considerably bigger in exe size than win 32?

2017-12-22 Thread leledumbo via fpc-pascal
> Why? At least pointer size takes double space, multiply it with every instances 1.5x bigger is not impossible. -- Sent from: http://free-pascal-general.1045716.n5.nabble.com/ ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org h

Re: [fpc-pascal] Modern Compiler Construction using Pascal

2018-01-04 Thread leledumbo via fpc-pascal
27;t break anything lately): https://code.google.com/archive/p/lysee/ -- Sent from: http://free-pascal-general.1045716.n5.nabble.com/ ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Get user ID for name on Linux

2018-01-04 Thread leledumbo via fpc-pascal
> Is there a complete list of packages available somewhere? $ svn co https://svn.freepascal.org/svn/fpc/trunk fpc $ cd fpc/packages $ ls tadaaa... -- Sent from: http://free-pascal-general.1045716.n5.nabble.com/ ___ fpc-pascal maillist -

Re: [fpc-pascal] CGI/FastCGI and WS request with a max time response

2018-01-04 Thread leledumbo via fpc-pascal
ssing or your server dies (500). -- Sent from: http://free-pascal-general.1045716.n5.nabble.com/ _______ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

[fpc-pascal] PAS2JS: operations with array of record

2018-01-10 Thread warleyalex via fpc-pascal
mapping elements of the array according to a map function. The map function takes a single parameter of the type of the array items and returns the mapped value.   · Peek() : returns the last item.   · Pop() : returns the last item and removes it from the array.   · Remove([startI

Re: [fpc-pascal] PAS2JS: operations with array of record

2018-01-11 Thread warleyalex via fpc-pascal
(recC); TJSArray(recA.fields).push(recB);end; Take a look at this array of record example, in Smart Pascal world, as long as the datatypes match (e.g. field params is a array of record), we have the pseudo methods functionality "built-in" for all arrays, for instance. Pas2JS could hav

[fpc-pascal] PAS2JS: JSON suggestion

2018-01-11 Thread warleyalex via fpc-pascal
rnal name 'JSON';implementationend. and use like this: JSON.stringify( JsonObject ); -- Sent from: http://free-pascal-general.1045716.n5.nabble.com/_______ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Trying to compile ZeosDBO cli program

2018-02-15 Thread leledumbo via fpc-pascal
for your fpc options, done. -- Sent from: http://free-pascal-general.1045716.n5.nabble.com/ ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Python interaction... how?

2018-02-16 Thread leledumbo via fpc-pascal
> Does anyone know of a minimal example or pseudo code or just an explanation? Python actually provides a Python.h that you can convert to a Pascal unit. But inside, it includes a bunch of other header files and conversion might be a tedious task. If you made it, though, simply c

Re: [fpc-pascal] [FCL-WEB] Multiple Modules - On Session

2018-03-21 Thread leledumbo via fpc-pascal
of these: * fphttp.SessionFactory.SessionCookie * fphttp.SessionFactory.SessionCookiePath optionally, to easily check the created session files, you might want to also set: * (fphttp.SessionFactory as iniwebsession.TIniSessionFactory).SessionDir -- Sent from: http://free-pascal-general.1045716.n5.na

[fpc-pascal] Inline scoped enums

2018-04-06 Thread Роман via fpc-pascal
How can this code {$scopedenums on} type Bar = set of (A, B, C); refer to A, B, C? ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Inline scoped enums

2018-04-07 Thread Роман via fpc-pascal
der could they make such code to not compile at all... _______ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] fpWeb: How can I use heaptrc in standalone mode?

2018-05-06 Thread leledumbo via fpc-pascal
> Create a call that calls Application.Terminate. I just call DumpHeap(false); instead -- Sent from: http://free-pascal-general.1045716.n5.nabble.com/ ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-

Re: [fpc-pascal] detecting recursive loops

2018-05-06 Thread leledumbo via fpc-pascal
ust make it global) and on start of each procedure, you check whether the current procedure is in the map already or not. If yes, then the current call stack has formed a recursion. -- Sent from: http://free-pascal-general.1045716.n5.nabble.com/ ___

Re: [fpc-pascal] FPC on Android tablets: ARM, x86_64

2018-05-11 Thread leledumbo via fpc-pascal
: http://free-pascal-general.1045716.n5.nabble.com/ _______ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

[fpc-pascal] השב: Re: Free e-book: Free Pascal from Square One

2018-05-28 Thread ezrashumla via fpc-pascal
נשלח מסמארטפון ה-Samsung Galaxy שלי. הודעה מקורית מאת: Joost van der Sluis תאריך:27/05/2018 20:07 (GMT+02:00) אל: fpc-pascal@lists.freepascal.org נושא: Re: [fpc-pascal] Free e-book: Free Pascal from Square One Op 27-05-18 om 18:18 schreef Jonas Maebe: > See h

Re: [fpc-pascal] Default record fields

2018-06-23 Thread leledumbo via fpc-pascal
to initialize it right there anyway, making the default value useless. Certainly don't imagine you're the writer of unit A who knows that T has some default values. Other languages POV are mostly simply ease of typing, they don't think the consequences this far. -- Sent from:

Re: [fpc-pascal] Lazarus and Linked Lists

2018-06-26 Thread leledumbo via fpc-pascal
> Is there a basic linked List object for Lazarus? https://svn.freepascal.org/svn/fpc/tags/release_3_0_4/packages/fcl-stl/src/glinkedlist.pp -- Sent from: http://free-pascal-general.1045716.n5.nabble.com/ ___ fpc-pascal maillist - fpc-pas

Re: [fpc-pascal] List of chars for case

2018-07-02 Thread leledumbo via fpc-pascal
rom: http://free-pascal-general.1045716.n5.nabble.com/ ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] FPC_PCHAR_LENGTH dog slow

2018-07-03 Thread leledumbo via fpc-pascal
> i think i'm still waiting for the string "length byte" becoming a "length word" or possibly a "length long" so the speed of pascal strings can be reacquired -=B-) Ansi and any other dynamic strings already have length longint that allows 2GB st

Re: [fpc-pascal] FPC for linking only

2018-08-20 Thread leledumbo via fpc-pascal
> Is it possible to use FPC for linking only? I've asked this in the past with straight "no" answer. -- Sent from: http://free-pascal-general.1045716.n5.nabble.com/ _______ fpc-pascal maillist - fpc-pascal@lists.f

Re: [fpc-pascal] Announcement GLPT

2018-09-24 Thread leledumbo via fpc-pascal
> https://github.com/daar/GLPT This is more GLFW rather than GLUT. Good, I prefer it this way as I have much greater control with regards to the event handling. -- Sent from: http://free-pascal-general.1045716.n5.nabble.com/ ___ fpc-pascal maill

Re: [fpc-pascal] Uniform initialization?

2018-11-11 Thread leledumbo via fpc-pascal
this would be used, though. Despite being idiomatic in many languages, it doesn't really save much typing that traditional way (if that's the main purpose). -- Sent from: http://free-pascal-general.1045716.n5.nabble.com/ _______ fpc-pasca

Re: [fpc-pascal] Running tests with FPC units only

2018-11-11 Thread leledumbo via fpc-pascal
> acording example I found in FPC examples directory, Check the one here instead: $(fpcsrcdir)/packages/fcl-fpcunit/src/demo/consolerunner/testrunner.pp It depends only on FPC units. I guess you're looking at examples from Lazarus directory instead of FPC. -- Sent from: http://fre

[fpc-pascal] trying to use C code in .pas on WIN32

2019-01-23 Thread conlin664 via fpc-pascal
e name ) Maybe I need different options on the C compile.. -- Sent from: http://free-pascal-general.1045716.n5.nabble.com/ _______ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] trying to use C code in .pas on WIN32

2019-01-28 Thread conlin664 via fpc-pascal
't try and call the C routine the number of unresolved objects is only 213 compiler switches: -TWin32 -va -Mfpc -vw -Sg -Ci -O1 -Cp386 -OpPENTIUM3 -Ratt -gl -p- -b- I had -XS in there, but it doesn't seem to change anything. So I'm just looking to static link external C code to

Re: [fpc-pascal] trying to use C code in .pas on WIN32

2019-01-30 Thread conlin664 via fpc-pascal
PATH=%SAVED_PATH% @exit /b -- so now I'm back to the error of undefined symbol C:\FPC\use_c_with_pas>fpc -MDelphi -MDelphi -vw -Sg -Ci -O1 -Cp386 -OpPENTIUM3 -Ratt -Fu\units\i386-Win32 -Fu\units\i386-Win32\* -F u\units\i386-Win32\rtl -FlC:\VCAST63\MinGW\lib pcode.pas Free Pascal C

Re: [fpc-pascal] trying to use C code in .pas on WIN32

2019-01-31 Thread conlin664 via fpc-pascal
this extra '_' business and i suspect they are on linux Os macOs. Here at work I'm on a windows machine, but at home I'm happily running FPC on a mac -- Sent from: http://free-pascal-general.1045716.n5.nabble.com/ _______ fpc-

Re: [fpc-pascal] trying to use C code in .pas on WIN32

2019-02-04 Thread conlin664 via fpc-pascal
VED_PATH% @exit /b thanks again! john -- Sent from: http://free-pascal-general.1045716.n5.nabble.com/ _______ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] trying to use C code in .pas on WIN32

2019-02-05 Thread conlin664 via fpc-pascal
C type calling conventions." so I'm going to stick with cdecl and for now it's working and will be more compatible when I also use this code on MacOs cheers john -- Sent from: http://free-pascal-general.1045716.n5.nabble.com/ ___

[fpc-pascal] How to uninstall old FPC

2019-02-13 Thread list_email--- via fpc-pascal
How do I remove all of FPC 2.6.4 from macOS (11.6.4) so that I can install the newest version? Is everything in /usr/local/bin/ppc386 (see below)? $ fpc Free Pascal Compiler version 2.6.4 [2014/02/26] for i386 Copyright (c) 1993-2014 by Florian Klaempfl and others /usr/local/bin/ppc386 [options

Re: [fpc-pascal] How to uninstall old FPC

2019-02-14 Thread list_email--- via fpc-pascal
> On Feb 13, 2019, at 10:44 AM, Jonas Maebe wrote: > > On 13/02/19 10:55, list_email--- via fpc-pascal wrote: >> How do I remove all of FPC 2.6.4 from macOS (11.6.4) so that I can install >> the newest version? Is everything in /usr/local/bin/ppc386 (see below)? &g

Re: [fpc-pascal] CopyFile for FreePascal without Lazarus?

2019-04-17 Thread leledumbo via fpc-pascal
> but that seems to only work with Lazarus. The unit is part of LazUtils package. It has no dependency on other packages but indeed can't be used as a standalone unit, you need other units from the same package but that's all. -- Sent from: http://free-pascal-general.1045716.

Re: [fpc-pascal] Improve message "Wrong ppu found"

2019-04-27 Thread leledumbo via fpc-pascal
x27;+PPUFn); utils/ppufiles.pp: Error('Error: Wrong PPU Version : '+PPUFn,false); utils/ppumove.pp: Error('Error: Wrong PPU Version '+tostr(ppuversion)+' in '+PPUFn,false); -- Sent from: http://free-pascal-general.1045716.n5.nabble.com/

[fpc-pascal] Does FPC require glibc?

2019-05-06 Thread Nozz via fpc-pascal
Empty Message___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Does FPC require glibc?

2019-05-06 Thread Nozz via fpc-pascal
On Monday, May 6, 2019 10:48 PM, Sven Barth wrote: > Nozz via fpc-pascal schrieb am Mo., 6. Mai > 2019, 22:18: > >> Empty Message > > Depends on what you're using (and the platform). E.g. the compiler itself > runs without glibc on Linux, but if you need to

Re: [fpc-pascal] Using docker to build software

2019-05-28 Thread leledumbo via fpc-pascal
: http://free-pascal-general.1045716.n5.nabble.com/ ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Documentation generation

2019-08-17 Thread leledumbo via fpc-pascal
> How are the FPC RTL documentations generated? I wanted to see if I could generate .docsets files from them also. A starting point: https://wiki.freepascal.org/FPCDocs_Tutorial I believe that "write me" part is not far from calling make with certain options. -- Sent from: http:

Re: [fpc-pascal] Generic type conflicts

2019-11-02 Thread Cyrax via fpc-pascal
On 02/11/2019 16:55, Ryan Joseph via fpc-pascal wrote: I've wanted to make a generic version of a vector for a while but I always give up because it seems not very possible. It's probably not even a great idea because many methods don't translate between float and integer

[fpc-pascal] FPC cannot understand 1-char string as PChar

2019-11-04 Thread AlexeyT via fpc-pascal
Py_BuildValue is from Python-for-Lazarus package.     Py_BuildValue:  function( format: PAnsiChar {;...}): PPyObject; cdecl varargs; -- Regards, Alexey ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

[fpc-pascal] TEventObject.Create site help

2019-11-05 Thread AlexeyT via fpc-pascal
ows only"-> "parameter is used on Windows only" -- Regards, Alexey _______ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

[fpc-pascal] TEventObject.ManualReset help page

2019-11-05 Thread AlexeyT via fpc-pascal
https://www.freepascal.org/docs-html/current/fcl/syncobjs/teventobject.manualreset.html text is poor, even the text in .Create (about ManualReset) is more detailed, so copy text from .Create to this page. -- Regards, Alexey ___ fpc-pascal maillist

[fpc-pascal] StringList micro optimization

2019-11-07 Thread AlexeyT via fpc-pascal
Procedure TStrings.SetDelimitedText(const AValue: string);  has about 16 calls to Length(AValue), so make a variable NLen to speed up it. -- Regards, Alexey ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi

[fpc-pascal] TStringList.SetCommaText needs refactor

2019-11-09 Thread AlexeyT via fpc-pascal
e;   end; end; -- Regards, Alexey _______ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

[fpc-pascal] DirectoryExists on FreeBSD 12 problem

2019-11-21 Thread AlexeyT via fpc-pascal
mpatible with FPC. so i wonder, which define freebsd 12 uses??? I cannot google it easily. DirectoryExists reads st_mode item. -- Regards, Alexey _______ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

[fpc-pascal] DirectoryExists of FreeBSD 12- Java solution

2019-11-21 Thread AlexeyT via fpc-pascal
ds, Alexey ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

[fpc-pascal] Strange experience with TJsonConfig.Clear

2019-11-23 Thread Bart via fpc-pascal
roduce the issue in a simple test program that just writes values to a TJSONConfig. (In fact I started out writing simple test programs reading and writing TJSONConfig before trying to attempt to convince my addressbook application to write to a TJSONConfig in the first place) Before you ask: my app doesn't use threads. Any thoughts on this? -- Bart ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Strange experience with TJsonConfig.Clear

2019-11-23 Thread Bart via fpc-pascal
screwing up the file ... ) -- Bart ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

[fpc-pascal] StringList encoding question

2019-12-22 Thread Bart via fpc-pascal
codepage of the stringlist's internal list of strings (array of TStringItem's)? It seems that the stringlist considers it's internal TStringItem.FString that has #$C3A#$A4 to have a codepage of CP_ACP (always)? Bart -- Bart ________

Re: [fpc-pascal] Calling function pointer to main program

2020-01-02 Thread leledumbo via fpc-pascal
re. So you can make your own main in a separate file that must be linked in during linking which calls whatever name you pass to -XM. -- Sent from: http://free-pascal-general.1045716.n5.nabble.com/ ___ fpc-pascal maillist - fpc-pasca

[fpc-pascal] TIniFile.WriteString gives file with BOM, bad

2020-01-10 Thread AlexeyT via fpc-pascal
Regards, Alexey ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] TIniFile.WriteString gives file with BOM, bad

2020-01-10 Thread Bart via fpc-pascal
TIniFile manually adds the BOM to the first Line. Then SaveToFile is called, which (if FEncoding = Utf8) will add the BOM again? Bart ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc

Re: [fpc-pascal] TIniFile.WriteString gives file with BOM, bad

2020-01-10 Thread Bart via fpc-pascal
On Fri, Jan 10, 2020 at 5:57 PM AlexeyT via fpc-pascal wrote: > 1) don't write BOM via WriteString It doesn't AFAICS. The BOM is written in UpdateFile. > 2) if BOM is there, allow ReadString to find section at the file begin: > BOMCHARS[ref] I can read/write IniFiles with

Re: [fpc-pascal] TIniFile.WriteString gives file with BOM, bad

2020-01-10 Thread AlexeyT via fpc-pascal
here my app reads ini files via TextFile. b) I canNOT fix another place where PYTHON library reads ini file (Python has module for ini files). c) So yes, I want to disable BOM writing at all. -- Regards, Alexey ___ fpc-pascal maillist -

Re: [fpc-pascal] TIniFile.WriteString gives file with BOM, bad

2020-01-10 Thread AlexeyT via fpc-pascal
Can you add TIniFile.WriteBom property? it's not quite enough, I need to disable it globally in entire app (I have ~10 ini objects), so additional global default is needed (like Lazarus has global variables). -- Regards, Alexey ___ fpc-p

Re: [fpc-pascal] TIniFile.WriteString gives file with BOM, bad

2020-01-10 Thread Bart via fpc-pascal
On Fri, Jan 10, 2020 at 11:30 PM AlexeyT via fpc-pascal wrote: > Can you add TIniFile.WriteBom property? it's not quite enough, I need to > disable it globally in entire app (I have ~10 ini objects), so > additional global default is needed (like Lazarus has global variables). Op

Re: [fpc-pascal] TProcess and zombie processes in *nix systems

2020-01-21 Thread Bart via fpc-pascal
-- Bart ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

[fpc-pascal] IDLE_PRIO with FPC-compiled processes

2020-01-26 Thread denisgolovan via fpc-pascal
Hi all Have anybody experienced exceptions "Failed to create new thread" when FPC-compiled process priority changed with schedtool -D [pid]? -- Regards, Denis Golovan ___ fpc-pascal maillist - fpc-pascal@lists.freepascal

Re: [fpc-pascal] Compatibility problems with fpc > 3.3.1 rev 42375

2020-02-01 Thread fredvs via fpc-pascal
any thanks ;-) -- Sent from: http://free-pascal-general.1045716.n5.nabble.com/ ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Compatibility problems with fpc > 3.3.1 rev 42375

2020-02-02 Thread fredvs via fpc-pascal
, many, many thanks. Fre;D - Many thanks ;-) -- Sent from: http://free-pascal-general.1045716.n5.nabble.com/ ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Compatibility problems with fpc > 3.3.1 rev 42375

2020-02-03 Thread fredvs via fpc-pascal
;-) -- Sent from: http://free-pascal-general.1045716.n5.nabble.com/ ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

[fpc-pascal] ptop and comma.

2020-02-11 Thread fredvs via fpc-pascal
;-) -- Sent from: http://free-pascal-general.1045716.n5.nabble.com/ ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] ptop and comma.

2020-02-11 Thread fredvs via fpc-pascal
> It should be relatively easily possible, because colon, period and so on are also treated specially. > if "," is recognized, a 'spaft' option will do what you want. Ha, ok, I will explore this. Thanks. Fre;D - Many thanks ;-) -- Sent from: http://free

Re: [fpc-pascal] ptop and comma.

2020-02-12 Thread fredvs via fpc-pascal
Hello Michael. I have added in ptopu.pp "comma" keyword and option[t,comma]^.selected := [spaft]; Works like charm. Included patched ptopu.pp ptopu.zip <http://free-pascal-general.1045716.n5.nabble.com/file/t339155/ptopu.zip> Fre;D - Many thanks ;-) -- Sent from: ht

Re: [fpc-pascal] ptop and comma.

2020-02-12 Thread fredvs via fpc-pascal
could do it. Maybe from a used units? Fre;D - Many thanks ;-) -- Sent from: http://free-pascal-general.1045716.n5.nabble.com/ _______ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] ptop and comma.

2020-02-12 Thread fredvs via fpc-pascal
Re-hello. In the previous zip file there is the ptopu.pp file (not ptop.pp that I did not touch). Fre;D - Many thanks ;-) -- Sent from: http://free-pascal-general.1045716.n5.nabble.com/ ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org

Re: [fpc-pascal] ptop and comma.

2020-02-12 Thread fredvs via fpc-pascal
s does not exist, only plugin for tenors like Eclipse, etc all Java applets of course. So why not a Jtop pure fpc, without any dependencies? ;) Good night Michael. Fre;D - Many thanks ;-) -- Sent from: http://free-pascal-general.1045716.n5.nabb

[fpc-pascal] Last fix for RegExpr (error on empty input)

2020-02-15 Thread AlexeyT via fpc-pascal
quot;__". -- Regards, Alexey _______ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Last fix for RegExpr (error on empty input)

2020-02-15 Thread AlexeyT via fpc-pascal
ce it to "__". -- Regards, Alexey ___________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

[fpc-pascal] App crash on FPC 3.3 today's trunk

2020-02-18 Thread AlexeyT via fpc-pascal
Linux x64 gtk2, crash in regnext() in "offset:=", https://github.com/Alexey-T/ATSynEdit/blob/master/atsynedit/atsynedit_regexpr.pas#L3664 -- Regards, Alexey ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepasc

Re: [fpc-pascal] ptop and comma.

2020-02-23 Thread fredvs via fpc-pascal
7;ptop -h : This help'); halt(Ecode); --> This produces a memory leak end; So the big question is: What is the purpose of "halt(Ecode)" and would it be a crime to remove it? Thanks. Fre;D - Many thanks ;-) -- Sent from: http://free-pascal-general.

Re: [fpc-pascal] ptop and comma.

2020-02-23 Thread fredvs via fpc-pascal
top, a beautifier for Java based on ptop. https://github.com/fredvs/xtop Fre;D - Many thanks ;-) -- Sent from: http://free-pascal-general.1045716.n5.nabble.com/ ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.o

Re: [fpc-pascal] ptop and comma.

2020-02-23 Thread fredvs via fpc-pascal
Hello Tomas and thanks for the infos. Hum, ok, so I give you the hand to find why the original code finishes the program with some memory leak. Fre;D - Many thanks ;-) -- Sent from: http://free-pascal-general.1045716.n5.nabble.com/ ___ fpc

Re: [fpc-pascal] ptop and comma.

2020-02-23 Thread fredvs via fpc-pascal
Sorry for the noise. Fre;D - Many thanks ;-) -- Sent from: http://free-pascal-general.1045716.n5.nabble.com/ ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] ptop and comma.

2020-02-24 Thread Bart via fpc-pascal
On Mon, Feb 24, 2020 at 10:11 AM Sven Barth via fpc-pascal wrote: > You are wrong. Halt() sets the error code provided as parameter. Terminate by > itself does not. > Terminate leads to the destructor being called while Halt exists the program > in a hard way. But as Tomas w

Re: [fpc-pascal] ptop and comma.

2020-02-24 Thread fredvs via fpc-pascal
e programs that generate memory leak and all the bla-bla that try to to convince me that it is not important, that the OS will remove it, ... etc dont work on me. I will test your idea. Thanks. Fre;D - Many thanks ;-) -- Sent from: http://free-pascal-gener

Re: [fpc-pascal] ptop and comma.

2020-02-24 Thread fredvs via fpc-pascal
); end; Is it what you are thinking? Indeed, no more memory leak and error preserved with this. Heap dump by heaptrc unit of ptop 29 memory blocks allocated : 2242/2280 29 memory blocks freed : 2242/2280 0 unfreed memory blocks : 0 True heap size : 131072 True free

<    1   2   3   4   5   6   7   8   9   10   >