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
4e15945f
Commit
4e15945f
authored
Aug 11, 2000
by
Fred Drake
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Markup errors: \cfuntion -> \cfunction
parent
7d45d34e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
Doc/ext/ext.tex
Doc/ext/ext.tex
+3
-3
No files found.
Doc/ext/ext.tex
View file @
4e15945f
...
@@ -731,7 +731,7 @@ pointer to an integer (\var{*buffer_length}, the buffer length).
...
@@ -731,7 +731,7 @@ pointer to an integer (\var{*buffer_length}, the buffer length).
The encoding name must map to a registered codec. If set to
\NULL
{}
,
The encoding name must map to a registered codec. If set to
\NULL
{}
,
the default encoding is used.
the default encoding is used.
\cfuntion
{
PyArg
_
ParseTuple()
}
will allocate a buffer of the needed
\cfun
c
tion
{
PyArg
_
ParseTuple()
}
will allocate a buffer of the needed
size using
\cfunction
{
PyMem
_
NEW()
}
, copy the encoded data into this
size using
\cfunction
{
PyMem
_
NEW()
}
, copy the encoded data into this
buffer and adjust
\var
{
*buffer
}
to reference the newly allocated
buffer and adjust
\var
{
*buffer
}
to reference the newly allocated
storage. The caller is responsible for calling
storage. The caller is responsible for calling
...
@@ -753,14 +753,14 @@ the default encoding is used.
...
@@ -753,14 +753,14 @@ the default encoding is used.
There are two modes of operation:
There are two modes of operation:
If
\var
{
*buffer
}
points a
\NULL
{}
pointer,
If
\var
{
*buffer
}
points a
\NULL
{}
pointer,
\cfuntion
{
PyArg
_
ParseTuple()
}
will allocate a buffer of the needed
\cfun
c
tion
{
PyArg
_
ParseTuple()
}
will allocate a buffer of the needed
size using
\cfunction
{
PyMem
_
NEW()
}
, copy the encoded data into this
size using
\cfunction
{
PyMem
_
NEW()
}
, copy the encoded data into this
buffer and adjust
\var
{
*buffer
}
to reference the newly allocated
buffer and adjust
\var
{
*buffer
}
to reference the newly allocated
storage. The caller is responsible for calling
storage. The caller is responsible for calling
\cfunction
{
PyMem
_
Free()
}
to free the allocated buffer after usage.
\cfunction
{
PyMem
_
Free()
}
to free the allocated buffer after usage.
If
\var
{
*buffer
}
points to a non-
\NULL
{}
pointer (an already allocated
If
\var
{
*buffer
}
points to a non-
\NULL
{}
pointer (an already allocated
buffer),
\cfuntion
{
PyArg
_
ParseTuple()
}
will use this location as
buffer),
\cfun
c
tion
{
PyArg
_
ParseTuple()
}
will use this location as
buffer and interpret
\var
{
*buffer
_
length
}
as buffer size. It will then
buffer and interpret
\var
{
*buffer
_
length
}
as buffer size. It will then
copy the encoded data into the buffer and 0-terminate it. Buffer
copy the encoded data into the buffer and 0-terminate it. Buffer
overflow is signalled with an exception.
overflow is signalled with an exception.
...
...
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