Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
9eea1110
Kaydet (Commit)
9eea1110
authored
Eki 05, 2001
tarafından
Kay Ramme
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
added symbol lookup fallback to application rc (#88338#)
üst
80488e05
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
59 additions
and
19 deletions
+59
-19
bootstrap.cxx
sal/rtl/source/bootstrap.cxx
+25
-13
bootstrap.pl
sal/test/bootstrap.pl
+25
-2
makefile.mk
sal/test/makefile.mk
+6
-4
testbootstrap.ini
sal/test/testbootstrap.ini
+3
-0
No files found.
sal/rtl/source/bootstrap.cxx
Dosyayı görüntüle @
9eea1110
...
...
@@ -2,9 +2,9 @@
*
* $RCSfile: bootstrap.cxx,v $
*
* $Revision: 1.
6
$
* $Revision: 1.
7
$
*
* last change: $Author: kr $ $Date: 2001-
08-30 11:51:36
$
* last change: $Author: kr $ $Date: 2001-
10-05 08:00:21
$
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
...
...
@@ -224,10 +224,11 @@ static void getFromList(NameValueList *pNameValueList, rtl_uString **ppValue, rt
}
}
static
void
getValue
(
NameValueList
*
pNameValueList
,
rtl_uString
*
pName
,
rtl_uString
**
ppValue
,
rtl_uString
*
pDefault
)
static
sal_Bool
getValue
(
NameValueList
*
pNameValueList
,
rtl_uString
*
pName
,
rtl_uString
**
ppValue
,
rtl_uString
*
pDefault
)
{
static
const
OUString
sysUserConfig
(
RTL_CONSTASCII_USTRINGPARAM
(
"SYSUSERCONFIG"
));
static
const
OUString
sysUserHome
(
RTL_CONSTASCII_USTRINGPARAM
(
"SYSUSERHOME"
));
sal_Bool
result
=
sal_True
;
// we have build ins:
if
(
!
rtl_ustr_compare_WithLength
(
pName
->
buffer
,
pName
->
length
,
sysUserConfig
.
pData
->
buffer
,
sysUserConfig
.
pData
->
length
))
...
...
@@ -251,9 +252,12 @@ static void getValue(NameValueList *pNameValueList, rtl_uString * pName, rtl_uSt
if
(
!
*
ppValue
)
{
getFromEnvironment
(
ppValue
,
pName
);
if
(
!
*
ppValue
&&
pDefault
)
if
(
!
*
ppValue
)
{
rtl_uString_assign
(
ppValue
,
pDefault
);
result
=
sal_False
;
if
(
pDefault
)
rtl_uString_assign
(
ppValue
,
pDefault
);
}
}
}
...
...
@@ -266,6 +270,8 @@ static void getValue(NameValueList *pNameValueList, rtl_uString * pName, rtl_uSt
sValue
=
OUStringToOString
(
OUString
(
*
ppValue
),
RTL_TEXTENCODING_ASCII_US
);
OSL_TRACE
(
"bootstrap.cxx::getValue - name:%s value:%s
\n
"
,
sName
.
getStr
(),
sValue
.
getStr
());
#endif
return
result
;
}
typedef
struct
Bootstrap_Impl
{
...
...
@@ -359,14 +365,16 @@ sal_Bool SAL_CALL rtl_bootstrap_get_from_handle(rtlBootstrapHandle handle, rtl_u
{
MutexGuard
guard
(
Mutex
::
getGlobalMutex
());
sal_Bool
result
=
sal_False
;
sal_Bool
found
=
sal_False
;
if
(
ppValue
&&
pName
)
{
if
(
handle
)
{
rtl_uString_release
(
*
ppValue
);
*
ppValue
=
0
;
if
(
*
ppValue
)
{
rtl_uString_release
(
*
ppValue
);
*
ppValue
=
0
;
}
getValue
(
&
((
Bootstrap_Impl
*
)
handle
)
->
_nameValueList
,
pName
,
ppValue
,
pDefault
);
found
=
getValue
(
&
((
Bootstrap_Impl
*
)
handle
)
->
_nameValueList
,
pName
,
ppValue
,
pDefault
);
if
(
*
ppValue
)
...
...
@@ -376,18 +384,22 @@ sal_Bool SAL_CALL rtl_bootstrap_get_from_handle(rtlBootstrapHandle handle, rtl_u
rtl_uString_assign
(
ppValue
,
result
.
pData
);
}
if
(
!
found
)
{
// fall back to executable rc
if
(((
Bootstrap_Impl
*
)
handle
)
->
_iniName
!=
getIniFileNameImpl
())
found
=
rtl_bootstrap_get
(
pName
,
ppValue
,
pDefault
);
}
if
(
!*
ppValue
)
rtl_uString_new
(
ppValue
);
else
result
=
sal_True
;
}
else
result
=
rtl_bootstrap_get
(
pName
,
ppValue
,
pDefault
);
found
=
rtl_bootstrap_get
(
pName
,
ppValue
,
pDefault
);
}
return
result
;
return
found
;
}
void
SAL_CALL
rtl_bootstrap_get_iniName_from_handle
(
rtlBootstrapHandle
handle
,
rtl_uString
**
ppIniName
)
...
...
sal/test/bootstrap.pl
Dosyayı görüntüle @
9eea1110
...
...
@@ -5,9 +5,9 @@ eval 'exec perl -wS $0 ${1+"$@"}'
#
# $RCSfile: bootstrap.pl,v $
#
# $Revision: 1.
1
$
# $Revision: 1.
2
$
#
# last change: $Author: kr $ $Date: 2001-
08-30 12:17:44
$
# last change: $Author: kr $ $Date: 2001-
10-05 08:00:22
$
#
# The Contents of this file are made available subject to the terms of
# either of the following licenses
...
...
@@ -116,6 +116,29 @@ if (!$rc) {
$state
=
0
;
}
if
(
$ENV
{
GUI
}
eq
"WNT"
)
{
$rc
=
system
"./testbootstrap"
,
"inherited_value"
,
'-env:MYBOOTSTRAPTESTVALUE=$INHERITED_VALUE'
,
"-env:iniName=ini.ini"
;
}
else
{
$rc
=
system
"./testbootstrap"
,
"inherited_value"
,
'-env:MYBOOTSTRAPTESTVALUE=$INHERITED_VALUE'
,
"-env:iniName=inirc"
;
}
if
(
!
$rc
)
{
$comment
=
$comment
.
"inherited value not passed\n"
;
$state
=
0
;
}
if
(
$ENV
{
GUI
}
eq
"WNT"
)
{
$rc
=
system
"./testbootstrap"
,
"inherited_overwritten_value"
,
'-env:MYBOOTSTRAPTESTVALUE=$INHERITED_OVERWRITTEN_VALUE'
,
"-env:iniName=ini.ini"
;
}
else
{
$rc
=
system
"./testbootstrap"
,
"inherited_overwritten_value"
,
'-env:MYBOOTSTRAPTESTVALUE=$INHERITED_OVERWRITTEN_VALUE'
,
"-env:iniName=inirc"
;
}
if
(
!
$rc
)
{
$comment
=
$comment
.
"inherited overwritten value not passed\n"
;
$state
=
0
;
}
delete
$ENV
{
MYBOOTSTRAPTESTVALUE
};
...
...
sal/test/makefile.mk
Dosyayı görüntüle @
9eea1110
...
...
@@ -2,9 +2,9 @@
#
# $RCSfile: makefile.mk,v $
#
# $Revision: 1.1
0
$
# $Revision: 1.1
1
$
#
# last change: $Author:
jbu $ $Date: 2001-09-26 16:42:06
$
# last change: $Author:
kr $ $Date: 2001-10-05 08:00:22
$
#
# The Contents of this file are made available subject to the terms of
# either of the following licenses
...
...
@@ -127,14 +127,16 @@ $(BIN)$/$(APP2TARGET).exe : $(APP2TARGETN)
cp
$(APP2TARGETN)
$@
$(BIN)$/inirc
:
echo
"MYBOOTSTRAPTESTVALUE=auxaux"
>
$@
echo
"MYBOOTSTRAPTESTVALUE=auxaux"
>
$@
echo
"INHERITED_OVERWRITTEN_VALUE=inherited_overwritten_value"
>>
$@
.ELSE
ALL
:
$(BIN)$/ini.ini
$(BIN)$/ini.ini
:
echo
MYBOOTSTRAPTESTVALUE
=
auxaux
>
$@
echo
MYBOOTSTRAPTESTVALUE
=
auxaux
>
$@
echo
INHERITED_OVERWRITTEN_VALUE
=
inherited_overwritten_value
>>
$@
.ENDIF
...
...
sal/test/testbootstrap.ini
Dosyayı görüntüle @
9eea1110
MYBOOTSTRAPTESTVALUE
=
file
INHERITED_VALUE
=
inherited_value
INHERITED_OVERWRITTEN_VALUE
=
not_overwritten
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment