Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
cpython
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ç
Batuhan Osman TASKAYA
cpython
Commits
b6f657c0
Kaydet (Commit)
b6f657c0
authored
Haz 28, 2000
tarafından
Guido van Rossum
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Trent Mick: use size_t instead of int where appropriate (various spots).
üst
7d0ae5e1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
9 deletions
+9
-9
getpath.c
Modules/getpath.c
+9
-9
No files found.
Modules/getpath.c
Dosyayı görüntüle @
b6f657c0
...
...
@@ -163,7 +163,7 @@ static void
reduce
(
dir
)
char
*
dir
;
{
in
t
i
=
strlen
(
dir
);
size_
t
i
=
strlen
(
dir
);
while
(
i
>
0
&&
dir
[
i
]
!=
SEP
)
--
i
;
dir
[
i
]
=
'\0'
;
...
...
@@ -241,7 +241,7 @@ joinpath(buffer, stuff)
char
*
buffer
;
char
*
stuff
;
{
in
t
n
,
k
;
size_
t
n
,
k
;
if
(
stuff
[
0
]
==
SEP
)
n
=
0
;
else
{
...
...
@@ -262,7 +262,7 @@ search_for_prefix(argv0_path, home)
char
*
argv0_path
;
char
*
home
;
{
in
t
n
;
size_
t
n
;
char
*
vpath
;
/* If PYTHONHOME is set, we believe it unconditionally */
...
...
@@ -331,7 +331,7 @@ search_for_exec_prefix(argv0_path, home)
char
*
argv0_path
;
char
*
home
;
{
in
t
n
;
size_
t
n
;
/* If PYTHONHOME is set, we believe it unconditionally */
if
(
home
)
{
...
...
@@ -393,8 +393,8 @@ calculate_path()
char
argv0_path
[
MAXPATHLEN
+
1
];
int
pfound
,
efound
;
/* 1 if found; -1 if found build directory */
char
*
buf
;
in
t
bufsz
;
in
t
prefixsz
;
size_
t
bufsz
;
size_
t
prefixsz
;
char
*
defpath
=
pythonpath
;
#ifdef WITH_NEXT_FRAMEWORK
NSModule
pythonModule
;
...
...
@@ -429,7 +429,7 @@ calculate_path()
char
*
delim
=
strchr
(
path
,
DELIM
);
if
(
delim
)
{
in
t
len
=
delim
-
path
;
size_
t
len
=
delim
-
path
;
strncpy
(
progpath
,
path
,
len
);
*
(
progpath
+
len
)
=
'\0'
;
}
...
...
@@ -557,8 +557,8 @@ calculate_path()
}
if
(
delim
)
{
in
t
len
=
delim
-
defpath
+
1
;
in
t
end
=
strlen
(
buf
)
+
len
;
size_
t
len
=
delim
-
defpath
+
1
;
size_
t
end
=
strlen
(
buf
)
+
len
;
strncat
(
buf
,
defpath
,
len
);
*
(
buf
+
end
)
=
'\0'
;
}
...
...
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