Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2002-10

FPC question,complex forward records?

4 messages · 3 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Andrew Johnson
Depends on the target. For Win32 it's ok. For Linux and other >Unixes it is wrong. wchar_t is 4 bytes there. You can use the UCS4Char type.

Where is UCS4Char declared? It doesn't apear to be in System, ObjFPC, Linux or SysUtils.

Andrew

_________________________________________________________________ MSN Photos is the easiest way to share and print your photos: http://photos.msn.com/support/worldwide.aspx

Reply by email

Florian Klaempfl
to Andrew Johnson
you wrote 8 lines
On Fri, 11 Oct 2002 07:22:53 +0200 (CEST) "Peter Vreman" wrote : >Depends on the target. For Win32 it's ok. For Linux and other >Unixes it >is wrong. wchar_t is 4 bytes there. You can use the UCS4Char type. Where is UCS4Char declared? It doesn't apear to be in System, ObjFPC, Linux or SysUtils.

Hmmm, we (the fpc developers) are assuming that everybody uses 1.1 already :) . 1.0.x doesn't have it. You've to
define it yourself as

{$ifdef VER1_0}
   UCS4Char = LongWord;
{$endif VER1_0}

This should be compatible with future version of FPC.

Reply by email

Andrew Johnson

Okay.. I think I have finished all of IDL, but before I send it in I have two more questions.

1.) I have declared WChar_t as WideChar, is this correct/safe? I think it is, but figure I should check first.

2.) There is a function IDL_tree_to_IDL with a File *output parameter, what should this be, Plongint? Pascal FILE type isn't compatible is it?

Andrew

_________________________________________________________________ Join the world�s largest e-mail service with MSN Hotmail. http://www.hotmail.com

Reply by email

Peter Vreman
to Andrew Johnson
Show quoted text 5 lines
Okay.. I think I have finished all of IDL, but before I send it in I have two more questions. 1.) I have declared WChar_t as WideChar, is this correct/safe? I think it is, but figure I should check first.

Depends on the target. For Win32 it's ok. For Linux and other Unixes it is wrong. wchar_t is 4 bytes there. You can use the UCS4Char type.

2.) There is a function IDL_tree_to_IDL with a File *output parameter, what should this be, Plongint? Pascal FILE type isn't compatible is it?

Just make it a void-pointer

Reply by email