Re: [fpc-pascal] Who applies patches for FPC

2006-09-13 Thread Graeme Geldenhuys
Umm, I don't use the snapshots, only the SubVersion source which I normally update every Monday. I thought the snapshots get created nightly from the SubVersion source. Graeme. On 13/09/06, Leonardo M. Ramé <[EMAIL PROTECTED]> wrote: Maybe in the source version the patch is included but i've

Re: [fpc-pascal] NULL pointer to array of integer

2006-09-13 Thread Eduardo
At 18:37 13/09/2006, you wrote: On 13 Sep 2006, at 14:00, Eduardo wrote: I remember that on c a null pointer has value 0, but in ansi pascal it has value 23. The value of nil is not defined in the ISO Ansi Pascal standard. In FPC, nil = pointer(0) on all currently supported platforms, but in

Re: [fpc-pascal] NULL pointer to array of integer

2006-09-13 Thread Vinzent Höfler
Jonas Maebe wrote: On 13 Sep 2006, at 19:39, Vinzent Höfler wrote: In FPC, nil = pointer(0) on all currently supported platforms, but in principle it could be anything. I'm making enemies now, Where? but: If the NIL pointer is represented by another value (like 0xF780 or such) on

Re: [fpc-pascal] ASM Converting from Turbo Pascal

2006-09-13 Thread Rainer Stratmann
Am Dienstag, 29. August 2006 11:24 schrieb Peter Vreman: > > Hello, > > > > in fpc you have to tell the compiler which registers are used in asm > > code. > > > > for example > > > > asm > >mov ax,123 > > end [eax]; > > > > Is it possible to make a compilerswitch that the compiler tells th

Re: [fpc-pascal] NULL pointer to array of integer

2006-09-13 Thread Jonas Maebe
On 13 Sep 2006, at 19:39, Vinzent Höfler wrote: In FPC, nil = pointer(0) on all currently supported platforms, but in principle it could be anything. I'm making enemies now, Where? but: If the NIL pointer is represented by another value (like 0xF780 or such) on a given target p

Re: [fpc-pascal] Mouse cursor in console program

2006-09-13 Thread Tomas Hajny
Kornel Kisielewicz wrote: Hello, > I tried to google for it, I searched in the documentation, but no luck: > How to remove the mouse cursor that shows up in a w32 console program, > when running fullscreen? If possible I would also like to avoid using > windows unit... I'm no Win32 programmer (I

Re: [fpc-pascal] NULL pointer to array of integer

2006-09-13 Thread Vinzent Höfler
Jonas Maebe wrote: On 13 Sep 2006, at 14:00, Eduardo wrote: I remember that on c a null pointer has value 0, but in ansi pascal it has value 23. > The value of nil is not defined in the ISO Ansi Pascal standard. Neither it is in any official C standard. > In FPC, nil = pointer(0) on all c

Re: [fpc-pascal] NULL pointer to array of integer

2006-09-13 Thread Vinzent Höfler
Marc Santhoff wrote: Am Mittwoch, den 13.09.2006, 14:00 +0200 schrieb Eduardo: At 10:04 13/09/2006, you wrote: Hi, while fiddling with some C'isms I've stumbled over a function in a library expecting an array of integers *or* a NULL pointer. How can I hand over any NIL or 0 or something equal

Re: [fpc-pascal]Book....

2006-09-13 Thread Dean Zobec
bajrang soni ha scritto: > Hello. I just downloaded you Free Pascal software. I haven't programmed in > PASCAL for about 12 years. I am looking for a book or e-book that will > teach > me how to use the NEW pascal. What is the best reference material that you > can think of, consider me a beginner

Re: [fpc-pascal]Book....

2006-09-13 Thread Ewald Horn
Mmm, I used Pascal last in Turbo Pascal 7 days... It's surprising how much is coming back from all those years ago just by going through the FPC examples and documentation. Sure, I do find the OOP stuff a little confusing at times, but keep at it, Pascal still rocks! Ewald ___

Re: [fpc-pascal] Who applies patches for FPC

2006-09-13 Thread Leonardo M. Ram
Maybe in the source version the patch is included but i've downloaded current compiled version from "ftp://ftp.freepascal.org/pub/fpc/snapshot/v21/i386-win32/fpc-2.1.1.i386-win32.zip"; and it isn't included. --- Graeme Geldenhuys <[EMAIL PROTECTED]> wrote: > I haven't noticed that, sorry. I do

Re: [fpc-pascal]Book....

2006-09-13 Thread Tomas Hajny
Michael Van Canneyt wrote: > On Wed, 13 Sep 2006, Marco Ciampa wrote: >> On Wed, Sep 13, 2006 at 10:05:09AM +0200, Michael Van Canneyt wrote: >>> On Tue, 12 Sep 2006, bajrang soni wrote: >>> Hello. I just downloaded you Free Pascal software. I haven't programmed in PASCAL for about 1

Re: [fpc-pascal] NULL pointer to array of integer

2006-09-13 Thread Jonas Maebe
On 13 Sep 2006, at 14:00, Eduardo wrote: I remember that on c a null pointer has value 0, but in ansi pascal it has value 23. The value of nil is not defined in the ISO Ansi Pascal standard. In FPC, nil = pointer(0) on all currently supported platforms, but in principle it could be anyth

Re: [fpc-pascal] NULL pointer to array of integer

2006-09-13 Thread Marc Santhoff
Am Mittwoch, den 13.09.2006, 14:00 +0200 schrieb Eduardo: > At 10:04 13/09/2006, you wrote: > >Hi, > > > >while fiddling with some C'isms I've stumbled over a function in a > >library expecting an array of integers *or* a NULL pointer. > > > >How can I hand over any NIL or 0 or something equal to N

Re: [fpc-pascal] Who applies patches for FPC

2006-09-13 Thread Burkhard Carstens
Am Mittwoch, 13. September 2006 12:00 schrieb Graeme Geldenhuys: > Hi, > > > Just come to the fpc IRC channel and talk about your patch, try to > > find someone in charge and bug him again and again, until it is > > either applied or denied ;-) > > > :-) > > I have never used IRC before, but have h

Re: [fpc-pascal] fpdoc and overloaded functions.

2006-09-13 Thread Graeme Geldenhuys
On 13/09/06, Michael Van Canneyt <[EMAIL PROTECTED]> wrote: > Problems: > 1. How do I get a different description for each overloaded Find method. You can't. Thinking about this, I guess it makes sense. In my case (and should apply to all overloaded methods) the Find function does the same th

Re: [fpc-pascal] fpdoc and overloaded functions.

2006-09-13 Thread Michael Van Canneyt
On Wed, 13 Sep 2006, Graeme Geldenhuys wrote: Hi, What is the best way to document overloaded functions using fpdoc? For example, I have a Find function which has been overloaded four times with different parameters. Looking in the generated *.xml file, I only have one Find element, followe

[fpc-pascal] Re: fpdoc and overloaded functions.

2006-09-13 Thread Graeme Geldenhuys
I see FPC docs have the same issue... For example: TypInfo.GetPropList http://lazarus-ccr.sourceforge.net/docs/rtl/typinfo/getproplist.html No easy way to document each overloaded method... Regards, - Graeme - On 13/09/06, Graeme Geldenhuys <[EMAIL PROTECTED]> wrote: Hi, What is the best w

[fpc-pascal] fpdoc and overloaded functions.

2006-09-13 Thread Graeme Geldenhuys
Hi, What is the best way to document overloaded functions using fpdoc? For example, I have a Find function which has been overloaded four times with different parameters. Looking in the generated *.xml file, I only have one Find element, followed by all the different parameters, each in there o

Re: [fpc-pascal] Who applies patches for FPC

2006-09-13 Thread Graeme Geldenhuys
I haven't noticed that, sorry. I double checked it now with my current 2.1.1 (r4609) and the fix for bug #7187 is still there. All my unit tests testing for that bug pass. Not sure if it got into FPC 2.0.4 though. Should be worth a check. Regards, - Graeme - On 13/09/06, Leonardo M. Ramé <

Re: [fpc-pascal] NULL pointer to array of integer

2006-09-13 Thread Jonas Maebe
On 13 Sep 2006, at 10:04, Marc Santhoff wrote: (* hid_t H5Screate_simple(int rank, const hsize_t * dims, const hsize_t * maxdims ) --> h2pas --> Add an overloaded literal translation if you want to be able to pass nil: type phsize_t = ^hsize_t; function H5Screate_simple(rank:longint;

Re: [fpc-pascal] NULL pointer to array of integer

2006-09-13 Thread Eduardo
At 10:04 13/09/2006, you wrote: Hi, while fiddling with some C'isms I've stumbled over a function in a library expecting an array of integers *or* a NULL pointer. How can I hand over any NIL or 0 or something equal to NULL in C that is accepted by fpc? Using NIL or 0 does not work certainly...

Re: [fpc-pascal] Who applies patches for FPC

2006-09-13 Thread Leonardo M. Ram
Yes, do you remember the issue http://www.freepascal.org/mantis/view.php?id=7187 ?. The patch didn't seems to exist in newer versions of 2.1.1, and in mantis it's marked as resolved. --- Graeme Geldenhuys <[EMAIL PROTECTED]> wrote: > Hi, > > > Just come to the fpc IRC channel and talk about yo

Re: [fpc-pascal]Book....

2006-09-13 Thread Mattias Gaertner
On Wed, 13 Sep 2006 11:45:04 +0200 (Romance Daylight Time) Michael Van Canneyt <[EMAIL PROTECTED]> wrote: > > > On Wed, 13 Sep 2006, Marco Ciampa wrote: > > > On Wed, Sep 13, 2006 at 10:05:09AM +0200, Michael Van Canneyt wrote: > >> On Tue, 12 Sep 2006, bajrang soni wrote: > >> > >>> Hello. I j

Re: [fpc-pascal] Who applies patches for FPC

2006-09-13 Thread Graeme Geldenhuys
Hi, Just come to the fpc IRC channel and talk about your patch, try to find someone in charge and bug him again and again, until it is either applied or denied ;-) :-) I have never used IRC before, but have heard of it.. What server do I connect to, and what channel in that server do I use? I

Re: [fpc-pascal]Book....

2006-09-13 Thread Michael Van Canneyt
On Wed, 13 Sep 2006, Marco Ciampa wrote: On Wed, Sep 13, 2006 at 10:05:09AM +0200, Michael Van Canneyt wrote: On Tue, 12 Sep 2006, bajrang soni wrote: Hello. I just downloaded you Free Pascal software. I haven't programmed in PASCAL for about 12 years. I am looking for a book or e-book that

Re: [fpc-pascal]Book....

2006-09-13 Thread Marco Ciampa
On Wed, Sep 13, 2006 at 10:05:09AM +0200, Michael Van Canneyt wrote: > On Tue, 12 Sep 2006, bajrang soni wrote: > > >Hello. I just downloaded you Free Pascal software. I haven't programmed in > >PASCAL for about 12 years. I am looking for a book or e-book that will > >teach > >me how to use the NE

Re: [fpc-pascal] Who applies patches for FPC

2006-09-13 Thread Burkhard Carstens
Am Mittwoch, 13. September 2006 10:46 schrieb Graeme Geldenhuys: > Hi, > > Is there someone in charge of applying patches to FPC? If so, is > that someone on leave? > I have noticed quite a few patches being sent to FPC-Devel mailing > list, but hardly any gets applied. 6 months ago, this was a >

[fpc-pascal] Who applies patches for FPC

2006-09-13 Thread Graeme Geldenhuys
Hi, Is there someone in charge of applying patches to FPC? If so, is that someone on leave? I have noticed quite a few patches being sent to FPC-Devel mailing list, but hardly any gets applied. 6 months ago, this was a different story. I'm just asking... ;-) I for one have submitted a few pa

Re: [fpc-pascal] Shared library

2006-09-13 Thread Marc Santhoff
Am Mittwoch, den 13.09.2006, 09:34 +0200 schrieb Carsten Bager: > If I create a shared library with this source code, the lib file has a > size of 368806 bytes. Can I do anything to reduce the size. Have you tried smart linking? I don't know if it works for libraries though ... fpc -XX ... HTH,

Re: [fpc-pascal]Book....

2006-09-13 Thread Michael Van Canneyt
On Tue, 12 Sep 2006, bajrang soni wrote: Hello. I just downloaded you Free Pascal software. I haven't programmed in PASCAL for about 12 years. I am looking for a book or e-book that will teach me how to use the NEW pascal. What is the best reference material that you can think of, consider me

[fpc-pascal] NULL pointer to array of integer

2006-09-13 Thread Marc Santhoff
Hi, while fiddling with some C'isms I've stumbled over a function in a library expecting an array of integers *or* a NULL pointer. How can I hand over any NIL or 0 or something equal to NULL in C that is accepted by fpc? Using NIL or 0 does not work certainly... In code: hsize_t = qword; (*

Re: [fpc-pascal] Shared library

2006-09-13 Thread Graeme Geldenhuys
Try the 'strip' command. I know it works with executables, not sure about libraries. It is included in the FPC bin directory. eg: strip Regards, - Graeme - On 13/09/06, Carsten Bager <[EMAIL PROTECTED]> wrote: If I create a shared library with this source code, the lib file has a s

[fpc-pascal] Shared library

2006-09-13 Thread Carsten Bager
If I create a shared library with this source code, the lib file has a size of 368806 bytes. Can I do anything to reduce the size. Carsten library u; Procedure Test; Begin WriteLn('--- Test OK '); End

[fpc-pascal]Book....

2006-09-13 Thread bajrang soni
Hello. I just downloaded you Free Pascal software. I haven't programmed inPASCAL for about 12 years. I am looking for a book or e-book that will teachme how to use the NEW pascal. What is the best reference material that youcan think of, consider me a beginner again!I need to get up to speed with p

[fpc-pascal] Mouse cursor in console program

2006-09-13 Thread Kornel Kisielewicz
Hello all, I tried to google for it, I searched in the documentation, but no luck: How to remove the mouse cursor that shows up in a w32 console program, when running fullscreen? If possible I would also like to avoid using windows unit... -- At your service, Kornel Kisielewicz (adminATchaosf