Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
2bf89d7f
Commit
2bf89d7f
authored
Aug 11, 2000
by
Fred Drake
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
do_env_cfuncdesc(): Push as much of the generated HTML into one place
as possible for better readability. Revise a comment.
parent
642290b7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
Doc/perl/python.perl
Doc/perl/python.perl
+8
-8
No files found.
Doc/perl/python.perl
View file @
2bf89d7f
...
...
@@ -644,23 +644,23 @@ sub do_env_cfuncdesc{
my
$idx
=
make_str_index_entry
(
"
<tt class='cfunction'>
$function_name
()</tt>
"
.
get_indexsubitem
());
$idx
=~
s/ \(.*\)//
;
$idx
=~
s/\(\)//
;
# ????
$idx
=~
s/\(\)//
;
# ????
- why both of these?
my
$result_rc
=
get_refcount
(
$function_name
,
'');
my
$rcinfo
=
'';
if
(
$result_rc
eq
'
+1
')
{
$rcinfo
=
'
<span class="label">Return value:</span>
'
.
"
\n
<span class=
\"
value
\"
>New reference.</span>
";
$rcinfo
=
'
New reference
';
}
elsif
(
$result_rc
eq
'
0
')
{
$rcinfo
=
'
<span class="label">Return value:</span>
'
.
"
\n
<span class=
\"
value
\"
>Borrowed reference.</span>
";
$rcinfo
=
'
Borrowed reference
';
}
elsif
(
$result_rc
eq
'
null
')
{
$rcinfo
=
'
<span class="label">Return value:</span>
'
.
"
\n
<span class=
\"
value
\"
>Always NULL.</span>
";
$rcinfo
=
'
Always <tt class="constant">NULL</tt>
';
}
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>
"
.
$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