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
ecbdc5d2
Commit
ecbdc5d2
authored
Mar 31, 2004
by
Fred Drake
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Emphasize the requirement that Python.h be included first more strongly.
Closes SF bug #837228; backporting for Python 2.3.4.
parent
90150a90
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
6 deletions
+12
-6
Doc/api/intro.tex
Doc/api/intro.tex
+6
-3
Doc/ext/extending.tex
Doc/ext/extending.tex
+6
-3
No files found.
Doc/api/intro.tex
View file @
ecbdc5d2
...
...
@@ -37,9 +37,12 @@ API are included in your code by the following line:
This implies inclusion of the following standard headers:
\code
{
<stdio.h>
}
,
\code
{
<string.h>
}
,
\code
{
<errno.h>
}
,
\code
{
<limits.h>
}
, and
\code
{
<stdlib.h>
}
(if available).
Since Python may define some pre-processor definitions which affect
the standard headers on some systems, you must include
\file
{
Python.h
}
before any standard headers are included.
\begin{notice}
[warning]
Since Python may define some pre-processor definitions which affect
the standard headers on some systems, you
\emph
{
must
}
include
\file
{
Python.h
}
before any standard headers are included.
\end{notice}
All user visible names defined by Python.h (except those defined by
the included standard headers) have one of the prefixes
\samp
{
Py
}
or
...
...
Doc/ext/extending.tex
View file @
ecbdc5d2
...
...
@@ -46,9 +46,12 @@ The first line of our file can be:
which pulls in the Python API (you can add a comment describing the
purpose of the module and a copyright notice if you like).
Since Python may define some pre-processor definitions which affect
the standard headers on some systems, you must include
\file
{
Python.h
}
before any standard headers are included.
\begin{notice}
[warning]
Since Python may define some pre-processor definitions which affect
the standard headers on some systems, you
\emph
{
must
}
include
\file
{
Python.h
}
before any standard headers are included.
\end{notice}
All user-visible symbols defined by
\file
{
Python.h
}
have a prefix of
\samp
{
Py
}
or
\samp
{
PY
}
, except those defined in standard header files.
...
...
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