Re: [fpc-pascal] Compile ANSI unit as UTF8

2010-09-05 Thread ik
You can use {$codepage utf8} I think, but if you are using ISO8859-6 (Arabic right ?) then I'm not sure that it will convert it, but rater treat it as a UTF-8 Ido On Mon, Sep 6, 2010 at 02:28, Zaher Dirkey wrote: > Hi, > > I have unit with Ansi strings but i want to compile it as UTF-8 how to a

[fpc-pascal] Compile ANSI unit as UTF8

2010-09-05 Thread Zaher Dirkey
Hi, I have unit with Ansi strings but i want to compile it as UTF-8 how to ask the compiler to convert it to utf8 before compile it? Thanks in advance -- Zaher Dirkey ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal

[fpc-pascal] Re: SEH

2010-09-05 Thread Bernd Kreuss
On 05.09.2010 23:00, Bernd Kreuss wrote: > the unit seh.pas contains the handler. This handler is very simple, it > will handle all exceptions and always restore the stack to the state it > was when the handler was installed and use the address that was pushed > to the stack to continue execution.

[fpc-pascal] SEH

2010-09-05 Thread Bernd Kreuss
Hi, I was bored and I played around with SEH exceptions. It might be useful in some cases when you can't catch an exception in a dll but there might also be easier methods in some cases. I though before the code will be forgotten and deleted again I post it here: the unit seh.pas contains the han

[fpc-pascal] asm in att mode: SECTION:DISP(BASE, INDEX, SCALE)

2010-09-05 Thread Bernd Kreuss
{$asmmode att} asm pushl %fs:0 end; Error: Invalid Reference Syntax I am referring to this: http://www.cs.northwestern.edu/~pdinda/ics-f09/doc/gas-notes.txt Is this syntax wrong? I remember having seen it exactly in this form in the .s file before I converted all my code to att syntax. In int

Re: [fpc-pascal] FPC and ANSI C

2010-09-05 Thread Jonas Maebe
On 05 Sep 2010, at 19:56, Valdas Jankūnas wrote: > I writing firmware for device (with Atmel 8bit) using ANSI C, also I writing > software for PC (to communicate with that device) using Free Pascal. Both > firmware and software using some same numeric constants (used in > communication protoco

[fpc-pascal] address of a label (possibly stupid question)

2010-09-05 Thread Bernd Kreuss
Hi, I have a probably stupid question, experienced assembler programmers will probably laugh but here is my problem: I am trying to push the address of a label onto the stack but it doesn't seem to work. __finally is a label and handler is the name of a function. I can push the address of the fun

[fpc-pascal] FPC and ANSI C

2010-09-05 Thread Valdas Jankūnas
Hello, is there way to share constants between FPC and ANSI C? I writing firmware for device (with Atmel 8bit) using ANSI C, also I writing software for PC (to communicate with that device) using Free Pascal. Both firmware and software using some same numeric constants (used in communication

Re: [fpc-pascal] How do you test for set membership?

2010-09-05 Thread Frank Church
On 5 September 2010 14:48, Jonas Maebe wrote: > > On 05 Sep 2010, at 15:05, Frank Church wrote: > > > Running the code below produces this error message: > > rcacsbilling.pas(3660,25) Error: Identifier not found "dbgRemoteLinks" > > > > if [dbgRemoteLinks] in dbgActiveOptions then > >

Re: [fpc-pascal] How do you test for set membership?

2010-09-05 Thread Michael Fuchs
Frank Church schrieb: > if [dbgRemoteLinks] in dbgActiveOptions then > mmoURLPageContent.Lines.AddStrings(procList); Try if dbgRemoteLinks in dbgActiveOptions then WriteLn('Yes'); htht Michael ___ fpc-pascal maillist - fpc-pascal@

Re: [fpc-pascal] How do you test for set membership?

2010-09-05 Thread Jonas Maebe
On 05 Sep 2010, at 15:05, Frank Church wrote: > Running the code below produces this error message: > rcacsbilling.pas(3660,25) Error: Identifier not found "dbgRemoteLinks" > > if [dbgRemoteLinks] in dbgActiveOptions then >mmoURLPageContent.Lines.AddStrings(procList); > > Is that t

[fpc-pascal] How do you test for set membership?

2010-09-05 Thread Frank Church
I have this code: type dbgOptions = (dbgAMI, dbgRemoteLinks); var dbgActiveOptions: set of dbgOptions; procedure SetupDefaultvars; begin dbgActiveOptions := []; end; Running the code below produces this error message: rcacsbilling.pas(3660,25) Error: Identifier not found "dbgRemoteLink

Re: [fpc-pascal] Migrating this mailing list to Nabble2

2010-09-05 Thread Jonas Maebe
On 03 Sep 2010, at 06:51, leledumbo wrote: > Any administrator that registers this mailing list to Nabble, would you mind > upgrading to Nabble2? It was not registered by an administrator. Several years ago, I got a mail from Nabble asking whether it was ok for them to archive it and I said yes