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
241551c1
Kaydet (Commit)
241551c1
authored
Agu 11, 2000
tarafından
Fred Drake
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
do_env_cfuncdesc(): Push as much of the generated HTML into one place
as possible for better readability. Revise a comment.
üst
a8e484c8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
python.perl
Doc/perl/python.perl
+8
-8
No files found.
Doc/perl/python.perl
Dosyayı görüntüle @
241551c1
...
@@ -644,23 +644,23 @@ sub do_env_cfuncdesc{
...
@@ -644,23 +644,23 @@ sub do_env_cfuncdesc{
my
$idx
=
make_str_index_entry
(
my
$idx
=
make_str_index_entry
(
"<tt class='cfunction'>$function_name()</tt>"
.
get_indexsubitem
());
"<tt class='cfunction'>$function_name()</tt>"
.
get_indexsubitem
());
$idx
=~
s/ \(.*\)//
;
$idx
=~
s/ \(.*\)//
;
$idx
=~
s/\(\)//
;
# ????
$idx
=~
s/\(\)//
;
# ????
- why both of these?
my
$result_rc
=
get_refcount
(
$function_name
,
''
);
my
$result_rc
=
get_refcount
(
$function_name
,
''
);
my
$rcinfo
=
''
;
my
$rcinfo
=
''
;
if
(
$result_rc
eq
'+1'
)
{
if
(
$result_rc
eq
'+1'
)
{
$rcinfo
=
'<span class="label">Return value:</span>'
$rcinfo
=
'New reference'
;
.
"\n <span class=\"value\">New reference.</span>"
;
}
}
elsif
(
$result_rc
eq
'0'
)
{
elsif
(
$result_rc
eq
'0'
)
{
$rcinfo
=
'<span class="label">Return value:</span>'
$rcinfo
=
'Borrowed reference'
;
.
"\n <span class=\"value\">Borrowed reference.</span>"
;
}
}
elsif
(
$result_rc
eq
'null'
)
{
elsif
(
$result_rc
eq
'null'
)
{
$rcinfo
=
'<span class="label">Return value:</span>'
$rcinfo
=
'Always <tt class="constant">NULL</tt>'
;
.
"\n <span class=\"value\">Always NULL.</span>"
;
}
}
if
(
$rcinfo
ne
''
)
{
if
(
$rcinfo
ne
''
)
{
$rcinfo
=
"\n<div class=\"refcount-info\">\n $rcinfo\n</div>"
;
$rcinfo
=
(
"\n<div class=\"refcount-info\">"
.
"\n <span class=\"label\">Return value:</span>"
.
"\n <span class=\"value\">$rcinfo.</span>"
.
"\n</div>"
);
}
}
return
"<dl><dt>$return_type <b>$idx</b> (<var>$arg_list</var>)\n<dd>"
return
"<dl><dt>$return_type <b>$idx</b> (<var>$arg_list</var>)\n<dd>"
.
$rcinfo
.
$rcinfo
...
...
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