[haiku-commits] Re: r39369 - in haiku/branches/developer/bonefish/weak-symbols: headers/os/locale headers/private/locale src/apps/aboutsystem src/apps/deskbar src/apps/readonlybootprompt ...

  • From: Adrien Destugues <adestugu@xxxxxxxxx>
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Tue, 09 Nov 2010 08:44:49 +0100

Le 09/11/2010 05:06, Clemens Zeidler a écrit :
Am 09.11.2010, 15:14 Uhr, schrieb <ingo_weinhold@xxxxxx>:

Log:
* Got rid of global variables in the locale kit (be_locale[_roster],
  gMutableLocaleRoster, gRosterData). Introduced static getters instead.
  Probably breaks all optional packages using the locale kit.
* Unbroke the cycles in the sRosterData (formerly gRosterData) initialization: - The fDefaultLocale member is now initialized with some actual default BLanguage() and BFormattingConventions() (both "en_US"). It was formerly
    initializing itself with itself.
- The fDefaultTimeZone is now a pointer and lazily initialized. This breaks
    a longer cycle via ICU, tzset() and LibbeLocaleBackend.

What do you mean with cycle? and how weak symbols helps here? / whats the problem with global variables?

thanks,
    Clemens

var A is initialized as A = B;
var B is initialized as B = A;
In the end all values are undefined.

Other related posts: