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
396ca574
Kaydet (Commit)
396ca574
authored
Eyl 06, 2001
tarafından
Fred Drake
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Document the rule that Python.h must be included before any standard
headers. This is the final checkin for SF bug #458768.
üst
9b88b4c9
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
2 deletions
+7
-2
api.tex
Doc/api/api.tex
+3
-0
extending.tex
Doc/ext/extending.tex
+4
-2
No files found.
Doc/api/api.tex
Dosyayı görüntüle @
396ca574
...
...
@@ -76,6 +76,9 @@ 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.
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
Dosyayı görüntüle @
396ca574
...
...
@@ -46,8 +46,11 @@ 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.
All user-visible symbols defined by
\
code
{
"Python.h"
}
have a prefix of
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.
For convenience, and since they are used extensively by the Python
interpreter,
\code
{
"Python.h"
}
includes a few standard header files:
...
...
@@ -951,7 +954,6 @@ Geoff Philbrick (\email{philbrick@hks.com}):%
\index
{
Philbrick, Geoff
}
\begin{verbatim}
#include <stdio.h>
#include "Python.h"
static PyObject *
...
...
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