Re: glib on Symbian
- From: Behdad Esfahbod <behdad behdad org>
- To: sparkymat <csy0013 googlemail com>
- Cc: Biswajeet Dash symbian com, Tor Lillqvist <tml iki fi>, gtk+ dev <gtk-devel-list gnome org>
- Subject: Re: glib on Symbian
- Date: Fri, 05 Sep 2008 16:44:01 -0400
sparkymat wrote:
> We are doing what you have mentioned above, i.e. defining name of global
> variables as function calls returning a pointer.
So, this limitation is *only* for the simulator, not the actual Symbian
running on mobile hardware, right? If that's the case I believe the simulator
should be fixed instead.
behdad
> For example, in gdate.c,
>
> static gboolean using_twodigit_years = FALSE;
>
> would become
>
> #if defined(__SYMBIAN32__) && defined(EMULATOR)
> PLS(using_twodigit_years,gdate, gboolean)
> #define using_twodigit_years
> (*FUNCTION_NAME(using_twodigit_years ,gdate)()
> #else
> static gboolean using_twodigit_years = FALSE;
> #endif
>
> where the PLS() macro will add the specified variable to the Process
> Local Storage, and the define will map it to a function pointer.
>
> This is repeated for all write-able static data (WSD).
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]