[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Tinycc-devel] Win: Add Unicode support for _tmain and _tWinMain

From: YX Hao
Subject: Re: [Tinycc-devel] Win: Add Unicode support for _tmain and _tWinMain
Date: Wed, 13 Aug 2014 18:45:55 +0800


From: "grischka" <address@hidden>
YX Hao wrote:
Hi gr and there,

Please take this one. Mixed codes needs more attention. Tested.

- "s->unicode_entry" is used (in compilation) before it is set
  (in the link phase).

I used the "build-tcc.bat".

In directory Win32 I run:
gcc -c -Os -fno-strict-aliasing -DTCC_TARGET_PE -DTCC_TARGET_I386 -DLIBTCC_AS_DLL -DONE_SOURCE ../libtcc.c
gcc -shared -s libtcc.o -o a.dll
It passed. Can you explain what do you mean?

- No matter what, tcc_run() doesn't pass a wchar_t** argv unless
  tcc itself is compiled for unicode.

Yes, I agree.
But it generate Unicode output first, and then who need this should
convert tcc's "main" to "_tmain" and the functions that does not
use the Unicode form should be converted. Should it be done now for a
complete Unicode support? It's could be a lot of changes.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]