* Fix \x parsing in collectcatkeys again (thanks to Kaliber)
* Hide the CatalogStub::GetCatalog method so that if liblocalestub.a is missing from a localized image, it will not try to steal the catalog of another one. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37602 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -57,7 +57,8 @@ class BCatalog {
|
|||||||
// This must be included (statically linked) into each shared object needing
|
// This must be included (statically linked) into each shared object needing
|
||||||
// a catalog on its own (application, add-on, library, ...). The shared object
|
// a catalog on its own (application, add-on, library, ...). The shared object
|
||||||
// must also have a mimetype so that the catalog can be identified.
|
// must also have a mimetype so that the catalog can be identified.
|
||||||
class BCatalogStub {
|
class BCatalogStub
|
||||||
|
{
|
||||||
private:
|
private:
|
||||||
static BCatalog sCatalog;
|
static BCatalog sCatalog;
|
||||||
static vint32 sCatalogInitOnce;
|
static vint32 sCatalogInitOnce;
|
||||||
|
|||||||
@@ -19,10 +19,15 @@ vint32 BCatalogStub::sCatalogInitOnce = false;
|
|||||||
/* static */ BCatalog*
|
/* static */ BCatalog*
|
||||||
BCatalogStub::GetCatalog()
|
BCatalogStub::GetCatalog()
|
||||||
{
|
{
|
||||||
|
#if (__GNUC__ < 3)
|
||||||
|
asm volatile(".hidden GetCatalog__12BCatalogStub");
|
||||||
|
#else
|
||||||
|
asm volatile(".hidden _ZN12BCatalogStub10GetCatalogEv");
|
||||||
|
#endif
|
||||||
|
|
||||||
return be_locale_roster->GetCatalog(&sCatalog, &sCatalogInitOnce);
|
return be_locale_roster->GetCatalog(&sCatalog, &sCatalogInitOnce);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/* static */ void
|
/* static */ void
|
||||||
BCatalogStub::ForceReload()
|
BCatalogStub::ForceReload()
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -164,7 +164,7 @@ parseQuotedChars(BString& stringToParse)
|
|||||||
char tmp[3];
|
char tmp[3];
|
||||||
tmp[0] = *(in+1);
|
tmp[0] = *(in+1);
|
||||||
tmp[1] = *(in+2);
|
tmp[1] = *(in+2);
|
||||||
tmp[3] = '\0';
|
tmp[2] = '\0';
|
||||||
unsigned int hexchar = strtoul(tmp, NULL, 16);
|
unsigned int hexchar = strtoul(tmp, NULL, 16);
|
||||||
*out = hexchar;
|
*out = hexchar;
|
||||||
// skip the number
|
// skip the number
|
||||||
|
|||||||
@@ -168,7 +168,7 @@ parseQuotedChars(BString& stringToParse)
|
|||||||
char tmp[3];
|
char tmp[3];
|
||||||
tmp[0] = *(in+1);
|
tmp[0] = *(in+1);
|
||||||
tmp[1] = *(in+2);
|
tmp[1] = *(in+2);
|
||||||
tmp[3] = '\0';
|
tmp[2] = '\0';
|
||||||
unsigned int hexchar = strtoul(tmp, NULL, 16);
|
unsigned int hexchar = strtoul(tmp, NULL, 16);
|
||||||
*out = hexchar;
|
*out = hexchar;
|
||||||
// skip the number
|
// skip the number
|
||||||
|
|||||||
Reference in New Issue
Block a user