Re: [fpc-pascal] Inherit interface from 2 interfaces
Zaher Dirkey kirjoitti keskiviikko, 6. huhtikuuta 2011 19:37:04: > Can i do that? > type > IIntf3 = interface(IIntf11, IIntf2) > > end; No but you can do: type MyClass = class(IIntf11, IIntf2) end; Juha ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] Re: Inherit interface from 2 interfaces
On Wed, Apr 6, 2011 at 8:42 PM, leledumbo wrote: > Err... yes? Why don't you just try? > > I tried before my post and failed, the idea is there any way enable it (like directive to add it), or it is implmented in the next versions of FPC, or only the answer is No :) Regards -- Zaher Dirkey ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] Creating windows cross arm-linux ppcarm compiler.
For Android the good value is -meabi=5 which supports all devices in the market. And don't forget to build the cross-compiler with software floating point. -- Felipe Monteiro de Carvalho ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
[fpc-pascal] Re: Inherit interface from 2 interfaces
Err... yes? Why don't you just try? -- View this message in context: http://free-pascal-general.1045716.n5.nabble.com/Inherit-interface-from-2-interfaces-tp4286712p4286988.html Sent from the Free Pascal - General mailing list archive at Nabble.com. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] Creating windows cross arm-linux ppcarm compiler.
In our previous episode, Henry Vermaak said: > I think Marco made these: > > ftp://ftp.freepascal.org/pub/fpc/contrib/cross/binutils-2.20-arm-linux-elf.zip > > Note that it calls the assembler with -meabi=4. You may have to change > this. I use this wrapper for that http://svn.freepascal.org/cgi-bin/viewvc.cgi/trunk/install/cross/aswrapper.pas?root=fpcbuild&view=co&content-type=text%2Fplain afaik the binutils are for eabi 0, and the wrapper changes it to 4. But that is a matter of changing the number and recompiling the wrapper. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
[fpc-pascal] Inherit interface from 2 interfaces
Can i do that? type IIntf3 = interface(IIntf11, IIntf2) end; Thanks in advance. -- Zaher Dirkey ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] Creating windows cross arm-linux ppcarm compiler.
On 06/04/11 17:04, Felipe Monteiro de Carvalho wrote: The first step would be obtaining the correct binutils. In Linux I just install via urpmi. There are some instructions to build from source in the wiki. Maybe there are precompiled ones, but I dont know where. I think Marco made these: ftp://ftp.freepascal.org/pub/fpc/contrib/cross/binutils-2.20-arm-linux-elf.zip Note that it calls the assembler with -meabi=4. You may have to change this. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] Creating windows cross arm-linux ppcarm compiler.
The first step would be obtaining the correct binutils. In Linux I just install via urpmi. There are some instructions to build from source in the wiki. Maybe there are precompiled ones, but I dont know where. After that you need a working install of FPC 2.4.2, download FPC 2.5.2 trunk from svn and make a batch script with some commands to build. You probably could just use the source from FPC 2.4.2 for that, but I usually use svn for no particular reason. I dont know the exact commands, some months ago I started a thread about this in this mailling listbut for Linux->arm-linux and in the end I got a working command. The Windows one should be similar. -- Felipe Monteiro de Carvalho ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
[fpc-pascal] Creating windows cross arm-linux ppcarm compiler.
How do I build windows ppcarm cross arm-linux fpc? Regards, Amit ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] Compiling android example
On Wed, Apr 6, 2011 at 11:41 AM, Amit Bueno wrote: > B. Installed eclipse with the ADT pluging for android I don't use Eclipse, and therefore the instructions do not cover using it. ANT is what builds the Java code. You need to have a working installation of ANT and all java packages that it requires. For me this was a huge amount of stuff, which I downloaded via urpmi to my Mandriva Linux. Unfortunatelly I didn't keep track of what I needed to install, but I can say that strange error messages in ant usually ment missing Java packages. > And raised the following questions: > A. What do I need in order to compile the pascal portion of the code. > (I've already got fpc installed on my windows machine)? You will need to have the adequate FPC cross-compiler installed and the adequate cross-binutils configured to produce armv5 binaries. See this wiki page: http://wiki.lazarus.freepascal.org/Android_Interface#Configuring_the_Free_Pascal_Compiler_for_Android When that is done, you can open Lazarus, open the LPI file and build. Or else you can call FPC from the command line. I can check which options Lazarus puts in the command line if you want to do that. > B. How are the java example classes connected to the pascal? via pipes > C. What do I need to preform a successful compilation of the android > pascal code? This question repeats question A? -- Felipe Monteiro de Carvalho ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
[fpc-pascal] Compiling android example
http://wiki.lazarus.freepascal.org/Android_Interface/Native_Android_GUI I've downloaded the example of the android application, done the following: A. Installed android latest sdk B. Installed eclipse with the ADT pluging for android C. Downloaded the TurboChessClock4Android example, from the above link D. Opened the android project files in eclipse. And raised the following questions: A. What do I need in order to compile the pascal portion of the code. (I've already got fpc installed on my windows machine)? B. How are the java example classes connected to the pascal? C. What do I need to preform a successful compilation of the android pascal code? Regards, Amit ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] regex unit and word boundaries
On Wed, Apr 6, 2011 at 9:32 AM, ik wrote: > > What's wrong with /a word/ (without the slash) ? Sorry, I don't understand. > But if the word can exists in a middle of a text, and you do not look for a > pattern, then regex is not what you should use, but "pos" instead. Because > pos is more efficient then regex. I'm implementing syntax highlighting in one of my text edit components. I am using regex to find keywords, reserved words etc to highlight. So when I search for 'class', it must not match 'Classes', so I can't use something as rudimentary as Pos(). Normally you enable word boundaries in your regex as follows, to accomplish what I need: \b(class|record|begin|end)\b alternatively (if \b is not available) I can do something like ^\s*end;?\s*$ which will match 'end;' and 'end' but not something like 'amend' But alas, it seems the FCL regex unit doesn't have \s (any whitespace chars) implemented either. It seems the FCL regex unit is in its infancy, and I need a more feature complete implementation of regex. I did some Google'ing and TRegExpr class library by Andrey V. Sorokin seems a lot more feature complete and free. I will probably have to switch to using that component. A shame really, because I like to stick to using units included with FPC. Doing some more searching, I believe Lazarus IDE also uses the TRegExpr unit, instead of FCL's one. Is anybody still working on the FCL regex unit? Are there plans to implement any more regex features, or is that unit abandon-ware. Can't the FPC developers include TRegexpr library as part of FCL? It will save them a lot of development effort. -- Ben. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] regex unit and word boundaries
On Wed, Apr 6, 2011 at 01:48, Ben Smith wrote: > Hi, > > Does the Regex unit included with FCL support word boundaries? eg: the > \b tag as used by some other regex libraries. If the Regex unit does > support it, what syntax must I use? > > I know about the ^ (beginning of line) and $ (for end of line), but > that is not what I'm looking for, because the words I want to match > might appear in the middle of the text. > What's wrong with /a word/ (without the slash) ? But if the word can exists in a middle of a text, and you do not look for a pattern, then regex is not what you should use, but "pos" instead. Because pos is more efficient then regex. > > -- > > Ben. > ___ > fpc-pascal maillist - fpc-pascal@lists.freepascal.org > http://lists.freepascal.org/mailman/listinfo/fpc-pascal > Ido LINESIP - Opening the source for communication http://www.linesip.com http://www.linesip.co.il ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal