Hi Folks,
thank you all for your helpful answers! :-)
Waldek Hebisch wrote:
Markus Gerwinski wrote:
does GPC have a data type that corresponds to the wchar_t data type of gcc? If not, is there an easy way to port it and make sure it always has the same size as in gcc?
AFAICS we have no corresponding type. Adding such type to GPC is trivial, the hardest thing is choosing name -- 'WideChar' would be natural choice but in Delphi 'WideChar' is different (Windows insists on 16-bit chars). Hmm, `WcharInt' ?
I think in that case I'll rather work around the wchar, just treating any `WideString' as a pointer. Or by default translate it into unicode representation.
By the way, I belive that GNU autoconf have tests for size of wchar_t, so if you use autotools you should be able to define Pascal equivalent at configure time.
Wouldn't using this test mean passing its result to my units via a build argument? That's a thing I want to avoid. I want the units to be compilable with as little special arguments in the build command as possible.
Thanks again,
Markus