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
a8f357cf
Kaydet (Commit)
a8f357cf
authored
Kas 07, 2012
tarafından
Michael Stahl
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
concat-deps: on Windows, compare paths case-insensitively
Change-Id: I5e5d9b39cb0440644bf3ffb8dca4913dc123f672
üst
eb94d42d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
5 deletions
+7
-5
concat-deps.c
solenv/bin/concat-deps.c
+7
-5
No files found.
solenv/bin/concat-deps.c
Dosyayı görüntüle @
a8f357cf
...
...
@@ -97,9 +97,11 @@
#ifdef __windows
#define FILE_O_RDONLY _O_RDONLY
#define FILE_O_BINARY _O_BINARY
#define PATHNCMP strncasecmp
/* MSVC converts paths to lower-case sometimes? */
#else
/* not windaube */
#define FILE_O_RDONLY O_RDONLY
#define FILE_O_BINARY 0
#define PATHNCMP strncmp
#endif
/* not windaube */
#ifndef TRUE
...
...
@@ -730,7 +732,7 @@ elide_dependency(const char* key, int key_len,
#endif
/* .hdl files are always matched by .hpp */
if
(
key_len
>
4
&&
!
strncmp
(
key
+
key_len
-
4
,
".hdl"
,
4
))
if
(
key_len
>
4
&&
!
PATHNCMP
(
key
+
key_len
-
4
,
".hdl"
,
4
))
return
1
;
/* boost brings a plague of header files */
...
...
@@ -746,13 +748,13 @@ elide_dependency(const char* key, int key_len,
{
if
(
0
==
boost
)
{
if
(
!
strncmp
(
key
+
i
+
1
,
"solver/"
,
7
))
if
(
!
PATHNCMP
(
key
+
i
+
1
,
"solver/"
,
7
))
{
boost
++
;
continue
;
}
}
else
if
(
!
strncmp
(
key
+
i
+
1
,
"inc/external/boost/"
,
19
))
else
if
(
!
PATHNCMP
(
key
+
i
+
1
,
"inc/external/boost/"
,
19
))
{
if
(
boost_count
)
(
*
boost_count
)
++
;
...
...
@@ -761,7 +763,7 @@ elide_dependency(const char* key, int key_len,
}
if
(
0
==
unpacked
)
{
if
(
!
strncmp
(
key
+
i
+
1
,
"workdir/"
,
8
))
if
(
!
PATHNCMP
(
key
+
i
+
1
,
"workdir/"
,
8
))
{
unpacked
=
1
;
continue
;
...
...
@@ -769,7 +771,7 @@ elide_dependency(const char* key, int key_len,
}
else
{
if
(
!
strncmp
(
key
+
i
+
1
,
"UnpackedTarball/"
,
16
))
if
(
!
PATHNCMP
(
key
+
i
+
1
,
"UnpackedTarball/"
,
16
))
{
if
(
unpacked_end
)
*
unpacked_end
=
strchr
(
key
+
i
+
17
,
'/'
);
...
...
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