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
b98d65c0
Commit
b98d65c0
authored
May 27, 2006
by
Andrew M. Kuchling
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add Py_LOCAL macros
parent
2e3f6b77
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
0 deletions
+12
-0
Doc/whatsnew/whatsnew25.tex
Doc/whatsnew/whatsnew25.tex
+12
-0
No files found.
Doc/whatsnew/whatsnew25.tex
View file @
b98d65c0
...
...
@@ -2036,6 +2036,18 @@ string of build information like this:
\code
{
"trunk:45355:45356M, Apr 13 2006, 07:42:19"
}
.
(Contributed by Barry Warsaw.)
\item
Two new macros can be used to indicate C functions that are
local to the current file so that a faster calling convention can be
used.
\cfunction
{
Py
_
LOCAL(
\var
{
type
}
)
}
declares the function as
returning a value of the specified
\var
{
type
}
and uses a fast-calling
qualifier.
\cfunction
{
Py
_
LOCAL
_
INLINE(
\var
{
type
}
)
}
does the same thing
and also requests the function be inlined. If
\cfunction
{
PY
_
LOCAL
_
AGGRESSIVE
}
is defined before
\file
{
python.h
}
is
included, a set of more aggressive optimizations are enabled for the
module; you should benchmark the results to find out if these
optimizations actually make the code faster. (Contributed by Fredrik
Lundh at the NeedForSpeed sprint.)
\item
\cfunction
{
PyErr
_
NewException(
\var
{
name
}
,
\var
{
base
}
,
\var
{
dict
}
)
}
can now accept a tuple of base classes as its
\var
{
base
}
argument. (Contributed by Georg Brandl.)
...
...
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