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
a437d459
Kaydet (Commit)
a437d459
authored
Kas 28, 2001
tarafından
Tim Peters
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Removed preprocessor gimmick trying to force use of snprintf emulation
before 2.2b1.
üst
7c7ee5f6
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
7 deletions
+5
-7
pyerrors.h
Include/pyerrors.h
+5
-7
No files found.
Include/pyerrors.h
Dosyayı görüntüle @
a437d459
...
@@ -112,19 +112,17 @@ extern DL_IMPORT(PyObject *) PyErr_ProgramText(char *, int);
...
@@ -112,19 +112,17 @@ extern DL_IMPORT(PyObject *) PyErr_ProgramText(char *, int);
/* These APIs aren't really part of the error implementation, but
/* These APIs aren't really part of the error implementation, but
often needed to format error messages; the native C lib APIs are
often needed to format error messages; the native C lib APIs are
not available on all platforms, which is why we provide emulations
not available on all platforms, which is why we provide emulations
for those platforms in Python/mysnprintf.c */
for those platforms in Python/mysnprintf.c,
WARNING: The return value of snprintf varies across platforms; do
not rely on any particular behavior; eventually the C99 defn may
be reliable.
*/
#if defined(MS_WIN32) && !defined(HAVE_SNPRINTF)
#if defined(MS_WIN32) && !defined(HAVE_SNPRINTF)
# define HAVE_SNPRINTF
# define HAVE_SNPRINTF
# define snprintf _snprintf
# define snprintf _snprintf
# define vsnprintf _vsnprintf
# define vsnprintf _vsnprintf
#endif
#endif
/* Always enable the fallback solution during the 2.2.0 alpha cycle
for enhanced testing */
#if PY_VERSION_HEX < 0x020200B0
# undef HAVE_SNPRINTF
#endif
#ifndef HAVE_SNPRINTF
#ifndef HAVE_SNPRINTF
#include <stdarg.h>
#include <stdarg.h>
extern
DL_IMPORT
(
int
)
PyOS_snprintf
(
char
*
str
,
size_t
size
,
const
char
*
format
,
...)
extern
DL_IMPORT
(
int
)
PyOS_snprintf
(
char
*
str
,
size_t
size
,
const
char
*
format
,
...)
...
...
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