[fpc-pascal] virtual class var?

2012-08-06 Thread Andrew Haines
Hi, is it possible to have a virtual class variable? I want to have a pointer available per class that can be a different value. Something like this: TA = class class var Foo: TObject; virtual; end; TB = class(TA) class var Foo: TSpecialObject; override; end; I have in mind

Re: [fpc-pascal] virtual class var?

2012-08-06 Thread Andrew Haines
My current idea for a solution is here: http://pastebin.com/P3JsDQ03 Can anyone think of something with less code? I guess I could save a little if I skip the property and directly use GetVMT and SetVMT. Regards, Andrew ___ fpc-pascal maillist - fpc

Re: [fpc-pascal] virtual class var?

2012-08-06 Thread Andrew Haines
On 08/06/12 23:02, Paul Ishenin wrote: > > Class variable is stored the same way as a regular variable and has the > only difference is that it can be accessible with the class name prefix. > The thing you need requires different implementation - something like > storing a virtual class variable

Re: [fpc-pascal] virtual class var?

2012-08-06 Thread Andrew Haines
Ahhh ok I understand now. , Thank you. -- Sent from my Android phone with K-9 Mail. Please excuse my brevity. Paul Ishenin wrote: 07.08.12, 11:24, Andrew Haines wrote: > What is the current implementation? > > I would guess that class vars are stored in the vmt already... No, clas

[fpc-pascal] Wiki search broken?

2012-08-26 Thread Andrew Haines
invalid byte sequence for encoding "UTF8": 0xc080 HINT: This error can also happen if the byte sequence does not match the encoding expected by the server, which is controlled by "client_encoding". " There's a bunch more raw html stuff as well. Regards, Andrew Hai

Re: [fpc-pascal] Wiki search broken?

2012-08-27 Thread Andrew Haines
On 08/27/12 00:27, Vincent Snijders wrote: 2012/8/27 Andrew Haines : Hi, Search seems to be broken for me on the wiki What was your search word? Vincent ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org

[fpc-pascal] ppcjvm linking jar

2013-04-21 Thread Andrew Haines
a jar file. How? My google-foo has failed me. Thanks, Andrew Haines ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Re: ppcjvm linking jar

2013-04-22 Thread Andrew Haines
(Launcher.java:294) at java.lang.ClassLoader.loadClass(ClassLoader.java:266) Could not find the main class: trange1. Program will exit. where manifest.txt is Main-Class: trange1 I've played around with MainClass: trange1.class MainClass Main main Any hints? Thanks, Andrew Haines

Re: [fpc-pascal] Re: ppcjvm linking jar

2013-04-22 Thread Andrew Haines
On 04/22/13 18:39, Andrew Haines wrote: On 04/22/13 05:22, leledumbo wrote: Just create jar file the usual way. However, you'll need to give FPC-JVM RTL classes as well (those in org.freepascal namespace) Alright I've figured it out: jar cfm trange1.jar manifest.txt trange

[fpc-pascal] c structs and pascal interfaces

2014-01-28 Thread Andrew Haines
ction GetPlayState(state: PSLuint32): SLresult; cdecl; function GetDuration(msec: PSLmillisecond): SLresult; cdecl; .. end; So now two questions: Is corba the interface type I need? Am I wrong to exclude the self parameter from the interface t

Re: [fpc-pascal] c structs and pascal interfaces

2014-01-28 Thread Andrew Haines
On 01/28/2014 12:26 PM, Jonas Maebe wrote: On 28 Jan 2014, at 18:13, Andrew Haines wrote: I want to use c "interfaces" exposed as structs in fpc as interfaces. In particular I'm converting the OpenSLES header file to fpc. If they are exposed as structs, you should tran

[fpc-pascal] FPC on Palm

2008-06-03 Thread Andrew Haines
Hi, I tried to build a crosscompiler for palmos-arm and palmos-m68k but both failed to compile. Here's the results for m68k make[5]: Entering directory `/home/andrew/programming/fpc/rtl/palmos' /usr/bin/mkdir -p /home/andrew/programming/fpc/rtl/units/m68k-palmos make[5]: *** No rule to make targe

Re: [fpc-pascal] Embedding a Video Player into a Linux/FP/GTK2 Application ?

2008-06-23 Thread Andrew Haines
Michael Van Canneyt wrote: > > Would it be OK to include the xine unit in fpc ? > It's not even close to complete, I only did just enough to make the program work. You can add it if you want, maybe some people will submit patches to complete it. If it's possible to change the license go ahead,

Re: [fpc-pascal] Tiburon and unicode rtl

2008-07-01 Thread Andrew Haines
Felipe Monteiro de Carvalho wrote: > Hello, > > Ok, so far we have a couple of unicode rtl proposals. Will FPC remain > compatible with code from Tiburon? > > If yes, then we need a set of utf-16 RTL routines, even if another > solution is chosen. Yes, surely the utf-16 routines could just call >

Re: [fpc-pascal] Porting linux to pascal, would it be, possible ?

2008-12-07 Thread Andrew Haines
Graeme Geldenhuys wrote: On Fri, Dec 5, 2008 at 5:55 PM, Felipe Monteiro de Carvalho <[EMAIL PROTECTED]> wrote: If you want to do some large work to increase the use of FPC I would recommend creating a Window Manager instead, probably with fpgui. How far did you guys get with the 'fpwm

Re: [fpc-pascal] sysutils.beep doesn't beep under Linux?

2009-11-21 Thread Andrew Haines
Michael Van Canneyt wrote: > > By that rationale: no beep() on linux. > Can beep be made a procvar? Regards, Andrew ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Using C functions

2009-11-22 Thread Andrew Haines
Ivo Steinmann wrote: >>> >> Thanks, I thought so. >> >> I am considering to write a C library (cdecl) to wrap the calls to the >> C library(fastcall), but it doesn't feel right. >> >> You can compile your c wrapper and lin

Re: [fpc-pascal] Looking for SDL_opengl header

2010-12-07 Thread Andrew Haines
On 12/07/10 18:23, Darius Blaszyk wrote: > Has anyone ever converted the SDL_opengl header to FPC? Couldn't find it > in the repository, but perhaps someone knows if it is part of another > project. > Is there one included with jedi sdl?? Regard

Re: [fpc-pascal] Re: FPC programs in Android without JNI

2010-12-17 Thread Andrew Haines
On 12/16/10 12:23, Felipe Monteiro de Carvalho wrote: > Hello, > > It might be interesting to know that I managed to build a bridge which > exports the Java API and the Android API to Free Pascal. Check this > hello world code and screenshot: > > http://wiki.lazarus.freepascal.org/Android_Interfa

Re: [fpc-pascal] Re: FPC programs in Android without JNI

2010-12-17 Thread Andrew Haines
On 12/17/10 15:46, Felipe Monteiro de Carvalho wrote: > I a > ?? ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

[fpc-pascal] CDDB unit

2010-12-18 Thread Andrew Haines
Hi, Does anyone have the cddb unit that was on the wiki once upon a time? http://wiki.lazarus.freepascal.org/CDDB The link on that page is now dead. Thanks, Andrew ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org

Re: [fpc-pascal] Skipping an the "inherited" of an ancestor

2011-01-15 Thread Andrew Haines
On 01/14/11 14:38, Torsten Bonde Christiansen wrote: > Hi List. > > Is it possible to jump a couple of levels in the inherited hierarchy > when calling "inherited" on a method? > > A small example of what i'm trying to achieve below (and don't mind the > incomplete TB class implementation). > >

Re: [fpc-pascal] Skipping an the "inherited" of an ancestor

2011-01-15 Thread Andrew Haines
On 01/15/11 10:30, Andrew Haines wrote: > On 01/14/11 14:38, Torsten Bonde Christiansen wrote: >> Hi List. >> >> Is it possible to jump a couple of levels in the inherited hierarchy >> when calling "inherited" on a method? >> >> > > I *th

Re: [fpc-pascal] Skipping an the "inherited" of an ancestor

2011-01-15 Thread Andrew Haines
On 01/15/11 11:01, Andrew Haines wrote: > On 01/15/11 10:30, Andrew Haines wrote: >> On 01/14/11 14:38, Torsten Bonde Christiansen wrote: >>> Hi List. >>> >>> Is it possible to jump a couple of levels in the inherited hierarchy >>> when calling "in

Re: [fpc-pascal] Basic instructions for quick start of free basic setup with subversion.

2011-01-22 Thread Andrew Haines
On 01/22/11 14:31, Peter Eric Williams wrote: > Hi pascal list, > > Please excuse me asking such a basic question, but I'm new to this list. > > I require the basic instructions for quick start with subversion for all > of the free pascal compiler using subversion. > > I am using Windows 7 Ultim

Re: [fpc-pascal] Permuted index (KWIC) of function descriptions

2011-01-26 Thread Andrew Haines
extract words from capitalized words make sense? i.e. "DoSomethingCool" becomes "do", "something", "cool" ? Regards, Andrew Haines ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] assign code to a method

2011-02-18 Thread Andrew Haines
urrentBlock.Position; // = @Block + Block.Cursor repeat WriteData(your_data, size_of_data); until done; except on e: TrampolineBlockFullException do begin TrampolineManager.AllocateBlock; Result := GenerateCode(args); end; end; end; Hope this helps :) Regards, Andrew Haines ___

Re: [fpc-pascal] Ansistrings under Android

2011-02-22 Thread Andrew Haines
stances might cause a AV. But "FooString := unaligned(BarString)" might work. Although it would especially happen when a character alone was accessed i.e. PChar(Foo)[x]. It could be the problem. Regards, Andrew Haines ___ fpc-pascal maillis

[fpc-pascal] Converting 32bit intel asm to Pascal or 64bit at&t asm

2011-03-08 Thread Andrew Haines
Hi, I'm trying to convert the following 32bit asm to pascal so it's portable. Also to 64bit asm. It's from ACS audio component suite. What am I doing wrong? I tested my Pascal code with linux 32bit but the output differs from the 32bit asm. In 64bit linux it differs further but this could be fr

Re: [fpc-pascal] Converting 32bit intel asm to Pascal or 64bit at&t asm

2011-03-09 Thread Andrew Haines
On 03/08/11 19:58, Andrew Haines wrote: > Hi, > > I'm trying to convert the following 32bit asm to pascal so it's > portable. Also to 64bit asm. > > It's from ACS audio component suite. > > What am I doing wrong? > For anyone who's interested I

Re: [fpc-pascal] Converting 32bit intel asm to Pascal or 64bit at&t asm

2011-03-09 Thread Andrew Haines
On 03/09/11 12:26, Thomas Schatzl wrote: > Hi, > > On Wed, 09 Mar 2011 11:58:08 -0500, Andrew Haines wrote: >> if Tmp <> Im then >> begin >> //Tmp := ln(Tmp)*LogBase+Shift; // same as the following asm >> proc? >> asm &

Re: [fpc-pascal] Converting 32bit intel asm to Pascal or 64bit at&t asm

2011-03-10 Thread Andrew Haines
On 03/09/11 14:18, Thomas Schatzl wrote: > On Wed, 09 Mar 2011 13:23:55 -0500, Andrew Haines wrote: >> On 03/09/11 12:26, Thomas Schatzl wrote: >>> >>> FYL2X calculates the log to the base 2 of tmp, not log to the base e of >>> tmp? Just a guess. >>> &

[fpc-pascal] New Dispose and FreeMem and objects

2011-08-26 Thread Andrew Haines
y use Dispose(Obj) ? Maybe Dispose can call a destructor and that is the difference between Dispose and FreeMem? Thanks, Andrew Haines ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] New Dispose and FreeMem and objects

2011-08-26 Thread Andrew Haines
On 08/26/11 17:14, Jonas Maebe wrote: > > On 26 Aug 2011, at 22:39, Andrew Haines wrote: > >> Maybe Dispose can call a destructor and that is the difference between >> Dispose and FreeMem? > > The other difference is that dispose() will finalize any reference count

Re: [fpc-pascal] Linux - ExecuteProcess versus fpSystem

2011-09-08 Thread Andrew Haines
On 09/08/11 19:40, brian wrote: > > What are the commands? > > mpg321 -q -w "tempfile.wav" "inputfile.mp3" > > oggenc -Q --output="outputfile.ogg" "tempfile.wav" > > It makes no difference whether or not I use a full pathname for mpg321 > and oggenc, and all the other files are in the current

Re: [fpc-pascal] Linux - ExecuteProcess versus fpSystem

2011-09-08 Thread Andrew Haines
On 09/08/11 19:52, Andrew Haines wrote: > You can try something like > oggenc -Q '--output="outputfile.ogg"' "tempfile.wav" > to see if that works or if you use TProcess directly I understand that > options have been added recently to overcome the probl

Re: [fpc-pascal] Why do string indices start at 1, but array indices start at 0?

2011-10-20 Thread Andrew Haines
On 10/20/11 17:43, Andrew Pennebaker wrote: > It's inconsistent and ripe for bugs. > > Cheers, > > Andrew Pennebaker > www.yellosoft.us > > > ___ > fpc-pascal maillist - fpc-pascal@lists.freepascal.org > http://lists.freepa

Re: [fpc-pascal] libQT4Pas - Why it is needed?

2012-01-30 Thread Andrew Haines
On 01/30/12 02:19, Graeme Geldenhuys wrote: > On 29 January 2012 16:31, Jonas Maebe wrote: >> >> GTK offers a plain C interface. QT only offers a C++ interface. FPC does not >> (fully) support directly calling external C++ libraries. LibQT4Pas offers a >> plain C interface to QT for use by FPC.

[fpc-pascal] AIX

2012-02-10 Thread Andrew Haines
Hi, can freepascal compile programs for AIX PowerPc? I see hints of AIX when I search google but nothing that directly says it will work. Thanks Andrew ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listi

Re: [fpc-pascal] How create a full text search with TChmWriter?

2012-02-20 Thread Andrew Haines
On 02/20/12 18:00, Mattias Gaertner wrote: > Hi, > > I'm using TChmWriter to pack some html files into a chm file. > The index works. I don't have a TOC. > Now I want a full text search. > > I set Writer.FullTextSearch to true, it takes a long time to > process and the resulting chm is 30% bigger

Re: [fpc-pascal] How create a full text search with TChmWriter?

2012-02-20 Thread Andrew Haines
On 02/20/12 18:00, Mattias Gaertner wrote: > Hi, > > I'm using TChmWriter to pack some html files into a chm file. > The index works. I don't have a TOC. > Now I want a full text search. > > I set Writer.FullTextSearch to true, it takes a long time to > process and the resulting chm is 30% bigger

Re: [fpc-pascal] How create a full text search with TChmWriter?

2012-02-20 Thread Andrew Haines
On 02/20/12 20:51, Andrew Haines wrote: >> > > I added an lcl program to the ccr in applications/chmmaker that I wrote Nevermind I had forgotten it's in lazarus/tools anyway. :) Andrew ___ fpc-pascal maillist - fpc-pascal@lists.fr

Re: [fpc-pascal] How create a full text search with TChmWriter?

2012-02-20 Thread Andrew Haines
he example subfolder. Can you see if it works for you? I opened it in lhelp and the toc, index and search were all working. Can you PM me the chm(s) that are not working for you? Also what version of fpc are you using for which platform? Thanks, Andrew Haines P.S. Sorry for

Re: [fpc-pascal] How create a full text search with TChmWriter?

2012-02-21 Thread Andrew Haines
On 02/21/2012 03:18 AM, Mattias Gaertner wrote: On Mon, 20 Feb 2012 23:59:18 -0500 Andrew Haines wrote: 30% bigger than the size of the uncompressed html files?! Yes. does lazarus/docs/html/build_lcl_docs --outfmt chm work for you? I get a 8mb lcl.chm file. if --outfmt html then the lcl

Re: [fpc-pascal] How create a full text search with TChmWriter?

2012-02-21 Thread Andrew Haines
On 02/21/12 17:40, Mattias Gaertner wrote: > On Tue, 21 Feb 2012 16:08:43 +0100 (CET) > Mattias Gaertner wrote: > >> >> Andrew Haines hat am 21. Februar 2012 um 15:24 >> geschrieben: >> [...] >>> Your chm file should not be bigger than the the uncompre

Re: [fpc-pascal] How create a full text search with TChmWriter?

2012-02-22 Thread Andrew Haines
On 02/21/12 10:08, Mattias Gaertner wrote: > > Andrew Haines hat am 21. Februar 2012 um 15:24 > geschrieben: > >> I guess then you are using AddStreamToArchive. > > > > No. I set > > Writer.OnGetFileData :=@OnWriterGetFileData; > And in OnWrit

Re: [fpc-pascal] How create a full text search with TChmWriter?

2012-02-22 Thread Andrew Haines
On 02/22/12 18:01, Mattias Gaertner wrote: > > Yes, this helped. > Now the files are done in under a minute and with only 500MB. But then > mem consumption goes up again. Then it goes down to 5GB and seems to > be stuck in an endless loop. I cancelled it. > > I tried with only 500 files and it

Re: [fpc-pascal] How create a full text search with TChmWriter?

2012-02-23 Thread Andrew Haines
On 02/22/12 18:01, Mattias Gaertner wrote: > On Wed, 22 Feb 2012 12:06:08 -0500 > I tried with only 500 files and it worked. That means I get a help and > it finds files. But choosing a page just shows black. And after that > any page is black. > Note: If I don't use the search but the Index, then

Re: [fpc-pascal] How create a full text search with TChmWriter?

2012-02-23 Thread Andrew Haines
On 02/22/12 18:01, Mattias Gaertner wrote: > And I get an exception in: > #5 0x005552aa in CHILDISFULL (this=0x415906, > AWORD=0x409d0c > "\311\303f\220H\203\354(H\211\\$\bL\211d$\020L\211l$\030L\211t$ > I\211\376I\211\365f\211\323L\211\350H\203", , > ANODEOFFSET=8234056) at chmfi

Re: [fpc-pascal] How create a full text search with TChmWriter?

2012-03-03 Thread Andrew Haines
On 02/23/12 16:23, Mattias Gaertner wrote: > Now it stops earlier on my files: > > Exception at 00473837: ERangeError: > Range check error. > Backtrace does not help much: > > #0 0x004120d0 in fpc_raiseexception () > #1 0x0045fc38 in > SYSUTILS_$$_RUNERRORTOEXCEPT$LONG

Re: [fpc-pascal] Converting big-endian signed 16bits values to fpc integer

2012-04-15 Thread Andrew Haines
On 04/15/12 18:38, Giuliano Colla wrote: > I'm dealing with a large number of data coming from an external device. > They are big-endian 16 bits signed numbers, which must be converted to > integer and to real to perform calculations. > > Besides the obvious solutions of treating them as isolated

Re: [fpc-pascal] Free commander

2006-05-11 Thread Andrew Haines
L505 wrote: Does anyone have a copy of it? http://web.archive.org/web/20021122022650/http://fc.freepascal.org/ Found an old version http://193.125.152.110/pub/windows/fileutil/fc070b7.zip Started it up with fc.exe c: c: Looks pretty nifty, no sources in this zip - I was going to con

Re: [fpc-pascal] TProcess questions

2006-10-03 Thread Andrew Haines
ingList; var I: Integer; fName: String; begin Result := TStringList.Create; for I := 0 to GetEnvironmentVariableCount-1 do begin fName := GetEnvironmentString(I); Result.Add(fName); end; end; HTH Andrew Haines ___ fpc-pascal maillist - f

Re: [fpc-pascal] [SYSTEM]: How detecting if run as root ?

2006-10-11 Thread Andrew Haines
TOUZEAU DAVID wrote: > Dear > > I need to detect if the program is executed as root privileges on Linux > system. > Did somebody had developped a such function ?? > > Best regards. > > Well you can try GetEnv('USER') = 'root'; or GetEnv('UID') = '0'; but there may be better ways to check this.

[fpc-pascal] Class Memory Table Size

2007-05-07 Thread Andrew Haines
ing this for a GInterface which is looked up by the TypeID, so that is all I need. I've tested this and it is working. But what horrible things can happen? Thanks, Andrew Haines ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http:

Re: [fpc-pascal] Class Memory Table Size

2007-05-09 Thread Andrew Haines
Daniël Mantione wrote: > > Op Tue, 8 May 2007, schreef Andrew Haines: > >> The reason for this is, I want to trick gtk into thinking that a TObject >> is really a GObject. This is where the TypeID for GType's are stored. I >> know this won't work for most

[fpc-pascal] html link extractor

2007-06-30 Thread Andrew Haines
Is there a unit somewhere that can extract links from html pages? I want to be able to recursively add pages to a chm archive. Thanks, Andrew Haines ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman

Re: [fpc-pascal] html link extractor

2007-06-30 Thread Andrew Haines
Andrew Haines wrote: > Is there a unit somewhere that can extract links from html pages? I want > to be able to recursively add pages to a chm archive. > I think this from l505 will work: http://lists.freepascal.org/lists/fpc-announce/2007-February/000536.html but are there any units

Re: [fpc-pascal] Re: html link extractor

2007-07-02 Thread Andrew Haines
L wrote: > Andrew Haines wrote: >> Is there a unit somewhere that can extract links from html pages? I want >> to be able to recursively add pages to a chm archive. > > I created a program called GetLinks in a couple minutes: > http://opensvn.csie.org/pspcgi/general-ut

Re: [fpc-pascal] How do I join the Lazarus list?

2007-07-03 Thread Andrew Haines
Tom York wrote: > I cannot seem to find a way to join the mailing list. It's on this page: http://www.lazarus.freepascal.org/modules.php?op=modload&name=StaticPage&file=index&sURL=maill It's the link that says "subscribe" mailto:[EMAIL PROTECTED] Regards, Andrew ___

Re: [fpc-pascal] Linux : Using SDL with GTK2 ?

2007-11-15 Thread Andrew Haines
Tom wrote: > Hi, > > I'm desperately trying to build a application mixing GTK with SDL for *Linux*. > > I know that's not always recommended as it involves 2 listening loops but it > should work. I found some *C* snippets/applications (eg making window hacks) > but > I'm unable to translate th

Re: [fpc-pascal] Linux : Using SDL with GTK2 ?

2007-11-16 Thread Andrew Haines
T.Guilleminot wrote: > 1. I'm unsure of chronology of things to do in the program body. Is the > following correct : >a) Create GTK stuff >b) SDL Hack/SDL_WINDOWID >c) SDL_INIT >d) Show GTK widgets > Yes that's right. With the only exception being that you have to use gtk_widget_r

Re: [fpc-pascal] can we have fpc's doc in chm format?

2007-12-04 Thread Andrew Haines
a) can be included and integrated so searching is possible. Michael, are the manuals written in rtf? why couldn't they be in a chm file? Regards, Andrew Haines ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] can we have fpc's doc in chm format?

2007-12-04 Thread Andrew Haines
Michael Van Canneyt wrote: > > On Sun, 2 Dec 2007, Bisma Jayadi wrote: > >> Can we have fpc's doc in chm format? It's easier to navigate and search >> compare to other formats. :) > > The reference material: If you complete the chm backend of fpdoc, yes. Attached is a patch to add chm output to

Re: [fpc-pascal] can we have fpc's doc in chm format?

2007-12-06 Thread Andrew Haines
Andrew Haines wrote: > Attached is a patch to add chm output to fpdoc. I edited Makefile.fpc to > require the "package" chm. Also a patch for chmwriter.pas with some > minor changes that were needed. Don't apply this patch. I have improved it a bit and now fpdoc (here

Re: [fpc-pascal] can we have fpc's doc in chm format? [Patch]

2007-12-06 Thread Andrew Haines
Michael Van Canneyt wrote: > > On Thu, 6 Dec 2007, Andrew Haines wrote: > >> Andrew Haines wrote: >>> Attached is a patch to add chm output to fpdoc. I edited Makefile.fpc to >>> require the "package" chm. Also a patch for chmwriter.pas with some &

Re: [fpc-pascal] can we have fpc's doc in chm format? [Patch]

2007-12-07 Thread Andrew Haines
Michael Van Canneyt wrote: > > On Fri, 7 Dec 2007, Andrew Haines wrote: > >> Michael Van Canneyt wrote: >>> On Fri, 7 Dec 2007, Andrew Haines wrote: >>> >>>> PS you can have a peek at some chm's I made with fpdoc here: >>>> http://hai

Re: [fpc-pascal] can we have fpc's doc in chm format? [Patch]

2007-12-07 Thread Andrew Haines
Michael Van Canneyt wrote: > > On Fri, 7 Dec 2007, Andrew Haines wrote: > >> PS you can have a peek at some chm's I made with fpdoc here: >> http://hainesservice.com/andrew/chms/ they are all crosslinked. > > With kchmviewer I get the following errors: > >

Re: [fpc-pascal] can we have fpc's doc in chm format? [Patch]

2007-12-07 Thread Andrew Haines
Michael Van Canneyt wrote: > > How do I view this on a Linux KDE system ? > you can use xchm or gnochm and I think there is a kde variant too, though I don't know it's name. Andrew ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://l

Re: [fpc-pascal] can we have fpc's doc in chm format? [Patch]

2007-12-07 Thread Andrew Haines
Mattias Gaertner wrote: > I downloaded them, installed kchmviewer 3.1 (ubuntu gutsy) and got: > > An error occurred while loading > ms-its:/home/mattias/file:/home/mattias/pascal/docs/rtl.chm::/index.html: > Could not read file > ms-its:/home/mattias/file:/home/mattias/pascal/docs/rtl.chm::/index.

Re: [fpc-pascal] can we have fpc's doc in chm format? [Patch]

2007-12-07 Thread Andrew Haines
Mattias Gaertner wrote: > On Fri, 07 Dec 2007 09:43:57 -0500 > Andrew Haines <[EMAIL PROTECTED]> wrote: > >> Michael Van Canneyt wrote: >>> On Fri, 7 Dec 2007, Andrew Haines wrote: >>> >>>> Michael Van Canneyt wrote: >>>>> On Fr

Re: [fpc-pascal] can we have fpc's doc in chm format? [Patch]

2007-12-09 Thread Andrew Haines
Michael Van Canneyt wrote: > > On Fri, 7 Dec 2007, Andrew Haines wrote: > >> PS you can have a peek at some chm's I made with fpdoc here: >> http://hainesservice.com/andrew/chms/ they are all crosslinked. > > With kchmviewer I get the following errors: > >

Re: [fpc-pascal] can we have fpc's doc in chm format? [Patch]

2007-12-09 Thread Andrew Haines
Andrew Haines wrote: > Michael Van Canneyt wrote: >> On Fri, 7 Dec 2007, Andrew Haines wrote: >> >>> PS you can have a peek at some chm's I made with fpdoc here: >>> http://hainesservice.com/andrew/chms/ they are all crosslinked. >> With kchmviewe

Re: [fpc-pascal] No Hello World after updating Xcode to 2.1

2005-09-16 Thread Andrew Haines
Lance Boyle wrote: I've just installed Xcode 2.1 and can no longer compile FPC using 2.0.0. For good measure, I re-installed FPC 2.0.0 and the Xcode Integration Kit, including the Universal Interfaces. The latter acted oddly with a crashing program which tried to open up a dialog box, unt

Re: [fpc-pascal] No Hello World after updating Xcode to 2.1

2005-09-20 Thread Andrew Haines
Lance Boyle wrote: if [ $BUILD_STYLE = Development ]; then echo \"Build Style = Development\" /usr/local/bin/ppcppc $INPUT_FILE_NAME -Ci -Co -g -gl -O1 -vr - FEbuild/$PROJECT_NAME.build/$TARGET_NAME.build -o$PRODUCT_NAME else echo \"Build Style = Deployment\" /usr/local/bin/ppcpp

[fpc-pascal] Fw: [5]

2014-05-08 Thread Andrew Haines
Hey! http://netchannel.hu/-hi.friend?odyhunjta=4841446&fitymema=653709 ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

[fpc-pascal] Fw:

2014-05-08 Thread Andrew Haines
Hey! http://boerbalink.nl/-hi.friend?kusjfib=3171095&ravarydo=969545 ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Fast HTML Parser

2014-08-06 Thread Andrew Haines
> S := GetHTMLValues('sel_x'); > > R There is the unit fasthtmlparser included with fpc in the packages/chm folder. It is pretty basic and just has callbacks for tags and text. I don't think it's smart enough to tell you of the n

Re: [fpc-pascal] Is there a CSS parser in FPC?

2015-03-05 Thread Andrew Haines
s parser. It was added for lazarus/lhelp and wasn't part of the original ipro component so it's mostly separated from ipro. http://svn.freepascal.org/cgi-bin/viewvc.cgi/trunk/components/turbopower_ipro/ipcss.inc?view=markup&revision=44873&root=lazarus Regards, Andrew Haine

Re: [fpc-pascal] License terms for FastHTMLParser

2015-03-09 Thread Andrew Haines
-delphi.zip) has a permissive license, while the file in the FPC source tree has the GPL pasted at the top. I also see that Andrew Haines is listed as the copyright holder in the FPC source, while the original file listed Jazarsoft. I know Andrew developed the chm support in FPC/Lazarus, but it

Re: [fpc-pascal] Internet audio streaming ?

2015-03-19 Thread Andrew Haines
On 03/19/2015 09:26 AM, fredvs wrote: PS:Andrew has done a excellent work with his PulseAudio wrapper => https://github.com/andrewd207/fpc-pulseaudio Only the pulse simple bindings are complete. I'm ~70% done the full pulse bindings. Andrew ___ fpc

Re: [fpc-pascal] File Descriptor in Windows ?

2015-03-21 Thread Andrew Haines
Check for writeln's in the htmlthread unit you added. On March 21, 2015 6:23:44 PM EDT, fredvs wrote: >> What do you do with the inHandle ? >> Michael. > >It is used by mp123 mp3-decoder library. > >=>function mpg123_open_fd(mph: Tmpg123_handle; fd: integer); > >fp (file descriptor) := InHandle

[fpc-pascal] Helpers for objects (not classes)

2015-03-23 Thread Andrew Haines
Hi, Do the new class helpers support objects? If this is not implemented how much work (1-10) is it to do? Thanks, Andrew ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] File Descriptor in Windows ?

2015-03-25 Thread Andrew Haines
On 03/25/2015 08:23 AM, fredvs wrote: Hello. Sorry to sorry to bother you with that file descriptors again... ;-( There are some answers there on mpg123 forum. They explain that "simple stdin/stdout file descriptors would work." Of course all what they explained is in C ;-( OK, but how can i u

[fpc-pascal] STM32F407?

2015-10-11 Thread Andrew Haines
Hi, I've seen on the list that the STM32F429 has some support in fpc now! A couple of years ago I got a STM32F407 discovery board. Is the code for *29 compatible with *07? Regards, Andrew Haines ___ fpc-pascal maillist - fpc-p

Re: [fpc-pascal] STM32F407?

2015-10-12 Thread Andrew Haines
0.15 um 03:31 schrieb Andrew Haines: >> Hi, >> >> I've seen on the list that the STM32F429 has some support in fpc now! >> >> A couple of years ago I got a STM32F407 discovery board. Is the code >> for *29 compatible with *07? >> >> Regards, >

Re: [fpc-pascal] Getting build ID

2015-10-24 Thread Andrew Haines
m the .note.gnu.build-id section. Regards, Andrew Haines ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Getting build ID

2015-10-25 Thread Andrew Haines
On 10/25/2015 03:25 PM, Mark Morgan Lloyd wrote: Mark Morgan Lloyd wrote: Andrew Haines wrote: On 10/22/2015 08:08 PM, Mark Morgan Lloyd wrote: If a program is linked with GNU ld using the --build-id option, how can it retrieve the value at runtime? I've never done it but maybe a pla

Re: [fpc-pascal] Where is fpc finding link directories?

2015-12-11 Thread Andrew Haines
On 12/11/2015 09:50 AM, Anthony Walter wrote: I am having a problem with fpc picking up linking directories on my Raspberry Pi. I have a this lib: /opt/vc/lib/libGLESv2.so I get this linker error during compile: /usr/lib/ld: cannot lind -lGLESv2 But when I compile adding -Fl/opt/vc/lib t

Re: [fpc-pascal] How to sent totally custom parameters to the linker ?

2016-09-05 Thread Andrew Haines
On 09/05/2016 07:27 PM, fredvs wrote: Hello. Is it possible to sent new-other parameters to the linker ? Without the use of *-k*, fpc sent this to the linker: [5.227] (9017) Using util /usr/bin/ld [5.227] Executing "/usr/bin/ld" with command line "-b elf64-x86-64 -m elf_x86_64 --dynamic-linker

Re: [fpc-pascal] picture preview

2016-11-08 Thread Andrew Haines
veral units for different image formats. FPReadPNG, FPWritePNG FPReadBMP, FPWriteBMP etc. Regards, Andrew Haines program imageresize; {$mode objfpc} uses Classes, FPimage, FPImgCanv, FPCanvas, FPReadPNG, FPWritePNG; function ResizeImage(ASrcImage: TFPCustomImage; ANewWidth, ANewHeight: In

Re: [fpc-pascal] Interface performance

2016-11-12 Thread Andrew Haines
it to github if you want to check it out. It uses a list of IMyInterface. https://github.com/andrewd207/interfacetest Or as a zip: https://github.com/andrewd207/interfacetest/archive/master.zip Regards, Andrew Haines ___ fpc-pascal maillist - fpc

Re: [fpc-pascal] How to use pipes ?

2017-02-01 Thread Andrew Haines
On 02/01/2017 08:52 AM, fredvs wrote: Hello. Some more explanation. With that code, only +- 10 loops are working, after, no more Ouframes... why ? Where is it stopping? It may be that you are asking for more bytes than are available and it is blocking waiting for more data. Or the opposite

Re: [fpc-pascal] SpVoice.GetVoices returned exception class EOleSysError

2017-04-11 Thread Andrew Haines via fpc-pascal
tool importtl to generate the Speechlib_tlb unit. But its been a long time now. I can email you directly the file if you want. Regards, Andrew Haines uses OleServer, ComObj, Speechlib_tlb, Windows, Variants, ActiveX, ... var SpeechVoice: ISpeechVoice; Voice: TSpVoice; Voices:

Re: [fpc-pascal] Get value of PPChar ?

2017-04-16 Thread Andrew Haines via fpc-pascal
On 04/16/2017 10:58 AM, fredvs wrote: K, the function seems to work because the result = 0 (no error). But how to retrieve the data icy_meta (PPChar) ? var theicytag : PPChar; resu : integer; ... resu := mpg123_icy(ahandle, theicytag); if resu = 0 then writeln(theicytag^); --> raise exception

Re: [fpc-pascal] SVN RSS

2017-07-25 Thread Andrew Haines via fpc-pascal
. Hello, Will it be re-enabled ? If you only want to see commits in a feed you can use this link to the unofficial github mirror: https://github.com/graemeg/freepascal/commits/master.atom It's synced every 15 minutes. Regards, Andrew H

Re: [fpc-pascal] Type helper for JNI pointers

2018-08-22 Thread Andrew Haines via fpc-pascal
On 08/12/2018 07:42 AM, Benito van der Zander wrote: But this does not work, because fpc thinks jclass and jobject are the same type, so there is only one type helper for both of the types allowed. Because it is declared as type jobject=pointer; jclass=jobject; What can we do

[fpc-pascal] Unrelated type helpers with the same members? Implement an interface with a type helper?

2022-12-22 Thread Andrew Haines via fpc-pascal
Hi what I want to do is similar to this question here: https://en.delphipraxis.net/topic/423-rtti-determine-record-helper-type-for-a-base-type/ I am going to create multiple type helpers for enums and I would like to look up the helper and use common methods AsString AsOrdinal to get/set the v

Re: [fpc-pascal] Unrelated type helpers with the same members? Implement an interface with a type helper?

2022-12-22 Thread Andrew Haines via fpc-pascal
cted     FValues: TStringArray;     FTypeName: String;   public     class function FromType(ATypeInfo: PTypeInfo): TEnumAttr;     constructor Create(Val1: String);     constructor Create(Val1, Val2: String); etc Maybe this can help someone else with a similar use case. Regards, Andrew Haines On 12/22

Re: [fpc-pascal] Unrelated type helpers with the same members? Implement an interface with a type helper?

2022-12-23 Thread Andrew Haines via fpc-pascal
On 12/23/22 5:24 AM, Ondrej Pokorny via fpc-pascal wrote: This may be simpler: [TEnumAttr(['YES', 'NO', 'COULD_BE'])]   TMyEnum = (meYes, meNo, meCouldBe); TEnumAttr = class(TCustomAttribute)   protected     FValues: TStringArray;     FTypeName: String;   public     class function FromType(ATy

  1   2   >