Re: [fpc-pascal] libvga (graph unit)

2005-07-10 Thread Andres K. Foerster
Am Sunday, dem 03. Jul 2005 schrieb Andres K. Foerster: > Hello, > > I have a problem with the graph unit. The program compiles fine under > GNU/Linux, but not on FreeBSD. The SVGAlib is installed. But when > linking I get the following: > > | Linking grquiz > | /usr/local/lib/fpc/2.0.0/units/

Re: [fpc-pascal] Single or Double

2005-07-10 Thread Florian Klaempfl
Marcel Martin wrote: > Hello, > > I need to know *at compile time* whether the type Real is > Single or Double. Currently, I use this > > {$IFDEF FPC_HAS_TYPE_DOUBLE} > ... > {$ELSE} > {$IFDEF FPC_HAS_TYPE_SINGLE} > ... > {$ELSE} > {$FATAL Type Real should be defined as Single or as Double} >

Re: [fpc-pascal] function returning a record vs paramaters

2005-07-10 Thread Marco van de Voort
> | procedure my_procedure(var a_record: t_my_record); > | > | In this case, a simple pointer is passed to my_procedure. This is also > | the way most C libraries work, passing a pointer to a structure. > > Would a C program be able to call a Pascal SO or DLL file and directly read a > record from

[fpc-pascal] Single or Double

2005-07-10 Thread Marcel Martin
Hello, I need to know *at compile time* whether the type Real is Single or Double. Currently, I use this {$IFDEF FPC_HAS_TYPE_DOUBLE} ... {$ELSE} {$IFDEF FPC_HAS_TYPE_SINGLE} ... {$ELSE} {$FATAL Type Real should be defined as Single or as Double} {$ENDIF} // FPC_HAS_TYPE_SINGLE {$ENDIF} // F

Re: [fpc-pascal] ansistrings access by character

2005-07-10 Thread Florian Klaempfl
L505 wrote: | | Or if you wanted to prepend exceptions rather than catch them, the following | function could also work have worked (note you have to do a shortString cast, | AnsiStrings don't like access by character) | I was under the same impression for a long time, but some of the FPC RTL s