Re: [fpc-pascal] USB Human Interface Devices

2019-08-19 Thread Marc Santhoff
s own, so why bother passing something so obvious > as a parameter... this leads me to wonder if this length needs to be > something else? > > James > ___ > fpc-pascal maillist - fpc-pascal@lists.freepascal.org > https://lists.fr

Re: [fpc-pascal] USB Human Interface Devices

2019-08-18 Thread Marc Santhoff
On Mon, 2019-08-19 at 03:11 +0200, Marc Santhoff wrote: > Hi James, > > are you really sure the WHB04B-6 is exactly the same as your WHB04B-4 viewn to > the USB API? > > If those thingys come with a dll, maybe you can compare the header files? > If there is no header f

Re: [fpc-pascal] USB Human Interface Devices

2019-08-18 Thread Marc Santhoff
a header file. HTH somehow... -- Marc Santhoff ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] USB Human Interface Devices

2019-07-27 Thread Marc Santhoff
On Fri, 2019-07-26 at 22:37 +0200, Johann Glaser wrote: > Hi! > > Am Freitag, den 26.07.2019, 15:56 +0200 schrieb Marc Santhoff: > > On Thu, 2019-07-25 at 19:40 -0700, Brian wrote: > > > Try the libusb library Free Pascal interface .. but be aware of his > > > lic

Re: [fpc-pascal] USB Human Interface Devices

2019-07-26 Thread Marc Santhoff
___ > fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepa > scal.org/cgi-bin/mailman/listinfo/fpc-pascal > ___ > fpc-pascal maillist - fpc-pascal@lists.freepascal.org > https://lists.freepascal.org/cgi-bin/mailman/listin

Re: [fpc-pascal] USB Human Interface Devices

2019-07-26 Thread Marc Santhoff
-pascal.html -- Marc Santhoff ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

[fpc-pascal] FReeBSD changing linker

2019-06-06 Thread Marc Santhoff
review of lld workarounds in the ports tree, to identify changes that are no longer needed, should be addressed in lld, or should be sent upstream This project was sponsored by The FreeBSD Foundation. " -- Marc Santhoff ___ fpc-

Re: [fpc-pascal] from fpc 2.6 to 3.x

2019-06-05 Thread Marc Santhoff
On Sat, 2019-06-01 at 22:26 +0200, Bart wrote: > On Sat, Jun 1, 2019 at 8:41 PM Marc Santhoff wrote: > > > which are the main changes when upgrading fpc from 2.6.4 to the current > > 3.x > > release? > > Codepage aware strings come to mind... > &g

[fpc-pascal] from fpc 2.6 to 3.x

2019-06-01 Thread Marc Santhoff
notes... Since I do not want to do that again I need to know how to prepare properly. I've ssen the release notes in the wiki [1], but there is no comparison between the two lines of development. TIA, Marc [1] http://wiki.freepascal.org/User_Changes_3.0.0 -- Marc San

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

2019-02-13 Thread Marc Santhoff
On Tue, 2019-02-05 at 15:49 +0100, Marc Santhoff wrote: > On Mon, 2019-02-04 at 15:59 -0700, conlin664 via fpc-pascal wrote: > > THANKS GUYS. > > > > This is now working. The 'fix' was to actually install fpc 3.0.4 on this > > machine. > > My trusty 2.4.4

Re: [fpc-pascal] Question: Is there a global callback, when a thread gets terminated?

2019-02-12 Thread Marc Santhoff
ant, imho... -- Marc Santhoff ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Question: Is there a global callback, when a thread gets terminated?

2019-02-12 Thread Marc Santhoff
reads. So you know the threads using the logger. Same could be done in the destruction code, using the ".DeregisterThread()" method. So you now the threads and their lifetime inside the logger. HTH anyhow, Marc -- Marc Santhoff ___

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

2019-02-06 Thread Marc Santhoff
clear things up? -- Marc Santhoff ___ 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 Marc Santhoff
6-Win32 ^ > -Fu%FPC_BASE%\units\i386-Win32\* ^ > -Fu%FPC_BASE%\units\i386-Win32\rtl ^ > -FlC:\VCAST63\MinGW\lib ^ > pcode.pas > > @set PATH=%SAVED_PATH% > @exit /b Why does this work having 'cdecl' instead of 'stdcall'? Is it a special ca

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

2019-01-31 Thread Marc Santhoff
On Thu, 2019-01-31 at 22:42 +0100, Tomas Hajny wrote: > On Thu, January 31, 2019 21:57, Marc Santhoff wrote: > > On Thu, 2019-01-31 at 11:00 -0700, conlin664 via fpc-pascal wrote: > > > sven, > > > > > > so I just tried, what I think you said: > > >

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

2019-01-31 Thread Marc Santhoff
details of naming and the different name conventions on Win32 and Win64 are missing, too. I think there should be at least a wiki page or better some explanations in the Programmers Guide. -- Marc Santhoff ___ 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-29 Thread Marc Santhoff
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 a pascal program on a > windows machine > How do your declaration and compiler switch(es) in the

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

2019-01-24 Thread Marc Santhoff
lInit; stdcall; external 'common' name 'CutilInit'; If the full external declaration is necessary you'll have to try. I had to when using a dynamic library (.dll in win32 terms). -- Marc Santhoff ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] instance memory usage

2018-10-24 Thread Marc Santhoff
On Wed, 2018-10-24 at 22:06 +0200, Sven Barth via fpc-pascal wrote: > Am 20.10.2018 um 20:09 schrieb Marc Santhoff: > > Hi, > > > > from testing a while ago I remember the following: > > > > The memory used by a class instance is composed of > > 1. the

[fpc-pascal] instance memory usage

2018-10-20 Thread Marc Santhoff
are (to be) included in 2., string types are in fact references aka pointers The second clause is sort of "by definition", but I do define like that in this case. Is that listing correct and complete? TIA, Marc -- Marc Santhoff ___

Re: [fpc-pascal] Using REST based Services

2018-10-08 Thread Marc Santhoff
> example, realizing your API key is incorrect. > > Alex > > > On 10/7/2018 4:03 PM, Marc Santhoff wrote: > > On Sun, 2018-10-07 at 00:23 +0200, Michael Van Canneyt wrote: > > > On Sat, 6 Oct 2018, Marc Santhoff wrote: > > > > > >

Re: [fpc-pascal] Using REST based Services

2018-10-07 Thread Marc Santhoff
On Sun, 2018-10-07 at 00:23 +0200, Michael Van Canneyt wrote: > > On Sat, 6 Oct 2018, Marc Santhoff wrote: > > > Hi, > > > > being rather agnostic regarding web techniques I have to ask: > > > > What module or unit is best for being used when calling web

[fpc-pascal] Using REST based Services

2018-10-06 Thread Marc Santhoff
overview: https://wiki.apache.org/tika/TikaJAXRS#Services TIA, Marc -- Marc Santhoff ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Bitmap-as-const-and-write-to-file-thingy

2018-09-20 Thread Marc Santhoff
Oncemore using the correct from address... Sorry moderation. On Thu, 2018-09-20 at 23:45 +0200, Bo Berglund wrote: > On Wed, 19 Sep 2018 23:58:36 +0200, Marc Santhoff > wrote: > > > Any pointers or hints, please? > > You can convert any file you like to an inc fi

Re: [fpc-pascal] Bitmap-as-const-and-write-to-file-thingy

2018-09-20 Thread Marc Santhoff
On Thu, 2018-09-20 at 00:47 +0200, Tomas Hajny wrote: > On Wed, September 19, 2018 23:58, Marc Santhoff wrote: > > > Hi, > > . > . > > What I need: > > > > - A program taking a binary file and spitting out pascal code for the > > const array. I k

[fpc-pascal] Bitmap-as-const-and-write-to-file-thingy

2018-09-19 Thread Marc Santhoff
. Currently I'm plannig to use a TFileStreaam writing out Bytes, should do. Any pointers or hints, please? TIA, Marc -- Marc Santhoff ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Unbuffering I/O

2018-08-29 Thread Marc Santhoff
using the flag "O_DIRECT" instead of "O_NONBLOCK" for switching of caching as far as possible. At least on FreeBSD it is like this, check on Linux yourself... -- Marc Santhoff ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Daemon using TTimer on Windows

2018-07-03 Thread Marc Santhoff
On Tue, 2018-07-03 at 10:14 -0300, Marcos Douglas B. Santos wrote: > > Can we sleep a thread for minutes or even hours without any problems? > The OS will not kill the thread? > Sorry, I simply don't know. Try it. -- Marc Santhoff _

Re: [fpc-pascal] Daemon using TTimer on Windows

2018-07-03 Thread Marc Santhoff
. It's attached to this mail, hoping hte list accepts pure text attachemnts, although I hoped it would have been integrated in fpc/lazarus. HTH, Marc -- Marc Santhoff { A basic thread based timer component. Can be used in GUI and non-GUI apps. Author: Graeme Geldenhuys } unit ThreadTimer

Re: [fpc-pascal] How to list USB devices on Windows?

2018-06-27 Thread Marc Santhoff
ed when stumbled upon, thinking "this will be useful later"... I can send it in private or post it here on the list or on pastebin. Maybe the author can be identified? I hesitate calling it public domain, but the code snippets I collect are exactly that, visible for everyone, from p

Re: [fpc-pascal] Proper preprocessor?

2018-06-21 Thread Marc Santhoff
Ryan Joseph > > ___ > fpc-pascal maillist - fpc-pascal@lists.freepascal.org > http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal -- Marc Santhoff ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Proper preprocessor?

2018-06-20 Thread Marc Santhoff
On Wed, 2018-06-20 at 22:45 +0700, Ryan Joseph wrote: > > On Jun 20, 2018, at 10:20 PM, Marc Santhoff wrote: > > > > The spots where resolving single parameter macros is done are pretty easy > > to > > find. Parsing the macro text and replacement will be the hardest

Re: [fpc-pascal] Proper preprocessor?

2018-06-20 Thread Marc Santhoff
where resolving single parameter macros is done are pretty easy to find. Parsing the macro text and replacement will be the hardest part, as Michael wrote. A bit of housekeeping for parameter-type lists, etc... -- Marc Santhoff ___ fpc-pascal

Re: [fpc-pascal] Proper preprocessor?

2018-06-20 Thread Marc Santhoff
reprocessor, solving the problem of mangled error messages. The preprocessor user could implement whatever is needed on his or her side? My 2 cent, Marc -- Marc Santhoff ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Realtime and freepascal???

2018-06-15 Thread Marc Santhoff
ould be to show a video from file on the screeen and be able to navigate by time code and by single picture. -- Marc Santhoff ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Realtime and freepascal???

2018-06-01 Thread Marc Santhoff
ion: > would one really need both if one were confident in what he was doing?). They most probably use industrial ehternet for the important things. There are approaches doing both, tcp/ip and industrial protocols on one cable, but I personally would not set one foot into a plane doin

Re: [fpc-pascal] Realtime and freepascal???

2018-06-01 Thread Marc Santhoff
g/Operating_Systems_written_in_FPC http://wiki.freepascal.org/ARM https://en.wikipedia.org/wiki/Comparison_of_real-time_operating_systems Have fun, Marc -- Marc Santhoff ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Generating RTL Units for STM32 Processors

2018-03-01 Thread Marc Santhoff
ollers (avr at the moment) into fpc. Me too, especially STM32F407 & 446. -- Marc Santhoff ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] re-engineering tool

2018-01-09 Thread Marc Santhoff
On Mon, 2018-01-08 at 15:21 +0200, Juha Manninen wrote: > On Sat, Jan 6, 2018 at 11:46 AM, Marc Santhoff > wrote: > > Since I'm confronted with the task of analyzing a pile of object > > pascal > > sources I'd like to know: > > > > Is there any

Re: [fpc-pascal] re-engineering tool

2018-01-08 Thread Marc Santhoff
On Mon, 2018-01-08 at 08:35 +0100, Marc Santhoff wrote: > On Sat, 2018-01-06 at 18:01 +0100, Marco van de Voort wrote: > > In our previous episode, Marc Santhoff said: > > > Since I'm confronted with the task of analyzing a pile of object > > > pasca

Re: [fpc-pascal] re-engineering tool

2018-01-07 Thread Marc Santhoff
On Sat, 2018-01-06 at 18:01 +0100, Marco van de Voort wrote: > In our previous episode, Marc Santhoff said: > > Since I'm confronted with the task of analyzing a pile of object > > pascal > > sources I'd like to know: > > > > Is there any tool that c

[fpc-pascal] re-engineering tool

2018-01-06 Thread Marc Santhoff
Hi! Since I'm confronted with the task of analyzing a pile of object pascal sources I'd like to know: Is there any tool that can help me? Automatically generating a visual class diagram having uses and aggregation of other classes would be very helpful. Any hints? TIA, Marc -- Mar

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

2018-01-02 Thread Marc Santhoff
On Mon, 2018-01-01 at 13:17 -0500, Yves Cloutier wrote: > Hi there, > > I'd be interested to know if any modern compilers have been written > in > Pascal (other than the Pascal Compiler). A bit outdated, but intresting: http://pascaland.org/pascall.ht

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

2018-01-02 Thread Marc Santhoff
um, the creator of Python, writes about it "Throw away your compiler theory book!" I would really appreciate a translation of the code from the book to pascal. ;) Sorry for mentioning something nasty like Java on this list. -- Marc Santhoff ___

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

2017-11-10 Thread Marc Santhoff
On Fr, 2017-11-10 at 19:07 +0100, Mattias Gaertner wrote: > On Fri, 10 Nov 2017 18:57:19 +0100 > Marc Santhoff wrote: > > >[...] > > > You can either use fpc and switch the target OS and /or processor. > > > > That solution isnt't doable, that would

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

2017-11-10 Thread Marc Santhoff
On Fr, 2017-11-10 at 18:22 +0100, Karoly Balogh (Charlie/SGR) wrote: > Hi, > > On Fri, 10 Nov 2017, Marc Santhoff wrote: > > > What is that, is ppc used for bootstrapping the cross compiler > > regardless of any other fpc maybe installed? > > Yes. First that ppc

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

2017-11-10 Thread Marc Santhoff
On Fr, 2017-11-10 at 18:25 +0100, Mattias Gaertner wrote: > On Fri, 10 Nov 2017 17:47:11 +0100 > Marc Santhoff wrote: > > > Hi again, > > > > (too many sub threads, answering here - thanks to all helpers!) > > > > OK, "$FPC -va | grep CPU" does

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

2017-11-10 Thread Marc Santhoff
Hi again, (too many sub threads, answering here - thanks to all helpers!) OK, "$FPC -va | grep CPU" does the trick. If using the ppcrossarm: marc@puma:/home/marc/program/fpc-cross/src/fpc/compiler > ./ppcrossarm -va|grep CPU [0.004] Macro defined: CPUARMEL [0.004] Macro defined: FPC_CPUCROSSCOM

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

2017-11-09 Thread Marc Santhoff
On Do, 2017-11-09 at 21:31 +0100, Giuliano Colla wrote: > Il 09/11/2017 02:36, Marc Santhoff ha scritto: > > > how does fpc and it's makefiles handle the case of installing a cross > > compiler on a system having fpc installed? > > > > The target path will di

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

2017-11-09 Thread Marc Santhoff
On Do, 2017-11-09 at 20:05 +0200, Christo wrote: > On Thu, 2017-11-09 at 02:36 +0100, Marc Santhoff wrote: > > Additionally there seems to be no compiler switch for changing the > > configuration file to use, only -n for ignoring it. Is ist possible > > to > > name the

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

2017-11-08 Thread Marc Santhoff
Hi, how does fpc and it's makefiles handle the case of installing a cross compiler on a system having fpc installed? The target path will differ and I can set that, but how is the config file .fpc.cfg handled? I'm a bit afraid to mess up the installation not because of fpc but because I'm not rea

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

2017-09-11 Thread Marc Santhoff
On Mo, 2017-09-11 at 00:40 -0700, leledumbo via fpc-pascal wrote: > > Which container class ist the easiest to use for key-value pairs? > > All are just as easy. Instead you should state for non-functional > requirements. Does it have to be fast? Does it have to be memory efficient? > Or as long a

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

2017-09-11 Thread Marc Santhoff
On Mo, 2017-09-11 at 09:22 +0200, Michael Van Canneyt wrote: > > On Mon, 11 Sep 2017, Marc Santhoff wrote: > > > Hi, > > > > since I'm programming Pascal only on occasion I'd like to know: > > > > Which container class ist the easiest to use fo

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

2017-09-10 Thread Marc Santhoff
from json data (text) and have to be stored in memory (for now). TIA, Marc -- Marc Santhoff ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Using Serial in a TCP/RS232 gateway, how to set buffer sizes?

2017-09-07 Thread Marc Santhoff
On Do, 2017-09-07 at 13:32 +0200, Bo Berglund wrote: > On Wed, 06 Sep 2017 23:21:17 +0200, Marc Santhoff > wrote: > > >Could that be some sort of timeout? > > > >You're setting > > > > FTcpComm.ReadTimeout := 30; > > > >but I have no

Re: [fpc-pascal] Using Serial in a TCP/RS232 gateway, how to set buffer sizes?

2017-09-06 Thread Marc Santhoff
On Mi, 2017-09-06 at 23:06 +0200, Bo Berglund wrote: > On Wed, 06 Sep 2017 22:52:12 +0200, Bo Berglund > wrote: > > >I have now added extra binary logging to the relaying program only to > >find that the data received and processed are missing about 50 k of > >the 1M transmission. > >Next I will

Re: [fpc-pascal] Using Serial in a TCP/RS232 gateway, how to set buffer sizes?

2017-09-06 Thread Marc Santhoff
On Mi, 2017-09-06 at 21:22 +0200, Bo Berglund wrote: > Where could I be losing incoming serial data? Only for completeness: Can you rule out problems reagrding the hardware side? Mabe there are some weak line drivers or a faulty cable involved? Worth checking, at least. HTH anyhow, Marc _

[fpc-pascal] machine readable grammar of object pascal?

2017-05-02 Thread Marc Santhoff
Hi, for playing around I would need a grammar of Object Pascal. I do not care for which tool it is written or at best if it is plain EBNF. Does such grammar exist? TIA, Marc ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.fre

Re: [fpc-pascal] Translation C to Pascal

2017-05-02 Thread Marc Santhoff
On Di, 2017-05-02 at 08:33 -0700, fredvs wrote: > Hello. > > The best (IMHO) is c2pas32 --> http://www.astonshell.com/freeware/c2pas32/ Nice program, i fed the adc.c source from STMs fwlib for stm32f4 through and the generated code looks fine. There is some guessing on type casts, but I hope thos

[fpc-pascal] Translation C to Pascal

2017-05-01 Thread Marc Santhoff
Hi, since fpc supports a lot of intresting SoCs and Microcontrollers - has anyone really used Allwinner A20? - I need an update: Which translator do you use for making Object Pascal code from C? For headers there is the very well working h2pas. But what tool is recommendable for .c files? The o

Re: [fpc-pascal] fpc for ARM on STM32F103

2017-01-22 Thread Marc Santhoff
On So, 2017-01-22 at 22:05 +0100, Florian Klämpfl wrote: > Am 22.01.2017 um 21:43 schrieb Marc Santhoff: > > On So, 2017-01-22 at 21:20 +0100, Florian Klämpfl wrote: > >> Am 22.01.2017 um 19:33 schrieb Marc Santhoff: > >>> Hi, > >>> > >>&

Re: [fpc-pascal] fpc for ARM on STM32F103

2017-01-22 Thread Marc Santhoff
On So, 2017-01-22 at 21:20 +0100, Florian Klämpfl wrote: > Am 22.01.2017 um 19:33 schrieb Marc Santhoff: > > Hi, > > > > I'd like to know if the floating point hardware on STM32F103 > > What floating point hardware does it have? According to a quick search, it

[fpc-pascal] fpc for ARM on STM32F103

2017-01-22 Thread Marc Santhoff
Hi, I'd like to know if the floating point hardware on STM32F103 is supported by the fpc cross compiler. ARmv7 this is according to: http://j-software.dk/stm32f103.php Will fpc use floating point support on those SoCs? TIA, Marc ___ fpc-pascal maill

Re: [fpc-pascal] questions on fpimage

2017-01-05 Thread Marc Santhoff
On Do, 2017-01-05 at 11:15 +0100, Mattias Gaertner wrote: > On Tue, 03 Jan 2017 02:54:05 +0100 > Marc Santhoff wrote: > > > Hi, > > > > firstly a happy new year to you all and keep on rocking! > > > > While reading the fpimage unit code I found some piec

[fpc-pascal] questions on fpimage

2017-01-02 Thread Marc Santhoff
Hi, 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 docs. Here we go: TFPCustomImage = class(TPersistent) [...] public [...] property Extra [const key:string] : stri

Re: [fpc-pascal] meta data of files

2016-12-15 Thread Marc Santhoff
On Mi, 2016-12-14 at 22:56 -0700, Lars wrote: > On Wed, December 14, 2016 11:57 am, Marc Santhoff wrote: > > Hi, > > > > > > I'd like to read out meta data from files. is there any pascal code > > supporting this task? > > > > This is abou

[fpc-pascal] meta data of files

2016-12-14 Thread Marc Santhoff
Hi, I'd like to read out meta data from files. is there any pascal code supporting this task? This is about reading the comment of zip files, the author and description of word processor files (open document format) and so on. TIA, Marc ___ fpc-pasca

[fpc-pascal] file identification using libmagic

2016-12-14 Thread Marc Santhoff
de by Marc Santhoff in 2016 Do anything you like with this code, no warranties of any kind given. Please respect other licenses, see below. Issues: - I had to change two of the MAGIC_ constants because of name clashes. They got an additional underscore after the name, see below. -

Re: [fpc-pascal] C translation question

2016-11-18 Thread Marc Santhoff
On Di, 2016-11-15 at 22:38 -0700, Lars wrote: > I just wish CVS and SVN had as nice of a GUI front end (like github). > That's the one thing I really like about git is the nice GUI access, > simple readme system for projects etc. With CVS and SVN gui's and website > front ends I never found anythi

[fpc-pascal] picture preview

2016-11-08 Thread Marc Santhoff
Hi, if I want load a bitmap picture for extracting a small preview of it, what component or library would be best? My goal is to use pascal only without any external lirbraries if possible. Second goal is to keep the program small, ideally avoiding to link lcl controls in. Bitmap picture may be

Re: [fpc-pascal] Linking to Linux on a FreeBSD system with Linux emulated ?

2016-09-09 Thread Marc Santhoff
On Fr, 2016-09-09 at 09:06 +0100, Graeme Geldenhuys wrote: > On 2016-09-05 05:02, fredvs wrote: > > In FreeBSD forum they explain that FreeBSD 64 bit can run Linux 64 bit > > applications (I am able too) but can only link Linux 32 bit applications > > (that cannot be run on a FreeBSD 64 bit system)

Re: [fpc-pascal] Linking to Linux on a FreeBSD system with Linux emulated ?

2016-09-06 Thread Marc Santhoff
On Di, 2016-09-06 at 10:42 -0700, fredvs wrote: > > No, I didn't. I only compile native programs. > > Huh, it is what I wanted to ask... > > Did you try to compile on a native FreeBSD 32 bit using -XX parameter (smart > link). No, I have no FreeBSD 32 Bit at hand, sorry. Marc

Re: [fpc-pascal] Linking to Linux on a FreeBSD system with Linux emulated ?

2016-09-05 Thread Marc Santhoff
On Mo, 2016-09-05 at 16:42 -0700, fredvs wrote: > Thanks Marc for that clear explanation, I knew linux emulation, of course, > but not that nickname. > > By the way, if you are using a FreeBSD 32 bit system, did you try to compile > a fpc application with smart link enabled (*-XX* parameter) ? No

Re: [fpc-pascal] Linking to Linux on a FreeBSD system with Linux emulated ?

2016-09-05 Thread Marc Santhoff
On So, 2016-09-04 at 08:44 -0700, fredvs wrote: > There is a answer there (but not sure I understand, what is "linuxolator" ?) The Linuxolator is a freebsd specific term for the linux binary emulation on freebsd. AFAIK it is done by implementing a small layer between the linux libraries and prog

Re: [fpc-pascal] Linking to Linux on a FreeBSD system with Linux emulated ?

2016-09-03 Thread Marc Santhoff
On Fr, 2016-09-02 at 15:03 -0700, fredvs wrote: > Hello Marc. > > And thanks to help. You're welcome. [...] > But when compiling on a FreeBSD 64 bit system using fpc-*linux-64*, there is > that message on linking: > > [4.438] Searching file /bin/ld... found > [4.438] Using util /bin/ld > [4.43

Re: [fpc-pascal] Linking to Linux on a FreeBSD system with Linux emulated ?

2016-09-02 Thread Marc Santhoff
On Fr, 2016-09-02 at 09:32 -0700, fredvs wrote: > Hello Marc. Hi Fred. > Thanks for the infos, good to know that it is possible to install linux > package via FreeBSD-pkg install. > Sadly I did not see any linux-ld or linux-binutils package in > https://www.freebsd.org/ports/linux.html > > So, t

Re: [fpc-pascal] Linking to Linux on a FreeBSD system with Linux emulated ?

2016-09-02 Thread Marc Santhoff
On Fr, 2016-09-02 at 08:57 -0700, fredvs wrote: > Hello. > > The night was very long and hard... > > I have some result. > > Here how I did: > > - Copy ld-linux into /compat/linux/bin > > - Copy dependencies-linux needed by ld-linux (some needed to be in > /compat/linux/lib, other in /compat/l

Re: [fpc-pascal] Linking to Linux on a FreeBSD system with Linux emulated ?

2016-09-01 Thread Marc Santhoff
On Do, 2016-09-01 at 14:24 -0700, fredvs wrote: > > Sorry, I can't help you much with that, ld-linux is not installed here > > and I don't know which package it is from. > > Huh, is it possible to install Linux packages (apt-get install something) in > a FreeBSD system ? > Or do you mean (like I

Re: [fpc-pascal] Linking to Linux on a FreeBSD system with Linux emulated ?

2016-09-01 Thread Marc Santhoff
On Do, 2016-09-01 at 13:54 -0700, fredvs wrote: > > See Greames message for why you still will have to use the Linux ld. > > Your error message clearly says, the FreeBSD linker can only create bfsd > > code for i386 and x64. > > >> Supported emulation: elf_x86_64_fbsd and elf_i386_fbsd > > Yes,

Re: [fpc-pascal] Linking to Linux on a FreeBSD system with Linux emulated ?

2016-09-01 Thread Marc Santhoff
On Do, 2016-09-01 at 09:56 -0700, fredvs wrote: > > With fpc's -k parameter, you can pass parameters directly to the linker. > > If you need to pass multiple parameters, use -k several times > > (e.g.-k-para1 -kvalue1) > > Wow, many thanks Jonas. > > I will try it and write you the result. > > B

Re: [fpc-pascal] Delphi may have Linux support next year

2016-08-30 Thread Marc Santhoff
On Di, 2016-08-30 at 11:31 -0500, Snorkl e wrote: > Big deal, we can do all that and more with Lazarus and FPC ... without waiting for "perhaps next year". Marc (using fpc/lazarus since fpc-version 1.9 or so ;) -- Marc Santhoff _

Re: [fpc-pascal] Parallel Port Access with Free Pascal - windows

2016-07-22 Thread Marc Santhoff
On Sa, 2016-07-23 at 05:55 +0200, Marc Santhoff wrote: > On Fr, 2016-07-22 at 18:20 -0400, James Richters wrote: > > I'm trying to avoid custom hardware if possible. I have always used > > parallel ports and never had a problem with them until now. I like the > > idea

Re: [fpc-pascal] Parallel Port Access with Free Pascal - windows

2016-07-22 Thread Marc Santhoff
On Fr, 2016-07-22 at 18:20 -0400, James Richters wrote: > I'm trying to avoid custom hardware if possible. I have always used > parallel ports and never had a problem with them until now. I like the > idea of a parallel port because they are still built onto motherboards, and > there are also a

Re: [fpc-pascal] Parallel Port Access with Free Pascal - windows

2016-07-22 Thread Marc Santhoff
On Do, 2016-07-21 at 05:29 +0200, Marc Santhoff wrote: > On Fr, 2016-07-15 at 14:59 -0700, Zaaphod wrote: > > I am trying to get access to the parallel port with Free Pascal. > > > > I'm trying to use this version of inpout32 (x64) > > http://www.

Re: [fpc-pascal] Parallel Port Access with Free Pascal - windows

2016-07-21 Thread Marc Santhoff
On Do, 2016-07-21 at 08:39 -0500, Paul Breneman wrote: > You can do *everything* via USB. :) I joked about this several years ago > but then went searching and found USB to ISA slot and USB to PCI slot > adapters. Folks use these to run expensive data acquisition cards. https://www.youtube.com

Re: [fpc-pascal] Parallel Port Access with Free Pascal - windows

2016-07-20 Thread Marc Santhoff
On Fr, 2016-07-15 at 14:59 -0700, Zaaphod wrote: > I am trying to get access to the parallel port with Free Pascal. > > I'm trying to use this version of inpout32 (x64) > http://www.highrez.co.uk/downloads/inpout32/ > > Here's my program: > http://pastebin.com/facf6EFc > > Here's my Unit: > h

Re: [fpc-pascal] FPC sources in FreeBSD

2016-07-09 Thread Marc Santhoff
On Sa, 2016-07-09 at 12:28 +0300, Juha Manninen wrote: > Thanks everybody for help and comments. > My memory is recovering slowly about keyboard configuration. It was > many years ago I did it manually for Linux distros. > But yes, "setxkbmap fi" in .xinitrc did the job. > > I confused "pkg" and "

Re: [fpc-pascal] FPC sources in FreeBSD

2016-07-08 Thread Marc Santhoff
On Fr, 2016-07-08 at 23:03 +0300, Juha Manninen wrote: > Hello > > I installed FreeBSD 10.3 under VirtualBox. This is the first time I > use FreeBSD. Cool! > I managed to install X, XFCE and all applications I need. > FPC and Lazarus both work. > > Only thing missing now is FPC source code, neede

Re: [fpc-pascal] Single threaded application on multicore CPU

2016-06-23 Thread Marc Santhoff
On Mi, 2016-06-22 at 15:01 +0200, Mattias Gaertner wrote: > On Wed, 22 Jun 2016 13:36:08 +0100 > Graeme Geldenhuys wrote: > > > On 2016-06-22 13:14, Mattias Gaertner wrote: > > > On my Linux it does not swap the CPU and I can't find any hard data that > > > Windows is swapping because of hotspot

Re: [fpc-pascal] Parser Generator

2016-05-20 Thread Marc Santhoff
On Fr, 2016-05-20 at 10:53 +0200, Marc Santhoff wrote: > There are some tools I liked very much when dealing with language > translation in the past, but they don't fit her. None of them generates ^e "they don't fit here.

Re: [fpc-pascal] Parser Generator

2016-05-20 Thread Marc Santhoff
On Fr, 2016-05-20 at 08:38 +, Mark Morgan Lloyd wrote: > Marc Santhoff wrote: > > On Do, 2016-05-19 at 13:10 +0200, Torsten Bonde Christiansen wrote: > > > >> * GOLD Parser: http://www.goldparser.org/ > > >> * COCO/R: http://www.ssw.uni-linz.ac.at/Resea

Re: [fpc-pascal] Parser Generator

2016-05-19 Thread Marc Santhoff
On Do, 2016-05-19 at 13:10 +0200, Torsten Bonde Christiansen wrote: > * GOLD Parser: http://www.goldparser.org/ > Was last updated in sept. 2012 and the lastest pascal implementation is > not for the lastest version of the program! > > * COCO/R: http://www.ssw.uni-linz.ac.at/Research/Projects/Co

Re: [fpc-pascal] Mangle name in fpc-FreeBSD ?

2016-03-20 Thread Marc Santhoff
That's totally OK, but the unit dynlibs is written for platform independence and I'd like to be able to use it on FreeBSD and at least Windows without having much $ifdefs and the like. Have fun, Marc -- Marc Santhoff ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Mangle name in fpc-FreeBSD ?

2016-03-20 Thread Marc Santhoff
On So, 2016-03-20 at 15:10 +0100, Marc Santhoff wrote: > On So, 2016-03-20 at 14:27 +0100, Ewald wrote: > > > Could this be related to pointer trucation? The man page of dlopen tells > > us that the return value is a pointer (hence the return value of > > LoadLibrary has

Re: [fpc-pascal] Mangle name in fpc-FreeBSD ?

2016-03-20 Thread Marc Santhoff
dLibrary > ./pointersize pointersize: 8 size of integer: 2 marc@puma:/home/marc/program/Test_fpc/LoadLibrary > cat pointersize.pas program pointersize; uses sysutils; begin writeln('pointersize: ' + inttostr(sizeof(pointer))); writeln('size of integer: ' + i

Re: [fpc-pascal] Mangle name in fpc-FreeBSD ?

2016-03-20 Thread Marc Santhoff
to find out. > Many, many thanks to Marc, Marco, Ewald and Sven. You're welcome, thanks for reporting and testing. -- Marc Santhoff ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Mangle name in fpc-FreeBSD ?

2016-03-20 Thread Marc Santhoff
;); > > if ap1 <> nil then > writeln('getprocedureaddress() is OK') else > writeln('getprocedureaddress() is NOT OK') ; Looking at dynlibs.pas you can use Function GetLoadErrorStr: string; here. Or simply dlerror() like in the other program, should work. > end; > > --> result: > > loadlibrary() is OK > getprocedureaddress() is NOT OK > > > > Conclusion: Maybe getprocedureaddress() has problems. -- Marc Santhoff ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Mangle name in fpc-FreeBSD ?

2016-03-19 Thread Marc Santhoff
would be helpful to see the code fragments in question. The declaration of the external functions if any and the code calling LoadLibrary() and GetProcAddress(). -- Marc Santhoff ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://list

Re: [fpc-pascal] Mangle name in fpc-FreeBSD ?

2016-03-19 Thread Marc Santhoff
. All the same. ;) Only that one differs: marc@puma:/home/marc > clang -v FreeBSD clang version 3.0 (tags/RELEASE_30/final 145349) 20111210 Target: x86_64-unknown-freebsd9.0 Thread model: posix You can try looking at the manual pages, type in "man cc" and the other names. -- Ma

Re: [fpc-pascal] Mangle name in fpc-FreeBSD ?

2016-03-19 Thread Marc Santhoff
ces in the systems dlopen() and another similar variant installed by libtool, found in libbtdl regarding to my notes. Dunno if it matters. Libtools implementation does differentiate between OSs by itself (at compile time). Cold be a source of confusion... -- Marc Santhoff

  1   2   3   4   5   6   >