Re: [fpc-pascal] Can I define a custom "simple" type for my applications?

2009-04-06 Thread Jonas Maebe
On 06 Apr 2009, at 22:08, Marco van de Voort wrote: Oops I apparantly looked at outdated docs (on scenergy): http://www.freepascal.org/docs-html/prog/progsu59.html#x66-640001.1.59 That documentation is not really complete. The supported settings are: * FIXED, DEFAULT, NORMAL: the default beh

Re: [fpc-pascal] Can I define a custom "simple" type for my applications?

2009-04-06 Thread dmitry boyarintsev
> Oops I apparantly looked at outdated docs (on scenergy): > > http://www.freepascal.org/docs-html/prog/progsu59.html#x66-640001.1.59 Thanks so much! ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo

Re: [fpc-pascal] Can I define a custom "simple" type for my applications?

2009-04-06 Thread Marco van de Voort
In our previous episode, dmitry boyarintsev said: > > No, not that I know. > sets are always 32-bit size? Oops I apparantly looked at outdated docs (on scenergy): http://www.freepascal.org/docs-html/prog/progsu59.html#x66-640001.1.59 ___ fpc-pascal ma

Re: [fpc-pascal] Can I define a custom "simple" type for my applications?

2009-04-06 Thread dmitry boyarintsev
> No, not that I know. sets are always 32-bit size? ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Can I define a custom "simple" type for my applications?

2009-04-06 Thread Marco van de Voort
In our previous episode, dmitry boyarintsev said: > > Have a look at $packenum btw if you go that way. > what's the reason? i guess it's not to be used for streaming operation. Well, you never know. Shared memory is another possibility btw. > btw, is there $packsets? (for sets aligment?) No, not

Re: [fpc-pascal] Can I define a custom "simple" type for my applications?

2009-04-06 Thread dmitry boyarintsev
> Have a look at $packenum btw if you go that way. what's the reason? i guess it's not to be used for streaming operation. btw, is there $packsets? (for sets aligment?) thanks, dmitry ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://li

Re: [fpc-pascal] Can I define a custom "simple" type for my applications?

2009-04-06 Thread Marco van de Voort
In our previous episode, Graeme Geldenhuys said: > > > > TGraemeBoolean = (gbNull = -1, gbFalse = 0, gbTrue =1); > > > > function dbBool(g: TGrameBoolean): Boolean; inline; > > function dbAssigned(gTGrameBoolean): Boolean; inline; > > Dope! Now why didn't I think of that. :-) Thank you very much!

Re: [fpc-pascal] LTR or RTL info from users locale settings?

2009-04-06 Thread ik
On Mon, Apr 6, 2009 at 9:15 PM, Graeme Geldenhuys wrote: > On Mon, Apr 6, 2009 at 7:30 PM, ik wrote: > > No, you can not know by the "normal" locale. You must check to see what > is > > the type of locale: > > 1. Hebrew > > 2. Many forms of Arabic (you have more then 6 if I remember correctly) >

Re: [fpc-pascal] Can I define a custom "simple" type for my applications?

2009-04-06 Thread Graeme Geldenhuys
On Mon, Apr 6, 2009 at 7:33 PM, dmitry boyarintsev wrote: > > TGraemeBoolean = (gbNull = -1, gbFalse = 0, gbTrue =1); > > function dbBool(g: TGrameBoolean): Boolean; inline; > function dbAssigned(gTGrameBoolean): Boolean; inline; Dope! Now why didn't I think of that. :-) Thank you very much! Re

Re: [fpc-pascal] LTR or RTL info from users locale settings?

2009-04-06 Thread Graeme Geldenhuys
On Mon, Apr 6, 2009 at 7:30 PM, ik wrote: > No, you can not know by the "normal" locale. You must check to see what is > the type of locale: > 1. Hebrew > 2. Many forms of Arabic (you have more then 6 if I remember correctly) > > That's the only way I know to detect if the locale is RightToLeft or

Re: [fpc-pascal] Can I define a custom "simple" type for my applications?

2009-04-06 Thread dmitry boyarintsev
> TGraemeBoolean = (gbNull, gbTrue, gbFalse); imho, gbFalse should come before gbTrue. how about that? interface TGraemeBoolean = (gbNull = -1, gbFalse = 0, gbTrue =1); function dbBool(g: TGrameBoolean): Boolean; inline; function dbAssigned(gTGrameBoolean): Boolean; inline; implementation fu

Re: [fpc-pascal] LTR or RTL info from users locale settings?

2009-04-06 Thread ik
No, you can not know by the "normal" locale. You must check to see what is the type of locale: 1. Hebrew 2. Many forms of Arabic (you have more then 6 if I remember correctly) That's the only way I know to detect if the locale is RightToLeft or LeftToRight. I started working on something for Lazar

Re: [fpc-pascal] Can I define a custom "simple" type for my applications?

2009-04-06 Thread dmitry boyarintsev
oh sorry, by i've missprinted prefixes: type TGraemeBoolean = (gbNil, gbFalse, gbTrue); // gb prefix stands for Greame Boolean ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Can I define a custom "simple" type for my applications?

2009-04-06 Thread Mattias Gaertner
On Mon, 6 Apr 2009 19:21:50 +0200 Graeme Geldenhuys wrote: > Hi, > > I need a "new" boolean type in my applications that support three > values. True, False and Null. Null value means undefined and has > various uses and gets handled differently to True or False. Is this > possible in Free Pas

Re: [fpc-pascal] Can I define a custom "simple" type for my applications?

2009-04-06 Thread dmitry boyarintsev
type TGraemeBoolean = (dbNil, dbFalse, dbTrue); ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

[fpc-pascal] Can I define a custom "simple" type for my applications?

2009-04-06 Thread Graeme Geldenhuys
Hi, I need a "new" boolean type in my applications that support three values. True, False and Null. Null value means undefined and has various uses and gets handled differently to True or False. Is this possible in Free Pascal? Regards, - Graeme - __

[fpc-pascal] LTR or RTL info from users locale settings?

2009-04-06 Thread Graeme Geldenhuys
Hi, Does the RTL have any why to notify me if the users locale is LeftToRight or RightToLeft? I'm porting the MiG Layout Manager from Java to Free Pascal for use with fpGUI Toolkit and Lazarus LCL, and need to somehow find this information. Regards, - Graeme - ___

Re: [fpc-pascal] A real programmers website

2009-04-06 Thread Graeme Geldenhuys
On Mon, Apr 6, 2009 at 4:32 PM, Michael Van Canneyt wrote: > > Maybe we finally stumbled on Neo. > There could even be a white rabbit somewhere hidden in the site :-) :-) I wonder how Google would index that? Regards, - Graeme - ___ fpGUI - a cr

Re: [fpc-pascal] EABI problems with FPC

2009-04-06 Thread Benedikt Schindler
Hi, i also try to get free pascal running on my freerunner. i needed many tries to get a running ppcarm for my device. (In reality i didn't know why it worked in the last run ... but it did, and so i don't ask :) ) now i let the freerunner recompile the hole fpcbuild. But that could take some

Re: [fpc-pascal] A real programmers website

2009-04-06 Thread Doug Chamberlin
Graeme Geldenhuys wrote: On Mon, Apr 6, 2009 at 4:54 PM, Oliver Leitner wrote: Oh man, finally a design that is impressing me=) :-) I must say, that is a very unique web page - I haven't see such a design yet. Yeah, I think I'll copy it before he gets it patented! :0 heh, heh!

Re: [fpc-pascal] A real programmers website

2009-04-06 Thread Michael Van Canneyt
On Mon, 6 Apr 2009, Graeme Geldenhuys wrote: > On Mon, Apr 6, 2009 at 4:54 PM, Oliver Leitner wrote: > > Oh man, finally a design that is impressing me=) > > > :-) I must say, that is a very unique web page - I haven't see such a > design yet. Maybe we finally stumbled on Neo. There could

Re: [fpc-pascal] A real programmers website

2009-04-06 Thread Graeme Geldenhuys
On Mon, Apr 6, 2009 at 4:54 PM, Oliver Leitner wrote: > Oh man, finally a design that is impressing me=) :-) I must say, that is a very unique web page - I haven't see such a design yet. Regards, - Graeme - ___ fpGUI - a cross-platform Free Pasc

Re: [fpc-pascal] A real programmers website

2009-04-06 Thread Oliver Leitner
Oh man, finally a design that is impressing me=) On Mon, Apr 6, 2009 at 4:52 PM, Doug Chamberlin wrote: > Graeme Geldenhuys wrote: >> >> http://www.jwz.org/ > > What a great idea! Made my day! > ___ > fpc-pascal maillist  -  fpc-pas...@lists.freepascal.

Re: [fpc-pascal] A real programmers website

2009-04-06 Thread Doug Chamberlin
Graeme Geldenhuys wrote: http://www.jwz.org/ What a great idea! Made my day! ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

[fpc-pascal] A real programmers website

2009-04-06 Thread Graeme Geldenhuys
I was Google'ing for information on the "mbox" mail format and came across this website. Website links are embedding in what you see... :-) http://www.jwz.org/ Regards, - Graeme - ___ fpGUI - a cross-platform Free Pascal GUI toolkit http://opensoft

Re: [fpc-pascal] Typed Constants vs. Variables

2009-04-06 Thread Richard Ward
Jonas wrote: b) conversely, initialized variables are initialized every time their scope is activated (or whatever the proper term for that is: once in case they are declared in a program/unit scope, and every time a function/procedure is entered if they are declared locally in a routine)

Re: [fpc-pascal] EABI problems with FPC

2009-04-06 Thread ik
On Mon, Apr 6, 2009 at 4:26 PM, Jonas Maebe wrote: > > On 06 Apr 2009, at 15:15, ik wrote: > > I tried to create an Hello World program in OpenMoko (after creating arm >> fpc). When I try to compile it, ld gives the following error message: >> >> /usr/bin/ld: ERROR: Source object >> /usr/lib/fpc/

Re: [fpc-pascal] EABI problems with FPC

2009-04-06 Thread Jonas Maebe
On 06 Apr 2009, at 15:15, ik wrote: I tried to create an Hello World program in OpenMoko (after creating arm fpc). When I try to compile it, ld gives the following error message: /usr/bin/ld: ERROR: Source object /usr/lib/fpc/2.3.1/units/arm-linux/rtl/system.o has EABI version 0, but targ

Re: [fpc-pascal] EABI problems with FPC

2009-04-06 Thread ik
No, doing it now Thanks Ido On Mon, Apr 6, 2009 at 4:26 PM, Henry Vermaak wrote: > 2009/4/6 ik : > > Hello, > > > > I tried to create an Hello World program in OpenMoko (after creating arm > > fpc). When I try to compile it, ld gives the following error message: > > > > /usr/bin/ld: ERROR: Sour

Re: [fpc-pascal] EABI problems with FPC

2009-04-06 Thread Henry Vermaak
2009/4/6 ik : > Hello, > > I tried to create an Hello World program in OpenMoko (after creating arm > fpc). When I try to compile it, ld gives the following error message: > > /usr/bin/ld: ERROR: Source object > /usr/lib/fpc/2.3.1/units/arm-linux/rtl/system.o has EABI version 0, but > target hello

[fpc-pascal] EABI problems with FPC

2009-04-06 Thread ik
Hello, I tried to create an Hello World program in OpenMoko (after creating arm fpc). When I try to compile it, ld gives the following error message: /usr/bin/ld: ERROR: Source object /usr/lib/fpc/2.3.1/units/arm-linux/rtl/system.o has EABI version 0, but target hello has EABI version 4 I compil

Re: [fpc-pascal] Trying to cross compile to arm-linux and have the following error message: Makefile:186: *** The Makefile doesn't support target x86_64-linux, please run fpcmake first. Stop.

2009-04-06 Thread Vincent Snijders
ik schreef: Hello, I'm trying to create a cross compile to arm-linux. I made the following execution: fpcmake -Tarm-linux -v Why do you regenerate the makefile? Makefiles from svn support all targets the compiler can handle. When I try to use make (even without any parameters) it returns

Re: [fpc-pascal] Generating code form xmi files

2009-04-06 Thread Johann Glaser
Hi! Am Sonntag, den 05.04.2009, 21:47 -0700 schrieb leledumbo: > Err... how to use this codegen thing? Do I need to run it over Dia generated > diagrams or what? Sorry, I don't understand Python. Replace the installed codegen.py file by the one at the mentioned URL below. Then delete codegen.pyc

Re: [fpc-pascal] Trying to cross compile to arm-linux and have the following error message: Makefile:186: *** The Makefile doesn't support target x86_64-linux, please run fpcmake first. Stop.

2009-04-06 Thread ik
http://ik.homelinux.org/ On Mon, Apr 6, 2009 at 11:25 AM, Jonas Maebe wrote: > > On 06 Apr 2009, at 10:16, ik wrote: > > Followed the instructions. Now if I try to do the following: >> make MAKEFILETARGETS=arm-linux all >> >> It still gives me the following error: >> Makefile:197: *** The Makef

Re: [fpc-pascal] Trying to cross compile to arm-linux and have the following error message: Makefile:186: *** The Makefile doesn't support target x86_64-linux, please run fpcmake first. Stop.

2009-04-06 Thread Jonas Maebe
On 06 Apr 2009, at 10:16, ik wrote: Followed the instructions. Now if I try to do the following: make MAKEFILETARGETS=arm-linux all It still gives me the following error: Makefile:197: *** The Makefile doesn't support target x86_64-linux, please run fpcmake first. Stop. Without MAKEFILETA

Re: [fpc-pascal] Trying to cross compile to arm-linux and have the following error message: Makefile:186: *** The Makefile doesn't support target x86_64-linux, please run fpcmake first. Stop.

2009-04-06 Thread ik
On Mon, Apr 6, 2009 at 11:07 AM, Jonas Maebe wrote: > > On 06 Apr 2009, at 10:00, ik wrote: > > I'm trying to create a cross compile to arm-linux. >> I made the following execution: >> >> fpcmake -Tarm-linux -v >> > > Use this instead: > fpcmake -Tall > > Why are you regenerating the makefiles a

Re: [fpc-pascal] Trying to cross compile to arm-linux and have the following error message: Makefile:186: *** The Makefile doesn't support target x86_64-linux, please run fpcmake first. Stop.

2009-04-06 Thread Jonas Maebe
On 06 Apr 2009, at 10:00, ik wrote: I'm trying to create a cross compile to arm-linux. I made the following execution: fpcmake -Tarm-linux -v Use this instead: fpcmake -Tall Why are you regenerating the makefiles anyway? They already should contain support for all supported platforms.

[fpc-pascal] Trying to cross compile to arm-linux and have the following error message: Makefile:186: *** The Makefile doesn't support target x86_64-linux, please run fpcmake first. Stop.

2009-04-06 Thread ik
Hello, I'm trying to create a cross compile to arm-linux. I made the following execution: fpcmake -Tarm-linux -v FPCMake Version 2.0.0 [2009/02/20] Processing Makefile.fpc Targets: "arm-linux" Globals: FPCDIR = "." PACKAGESDIR = "$(FPCDIR)/packages $(FPCDIR)/packages/base $(FPCDIR)/pack