Re: [fpc-pascal] Function for checking correct file name

2012-09-20 Thread Peter
On 12/09/12 19:51, Krzysztof wrote: Hi, Exists any multiplatform function which check if string contains not allowed characters (like< > / \ on windows) for filename? Regards ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.f

Re: [fpc-pascal] Range check error while evaluating constants

2012-10-30 Thread Peter
On 30/10/12 14:26, ik wrote: Hello, I have the following function: function OneToTwoComplement(AValue: QWord): QWord; begin Result := (AValue xor $) + 1; end; What am I missing here that makes the compiler complain about "Range check error while evaluating constants" ? Why d

Re: [fpc-pascal] Complex circular references

2012-11-22 Thread Peter
hat for unit dependences. (I was hoping for a full class heirachy diagram). http://pasdoc.sipsolutions.net/ Regards, Peter On 22/11/12 15:18, denisgolovan wrote: Hi all Now and again, I am trying to debug complex circular references. By complex circular references I mean those which are

Re: [fpc-pascal] Int64 is not an ordinal...

2013-01-10 Thread Peter
efsu5.html#x27-260003.1.1 "Please note that the *qword and int64 types are not true ordinals*, so some Pascal constructs will not work with these two integer types." {/sic/} Regards, Peter ___ fpc-pascal maillist - fpc-pascal@lists

Re: [fpc-pascal] newbie question: using fpc in linux

2013-04-08 Thread Peter
eepascal.org/mailman/listinfo/fpc-pascal I would recommend geany http://www.geany.org/ First class tool with native support for pascal. Peter ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] GUI confusion

2013-09-30 Thread Peter
HI, You might like Geany. http://www.geany.org/Main/About Peter ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Sets

2013-10-02 Thread Peter
Perhaps you need the {$PACKENUM n} compiler directive for the enumerated type? On 02/10/13 18:09, Juha Manninen wrote: > If I have have a set with < 9 elements, like : > > type > TMyEnum = ( > xOne, > xTwo, > xThree, > xFour, > xFive > ); > // Count <= 8, fits in one Byt

Re: [fpc-pascal] Installing FPC 2.4.4 for Ubuntu / Mint + other thoughts

2011-06-15 Thread Peter
"Am I really supposed to download those ~40 packages separately" Usually, in situations like this, one just installs a meta package with a package manager. The meta package is just a list of required dependencies, and downloads other packages as needed. I installed this one. http://packages.

Re: RE : RE : [fpc-pascal] Installing FPC 2.4.4 for Ubuntu / Mint +otherthoughts

2011-06-15 Thread Peter
If folks prefer to stick with ftp://ftp.hu.freepascal.org/pub/fpc/dist/2.4.4/i386-linux/deb/ then fpc_2.4.4-0_all.deb is probably the [single meta]package to install. A readme file in the folder clearly explaining that would be helpful. On 15/06/11 22:08, Ludo Brands wrote: Adding debian unsta

Re: RE : RE : RE : [fpc-pascal] Installing FPC 2.4.4 for Ubuntu / Mint+otherthoughts

2011-06-17 Thread Peter
If you look carefully, you'll see the 64-bit 2.4.4 .deb releases are not even generated. {in ftp.hu.freepascal.org} Good point. In addition to the Debian packages I mentioned earlier there is a complete single file tar-ball here for x86_64 http://www.archlinux.org/packages/community/x86

Re: RE : RE : RE : [fpc-pascal] Installing FPC 2.4.4 for Ubuntu / Mint+otherthoughts

2011-06-18 Thread Peter
The RPM and deb's are generated if there is enough interest Looking at http://www.freepascal.org/down/x86_64/linux-ftp.freepascal.org.var the rpm is already there. Ubuntu/MInt users should have the 'alien' tool in their repositories which can easily create a usable .deb file from a .rpm

[fpc-pascal] Efficiency of generated code [x86_64]

2011-06-24 Thread Peter
e minimal) xmm code from Pascal without dropping into assembler. Are there any other compiler switches that would help? Peter ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Free Pascal 2.6.0rc1 released

2011-11-07 Thread Peter
HI, Does this release include intrinsic ROL & ROR? 'Bug' 6300 is shown as fixed, but I can find no mention in the new features list. http://bugs.freepascal.org/view.php?id=6300 On 05/11/11 23:27, Marco van de Voort wrote: Hello, We have placed the first release-candidate of the Free Pas

Re: [fpc-pascal] Why is Random(255) some 529x slower compared to Delphi 7?

2011-12-07 Thread Peter
Graeme, I would recommend using Marsaglia's XORShift. Blisteringly fast, high quality statistically, and very easy to implement. http://en.wikipedia.org/wiki/Xorshift Regards, Peter On 07/12/11 13:10, Graeme Geldenhuys wrote: On 7 December 2011 14:54, Jonas Maebe wrote: T

Re: [fpc-pascal] Why is Random(255) some 529x slower compared to Delphi 7?

2011-12-07 Thread Peter
I have noticed the following code in Tstrings, in the quicksort; " Pivot := L + Random(R - L); // they say random is best " On 07/12/11 13:10, Graeme Geldenhuys wrote: On 7 December 2011 14:54, Jonas Maebe wrote: That's correct. We use the mersenne twister, Delphi probably a linear cong

Re: RE : [fpc-pascal] Easy way to install FPC 2.6.x on Mint Linux?

2012-02-20 Thread Peter
On 20/02/12 11:49, Juha Manninen wrote: 2012/2/20, Ludo Brands: Grab it from the debian sid repository. How? Juha ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal Sta

Re: [fpc-pascal] CRTI.O and CRTN.O not found

2015-04-14 Thread Peter
On 05/04/15 20:57, Anthony Walter wrote: > A user on my forums sent me this message. I've experienced the problem > as wee for quite some time. I was wondering if anyone has a universal > fix for it yet since it seems to happen so frequently to many people? > > From Artie: > > I just installed Laza

Re: [fpc-pascal] CRTI.O and CRTN.O not found

2015-04-17 Thread Peter
On 15/04/15 05:39, Anthony Walter wrote: > Peter: I always install the build-essentials package whenever I setup > a debian system, yet I occasionally get both -crti.o not found and > -crtn.o not found > > Bart: That first google result you linked relates to mavericks a

Re: [fpc-pascal] CRTI.O and CRTN.O not found

2015-04-17 Thread Peter
On 17/04/15 16:45, Peter wrote: > On 15/04/15 05:39, Anthony Walter wrote: >> Peter: I always install the build-essentials package whenever I setup >> a debian system, yet I occasionally get both -crti.o not found and >> -crtn.o not found >> >> Bart: That first go

Re: [fpc-pascal] Truncate procedure unable to work under Linux, is this a bug?

2015-05-20 Thread Peter
t; > Michael. > > > ___ > fpc-pascal maillist - fpc-pascal@lists.freepascal.org > http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal Hi, It should work if Truncate64 is used instead of Truncate. I suggest its a bug, albeit probably a wishlist one. http://man7.org/linux/man-pages/man2/ftruncate.2.html Regards, Peter ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Truncate procedure unable to work under Linux, is this a bug?

2015-05-20 Thread Peter
On 20/05/15 16:36, Marco van de Voort wrote: > In our previous episode, Peter said: > >> It should work if Truncate64 is used instead of Truncate. >> I suggest its a bug, albeit probably a wishlist one. >> >> http://man7.org/linux/man-pages/man2/ftruncate.2.html >

[fpc-pascal] Warning: Type size mismatch, possible loss of data / range check error

2015-06-18 Thread Peter
ler is silent, Is this a bug? Surely, the above A:=0; is valid Pascal isn’t it? Regards, Peter ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Warning: Type size mismatch, possible loss of data / range check error

2015-06-18 Thread Peter
On 18/06/15 16:53, Jonas Maebe wrote: > On 18/06/15 17:37, Peter wrote: > >> The problem occurs with BOTH switches -Cr & -CO >> Any one of these, and the compiler is silent, > -CO is a switch that is barely used and that is tested even less, > unfortunately (no exte

Re: [fpc-pascal] For .. in .. loops with sets and valued enums

2015-06-19 Thread Peter
On 19/06/15 08:46, Torsten Bonde Christiansen wrote: > program Project1; > > type > TMyEnum = ( > a = 1, > b = 3, > c = 5 > ); > TMySet = set of TMyEnum; > var > Item: TMyEnum; > > begin > for Item in TMySet do > Writeln('Value = ', Integer(Item)); > end. My guess is that

Re: [fpc-pascal] Floor, Ceil and Int64

2015-07-01 Thread Peter
Bart, Agree it would be nice to have a wider range for Floor & Ceil. I would suggest raising a bug report for this. Its not been fixed in trunk (as of this post). Regards, Peter ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://

Re: [fpc-pascal] which GUI (noob)

2015-08-04 Thread Peter
has a following, but last time I looked, there wasn’t much documentation to help get started with it. Peter ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] which GUI (noob)

2015-08-04 Thread Peter
On 04/08/15 20:28, Juha Manninen wrote: > when QT4 is removed, Lazarus LCL will already support > QT5 bindings. Alpha version of the bindings already exist. Well, thats good news then. I couldn't find any mention of QT5 in the wiki. Peter.

Re: [fpc-pascal] which GUI (noob)

2015-08-06 Thread Peter
On 04/08/15 16:20, Graeme Geldenhuys wrote: > On 2015-08-04 16:11, Peter wrote: >> I have not used Lazarus for a while, but I think you can use it as an >> IDE, while using fpGUI as a component set. Perhaps someone can confirm? > > I believe I answered that in an earli

Re: [fpc-pascal] alignment of records

2015-08-07 Thread Peter
include style directives, unless the headers are copied to the current folder and the <> removed. Peter ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] alignment of records

2015-08-07 Thread Peter
On 07/08/15 12:58, Peter wrote: > However, I can't get it to pass Should have been "get it to parse" of course. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] quality of FPC random

2015-08-17 Thread Peter
On 17/08/15 09:05, Michael Schnell wrote: > Unfortunately "Randomize" (in Linux in "System") just does > randseed:=longint(Fptime(nil)); > > if it would use /dev/urandom, > Perhaps that is worthy of a bug report? ___ fpc-pascal maillist - fpc-pa

Re: [fpc-pascal] shift right operation with variables

2015-08-17 Thread Peter
I was going to comment that the 'bitmask example doesn't work, which it didn’t, but looks like its been recently fixed by adding the needed QWord cast on the '1's. http://wiki.freepascal.org/Bit_manipulation Qwords are certainly trickier to use the Dwords. _

Re: [fpc-pascal] quality of FPC random

2015-08-20 Thread Peter
http://www.2uo.de/myths-about-urandom/ ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] fpc svn development version fails to build from source

2015-08-24 Thread Peter
On 07/08/15 13:41, Roderick Johnstone wrote: > Hi > > I'm trying to build the fpc svn development version on Red Hat > > FATAL: cannot open file /usr/lib/fpc/lexyacc/yyparse.cod > > > so it seems to be looking in the wrong place for yyparse.cod, or > yyparse.cod is not installed correct

Re: [fpc-pascal] Linking failed on RaspberryPi

2015-09-14 Thread Peter
, or some other combination of 'libc' and 'dev'. Please post the solution if/when you find it for the benefit of others. This same question seems to keep poping up on this list. Regards, Peter ___ fpc-pascal maillist - f

Re: [fpc-pascal] Linking failed on RaspberryPi

2015-09-15 Thread Peter
On 14/09/15 21:09, Mark Morgan Lloyd wrote: > Peter wrote: >> On 04/09/15 02:15, Xiangrong Fang wrote: >>> . >>> Is there anything missing from my FPC installation? >>> TIA for any hint. >> >> To build FPC programs on linux one generally needs a

Re: [fpc-pascal] Linking failed on RaspberryPi

2015-09-15 Thread Peter
It would be useful to see the output of these two commands grep Fl /etc/fpc.cfg ls /usr/lib/**/crti.o Jonas knows a lot more about FPC than I do! Regards, PB ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-b

Re: [fpc-pascal] Sound procedure does not work

2015-09-15 Thread Peter
On 15/09/15 11:25, Graeme Geldenhuys wrote: > . > the default -Mfpc (what I consider outdated > language mode). > > > Regards, > - Graeme - > Finding maxint at 32767 (64bit compiler) with that mode can be a bit of a shock too! Regards, PB ___

Re: [fpc-pascal] Sound procedure does not work

2015-09-15 Thread Peter
On 15/09/15 18:34, Fred van Stappen wrote: > > What sound procedure is unable to work ? > > Thanks. > > Fre;D > I guess he means Procedure Sound in rtl/unix/crt.pp This does not work for me either, just get the "sound of silence". Procedure Sound(Hz: Word); begin {$ifdef havekiocsound} if

Re: [fpc-pascal] Sound procedure does not work

2015-09-15 Thread Peter
On 15/09/15 22:14, Graeme Geldenhuys wrote: > On 2015-09-15 20:59, Peter wrote: >> I guess he means Procedure Sound in rtl/unix/crt.pp >> This does not work for me either, just get the "sound of silence". > > > That is a know problem for many years. Here is a

Re: [fpc-pascal] Linking failed on RaspberryPi

2015-09-18 Thread Peter
On 16/09/15 02:28, Xiangrong Fang wrote: > Hi Peter, > > xrfang@pi ~ $ ls /usr/lib/**/crti.o > /usr/lib/arm-linux-gnueabihf/crti.o > > Thanks! Then you could try compiling your program with the switch -Fl /usr/lib/arm-linux-gnueabihf {Note its a lower case l not an upper c

Re: [fpc-pascal] default value of a sub range field produces No range Check error

2015-10-16 Thread Peter
Shows the same issue. Takes default value of zero; no range check on the first writeln. Regards, Peter ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Beautifier for freepascal

2015-12-01 Thread Peter
In addition to ptop and JCL already mentioned, there is the closed source DelForEx.zip intended for use with Delphi. There are standaline versions of it that run under wine on 'nix. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists

Re: [fpc-pascal] Do I need to make fpc 3.0.0 twice?

2016-01-12 Thread Peter
__ > fpc-pascal maillist - fpc-pascal@lists.freepascal.org > http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal > But what about optimising the RTL to -O4? I did a separate pass to build the RTL with -O4 which 2.64 does not support. I found it makes a us

Re: [fpc-pascal] Do I need to make fpc 3.0.0 twice?

2016-01-13 Thread Peter
On 13/01/16 07:33, Marco van de Voort wrote: > In our previous episode, Sven Barth said: >> There is a variant of the OPT parameter that applies options only for the >> last compilation. This way you can use options that the compiling compiler >> does not yet support. Now if I'd only remember that.

Re: [fpc-pascal] Pascal Lexical Diagrams

2016-02-01 Thread Peter
On 30/01/16 09:45, Anthony Walter wrote: > I've been working on writing Javascript to generate lexical language > diagrams Would this be of any interest? (Rather than reinvent the wheel.) http://www.bottlecaps.de/rr/ui Peter ___ fpc-pasc

Re: [fpc-pascal] PDF generator

2016-03-18 Thread Peter
On 05/03/16 17:27, Michael Van Canneyt wrote: > Hi, > > I have committed a PDF generator to FPC Subversion: fcl-pdf. > Hi Michael, What's the input format? html? Peter ___ fpc-pascal maillist - fpc-pascal@lists.fr

Re: [fpc-pascal] Class vs Object type

2016-04-06 Thread Peter
es stack space! This might be fixable by directing the process to use the alternate stack for signal handling. The error message would hopefully then be more meaningful. Regards, Peter ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] FPC can't determine overloaded function to call

2016-04-28 Thread Peter
On 28/04/16 14:02, Graeme Geldenhuys wrote: > Hi, > > I can't figure out why FPC is struggling with figuring out which > overloaded methods to call. This is my application code which FPC has a > problem with. > > type > TPDFFloat = Single; > > TPDFCoord = record > X,Y: TPDFFloat; > end

[fpc-pascal] 3.0.2-rc1

2016-12-15 Thread Peter
Hi, I notice an ftp folder for 3.0.2-rc1 has appeared, dated 10-Dec, but I cannot access the folder ftp://ftp.freepascal.org/pub/fpc/beta/3.0.2-rc1/ I get error "550 Failed to change directory." Is this folder still under construction, or is something wrong in the permissions? Che

Re: [fpc-pascal] FreePascal Windows - Force files to write to disk

2017-02-22 Thread Peter
On 21/02/17 21:12, James Richters wrote: > My understanding was the Close(file); would save the file all the way to > disk and flush any buffers that were holding it, I would try adding a Flush(File) before the Close, even though that should not really be needed. ___

Re: [fpc-pascal] 32-bit random numbers

2017-04-21 Thread Peter
o use random to a int64, and mask out the upper bits. You could also write an XORShift generator if you are prepared to forgo the presence of zero in the sequence. Peter. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepa

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

2017-05-03 Thread Peter
On 03/05/17 00:53, Marc Santhoff wrote: > 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-pa

Re: [fpc-pascal] for loops performance problems?

2017-07-04 Thread Peter
I usually start performance investigations by compiling with '-al', and looking at the generated assembler. Regards, Peter P.S. From what we know so far, inclined to agree with Charlie. ___ fpc-pascal maillist - fpc-pascal@lists.freepasca

[fpc-pascal] strutils (RTL) content missing from fp-docs in Debian package

2017-07-21 Thread Peter
Hi, Since fpc version 3.0 (2.6.4 was OK) the Debian docs package has no content for strutils. Does anyone have any thoughts on what the cause might be? Regards, Peter B https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=858797 ___ fpc-pascal

Re: [fpc-pascal] Freepascal Floating Point Issue

2017-08-22 Thread Peter
Hi James, Its unlikely that 999.999 has an EXACT representation in floating point. 999.999002 maybe the closest value at your chosen precision. Extended type has more precision, but still probably won't be exact. Regards, Peter B __

Re: [fpc-pascal] Freepascal Floating Point Issue

2017-08-24 Thread Peter
FPC has a header for the GMP library. Regards, Peter B ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Blowfish encryption: What I´m doing wrong?

2018-04-25 Thread Peter
returned by the method Encrypt, it raise an exception 203 on line > after {6}  > I don´t know how to debug this. > > -- > /Timeo hominem unius libri/ > > []s > Guionardo Furlan > http://www.guionardofurlan.com.br > > > ___ > fpc-pascal

[fpc-pascal] Some general questions - I've been away from fpc for a while

2013-06-05 Thread Peter Brooks
I've been away from fpc for a while, but I'm thinking of using it because the simulation project that I'm working on looks as if it is well suited to it. I've looked at python, but the threading doesn't work. I've looked at Ada, which would be an excellent solution, but I don't really need it to be

Re: [fpc-pascal] Re: Some general questions - I've been away from fpc for a while

2013-06-05 Thread Peter Brooks
Thank you both very much for those helpful suggestions! ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

[fpc-pascal] IPC - Persistent Objects - Triplestore

2013-08-29 Thread Peter Brooks
s starts to run. Any suggestions gratefully received! Regards, Peter ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] reading PPU files

2008-06-25 Thread Peter Vreman
er and ppudump has become too much dependent on other units of the compiler that i don't think it is recommended to be used by other projects. The current dependencies are below: Compiling ppudump.pp Compiling /home/peter/fpc/compiler/constexp.pas Compiling /home/peter/fpc/compiler/ppu.pas Comp

Re: [fpc-pascal] reading PPU files

2008-06-25 Thread Peter Vreman
Peter Vreman wrote: Florian Klaempfl wrote: Mattias Gaertner schrieb: On Tue, 24 Jun 2008 23:14:34 +0200 Florian Klaempfl <[EMAIL PROTECTED]> wrote: Mattias Gaertner schrieb: I want to read ppu files like the ppudump tool. ppudump uses the unit compiler/ppu.pp, but ppu.ppu is not ins

Re: [fpc-pascal] Printing of Pointer Type

2008-07-17 Thread Peter Vreman
>> Because there are easy ways around it (as you mention) and the work to >> implement and maintain this would probably outweigh the usefulness. >> > Yes, it's easy but uncomfortable and needs more typing. You can use hexstr() to convert the pointer to a hexadeciaml number: var p: pointer; begin

Re: [fpc-pascal] excluding files or dirs from fpcmake packaging

2008-07-20 Thread Peter Vreman
of the reasons why fpmake/fppkg will be introduced in the future. Peter ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Getting fast output

2008-07-20 Thread Peter Vreman
> > Is there any way so that Write(Ln) doesn't flush the buffer after each call > (as if it's called to write to a file, I knew it from rtl's file handling > source), but only when Flush is called? I found some maniac's code that does > it at assembler level, but of course it's platform dependant (

Re: [fpc-pascal] Internal error 200502052

2008-07-22 Thread Peter Vreman
jordi wrote: I get this error when I try to compile the compiler: sysos.inc(97,3) Fatal: Internal error 200502052 My OS: linux x86_64, any help will be welcome There is an problem with code generation. Please submit a bug with the steps how we can reproduce the issue. Peter

Re: [fpc-pascal] Manual smartlinking

2008-08-19 Thread Peter Vreman
libp*.a files instead. You need to link with the libp*.a instead of the *.o files. It can't be written down what is required for your program to link manual. But you can compile with -s to generate a link.res and ppas.sh to see the commands that

Re: [fpc-pascal] Debugger interaction in FP IDE and Lazarus

2008-09-02 Thread Peter Vreman
se some Lazarus code has been around for a couple of years. But it is not an easy task after a couple of quick investigations. That is also the reason why it has not been started yet. You are welcome to implement such an interface and remove the libgdb dependency. Peter __

Re: [fpc-pascal] fpmake dependencies

2009-04-14 Thread Peter Vreman
ion > mode) > but the rest was added manually. > > I realize that for the LCL, this will be a rather largish job :-) Most packages ppudump output with a sed script was used to create the initial list. The cleanup and adjustments for multiple platforms was done manually. Peter __

Re: [fpc-pascal] fpmake: output directories

2009-06-02 Thread Peter Vreman
. What is the best/recommended way to solve this with fpmake? You can't in this way. So, no debug and release version on one computer? Not in this way, at least. Hi, Peter Vreman reminded me that we had this discussion on core about a year ago. The solution we came up with was a 'sub

Re: [fpc-pascal] fpmake: output directories

2009-06-06 Thread Peter Vreman
dir/components/ To find additional packages there. If root installs some packages for all users and I want to add some extra packages. Can fppkg handle this? Yes. It supports a Global and a Local directory. The local directory has a higher preference. Peter

Re: [fpc-pascal] Re: [fpc-devel] cpu

2009-11-25 Thread Peter Beisel
ation) I had to define the calling convention behind every assembly routine (eg: function getPITValue( var val: int64): bool32; assembler; oldfpccall;) Now I hope this will help with graphix too. regards Peter Jonas Maebe schrieb: On 25 Nov 2009, at 11:46, Schatzl Thomas wrote: Hi, is th

[fpc-pascal] Libnodave on linux

2011-02-04 Thread Peter Andersen
Hello Is there anybody who has compilled the libnodave testprogram "TestISO_TCP.PAS" under linux. If yes could you tell what version of fpc and what options etc. you have used to it. I have try with version 2.4.2 but got somthing like this: [peter@Dell hmi]$ fpc testISO_TCP.pas F

Re: [fpc-pascal] Libnodave on linux

2011-02-04 Thread Peter Andersen
Den 04-02-2011 20:44, Jeppe Johansen skrev: Try to do a fpc -k-lc testISO_TCP.pas That should instruct the linker to link libc too Thanks That was the way to do it. -- / Peter Andersen / Skanderborg / Danmark ___ fpc-pascal maillist - fpc-pascal

Re: [fpc-pascal] Libnodave on linux

2011-02-04 Thread Peter Andersen
pascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal Please could you explain it a little bit more. I am new to this. I have programmet in Dos and on windows for years. But with linux using shared lib i am total new. -- / Peter Andersen / Skande

Re: [fpc-pascal] Libnodave on linux

2011-02-04 Thread Peter Andersen
Den 04-02-2011 21:27, Jonas Maebe skrev: On 04 Feb 2011, at 21:24, Peter Andersen wrote: That's a very bad way to link libc, because afaik it bypasses all compiler detections for the fact that you are linking to that library (and doing so requires using different startup

Re: [fpc-pascal] Libnodave on linux

2011-02-04 Thread Peter Andersen
little to much for now. By the way is there a english version of it. -- / Peter Andersen / Skanderborg / Danmark ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] for..in loops?

2005-11-22 Thread Peter Vreman
class(TComponent) private class FClassVar: integer; FFieldVar: integer; end; FClassVar:integer;static; And compile with -St Peter ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] FreePascal 2.0.2 available

2005-12-12 Thread Peter Vreman
> Congratulations, > > with fpc 2.0.2 it's the first time, we were able to compile and run our > dbGonzales database server (complete delphi code). In earlier versions > of fpc, we always had some problems (mostly with variants), which caused > runtime crashes. > First tests show that the execution

Re: [fpc-pascal] AnsiStrings and Memory Management

2005-12-14 Thread Peter Vreman
> >>(astonishing that ShortStrings are slower than AnsiStrings in this >> example > in delphi). > > Not really. Delphi is silently upcasting your shortstrings to AnsiStrings > in > the background. You would probably have to recompile the VCL to get around > this ;-) I've commited a few small fixe

Re: [fpc-pascal] FreePascal 2.0.2 available

2005-12-15 Thread Peter Vreman
> Florian Klaempfl wrote: >> Hi, >> >> FPC 2.0.2 is finally available for various platforms. 2.0.2 is mainly a >> bug fix release to 2.0.0 though also some little features were added. >> >> Get FPC 2.0.2 from http://www.freepascal.org/download.html or read the >> whatsnew.txt here: ftp://ftp.freepa

Re: [fpc-pascal] AnsiStrings and Memory Management

2005-12-16 Thread Peter Vreman
> Peter Vreman wrote: > >>>>(astonishing that ShortStrings are slower than AnsiStrings in this >>>>example >>> >>>in delphi). >>> >>>Not really. Delphi is silently upcasting your shortstrings to >>> AnsiStrings &

Re: [fpc-pascal] astring.pas

2005-12-17 Thread Peter Vreman
> Darwin 2.1.1 today > astrings.inc(88,1) Fatal: Syntax error, "BEGIN" expected but "shl" found > astrings.inc(88,1) Fatal: Compilation aborted That is a svn conflict ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.or

Re: [fpc-pascal] fpc 2.0.0 x86_64 and assembler

2005-12-17 Thread Peter Vreman
> i tried to compile the bigint13 Unit from Franco Milani but got the > following error: > > bigint13.pas(48,2) Error: Illegal assembler style specified "INTEL" > bigint13.pas(426,1) Fatal: There were 1 errors compiling module, stopping > bigint13.pas(426,1) Error: Compilation aborted > > The assem

Re: [fpc-pascal] First Test of FastMM4 for fpc

2005-12-18 Thread Peter Vreman
> Hi, > > I have changed the FastMM4 that it seemd to work with fpc now. Here are > the results of my prior tests now with FastMM4 for fpc: > > Test1: > fpc (standard MM): 3.1 sec - factor = 1.34 > fpc (FastMM4): 3.0 sec - factor = 1.30 > delphi (standard MM): 3.1 sec - factor = 1.34 > de

Re: [fpc-pascal] First Test of FastMM4 for fpc

2005-12-18 Thread Peter Vreman
> Hi, > > I have changed the FastMM4 that it seemd to work with fpc now. Here are > the results of my prior tests now with FastMM4 for fpc: > > Test1: > fpc (standard MM): 3.1 sec - factor = 1.34 > fpc (FastMM4): 3.0 sec - factor = 1.30 > delphi (standard MM): 3.1 sec - factor = 1.34 > de

Re: [fpc-pascal] FastMM4 for fpc

2005-12-18 Thread Peter Vreman
> I tried to modify the FastMM4 to work with with fpc. > I had no big problems for the non-assembly language version, but with > the assembly language version i have the problem, that fpc is allways > generating a stack frame, even if i use the {$STACKFRAMES OFF} directive. > > Is it not possible a

Re: [fpc-pascal] First Test of FastMM4 for fpc

2005-12-18 Thread Peter Vreman
>> I compiled fpc from the sources from the svn repository today, but the >> results are almost the same as I posted yesterday (I marked with ** >> where the results have changed): >> >> Test1: >> ** fpc (standard MM): 3.0 sec - factor = 1.30 >> fpc (FastMM4): 2.9 sec - factor = 1.30 >> delphi (s

Re: [fpc-pascal] fpc 2.0.0 x86_64 and assembler

2005-12-18 Thread Peter Vreman
>>Intel mode isn't supported yet on x86_64 > When do you expect it to be? It is not planned. Unless a user supplies the required patches for the compiler there will not be an intel like asmmode for amd64 anytime soon. ___ fpc-pascal maillist - fpc-p

[fpc-pascal] Strange!!

2006-01-09 Thread Peter Rosendahl
ing[2]. please can anyone explain this to and possible find a solution Regards Peter Rosendahl ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Strange!!

2006-01-09 Thread Peter Rosendahl
Thank you for your quick answer, how do I get the new version? Is the 2.0.2 available at this point the FIXED version, or do I have to recompile from some unstable source ? /Peter JM> On 9 jan 2006, at 17:03, Peter Rosendahl wrote: >> With the EXACT same code compiled with

Re: [fpc-pascal] method pointers

2006-01-16 Thread Peter Vreman
> FPC can´t assign value to address, where Delphi can. For example: > > TDomNode = class(TDomCustomNode); > private > ... > FUserData : TUtilsWideStringList; > FUserDataHandlers : TList; > ... > > destructor TDomNode.Destroy; > var > I: Integer; > UserDataEvent: TDomUs

Re: [fpc-pascal] Constants

2006-01-18 Thread Peter Vreman
>> It's not the keyword that is the problem. The whole logic for this would >> have to be implemented. Think switches, commands to the linker, a way >> to >> configure the name for the segment etc. Part of this is specific for >> your >> device setup. >> >> If writable const is off, also variables

Re: [fpc-pascal] Smartlinking

2006-01-26 Thread Peter Vreman
> I have built a Windows cross compiler for ARM It is working fine > without smartlinking. When I activate smartlinking I get this error: > > Free Pascal Compiler version 2.0.2 [2005/12/16] for arm > > Assembling arm2138reg > Assembling with smartlinking arm2138reg > /cygdrive/l/ARMBIN/AR: arm2138r

Re: [fpc-pascal] Internal error 200312122

2006-02-05 Thread Peter Vreman
> Martin Schreiber schreef: >> On Sunday 05 February 2006 17.11, Koenraad Lelong wrote: >> >>>Just tried it, doesn't work :-(. Compiling with ppc386 for i386-linux >>>works fine, compiling with ppcrossarm for arm-linux gives the error. >>>Could this be a processor specific error ? >> >> >> compiler

Re: [fpc-pascal] Internal error 200312122

2006-02-20 Thread Peter Vreman
> #2 0x0809a6db in TCGARM__A_OP_CONST_REG_REG_CHECKOVERFLOW > (LIST=0x411f3f34, OP=OP_SUB, SIZE=OS_32, A=373, SRC=16777216, > DST=16777216, SETFLAGS=false, OVLOC= > {LOC = LOC_VOID, SIZE = 166, RESFLAGS = 186, VALUE = 134759354, > VALUE64 = 4713231088527885242, REFERENCE = {OFFSET = 13475

Re: [fpc-pascal] How to run FPC 2.x on QNX

2006-02-20 Thread Peter Vreman
> Hi, > > we are developing a console application under Delphi. The main task is > to use it under Windows. But there are some situations where we need > to run it under the realtime OS QNX. This is the reason why we use FPC > 1.0.x. But it lacks some interesting features like dynamic arrays. > > I

Re: [fpc-pascal] problem compiling svn-fpc for arm-linux

2006-03-13 Thread Peter Vreman
> More specific, the error-lines point to the @object construct. > Is there any way I can avoid these errors ? > I used revision 2898 of fpc. My arm-linux-as is version 2.14. Use the latest binutils 2.16.1 ___ fpc-pascal maillist - fpc-pascal@lists.

Re: [fpc-pascal] problem compiling svn-fpc for arm-linux

2006-03-19 Thread Peter Vreman
> system_arm_linux) then ... else ..." Jonas Thanks, Enclosed you will find a diff that allows me to get past that error, but I have another one. Actually two, this morning I had an 'internal error', but I (stupidly) did another s

  1   2   3   4   5   6   >