Re: glib on Symbian



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]