Re: [fpc-pascal] Bit manipulation

2006-02-20 Thread Jonas Raoni
On 2/20/06, Pianoman <[EMAIL PROTECTED]> wrote: > Hi, I need to know how can I see whether a certain bit of byte/word/dword is > set: or not: > function like this would be appreciated: > function isset(value: byte word or dword;bit:byte):boolean; > for example when i pass the function parrameter a

[fpc-pascal] Bit manipulation

2006-02-20 Thread Pianoman
Hi, I need to know how can I see whether a certain bit of byte/word/dword is set: or not: function like this would be appreciated: function isset(value: byte word or dword;bit:byte):boolean; for example when i pass the function parrameter a of type word and I want to see whether the bit 14 is set.

Re: [fpc-pascal] How to run FPC 2.x on QNX

2006-02-20 Thread Peter Vreman
> Hi, > > we are developing a console application under Delphi. The main task is > to use it under Windows. But there are some situations where we need > to run it under the realtime OS QNX. This is the reason why we use FPC > 1.0.x. But it lacks some interesting features like dynamic arrays. > > I

[fpc-pascal] RE: tidypas (libtidy) question

2006-02-20 Thread Jeff Pohlmeyer
> ... when I do this, I get an AV (in Delphi7). >tidyOptSetValue(fTidyDoc, TidyErrFile, ctmbstr(TIDY_NULL_FILE)); >tidySetErrorFile(fTidyDoc, ctmbstr(TIDY_NULL_FILE)); > { where TIDY_NULL_FILE = 'NUL' for Windows } If you can send me (off-list) a short sample program that shows the AV,

[fpc-pascal] How to run FPC 2.x on QNX

2006-02-20 Thread Michael Müller
Hi, we are developing a console application under Delphi. The main task is to use it under Windows. But there are some situations where we need to run it under the realtime OS QNX. This is the reason why we use FPC 1.0.x. But it lacks some interesting features like dynamic arrays. I know that QNX

Re: [fpc-pascal] Internal error 200312122

2006-02-20 Thread Peter Vreman
> #2 0x0809a6db in TCGARM__A_OP_CONST_REG_REG_CHECKOVERFLOW > (LIST=0x411f3f34, OP=OP_SUB, SIZE=OS_32, A=373, SRC=16777216, > DST=16777216, SETFLAGS=false, OVLOC= > {LOC = LOC_VOID, SIZE = 166, RESFLAGS = 186, VALUE = 134759354, > VALUE64 = 4713231088527885242, REFERENCE = {OFFSET = 13475