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
f6b687fc
Kaydet (Commit)
f6b687fc
authored
May 13, 2013
tarafından
Benjamin Peterson
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
remove support GCC PyArg_ParseTuple format patch, last seen in 2006
üst
fa6bdc6d
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
1 addition
and
69 deletions
+1
-69
modsupport.h
Include/modsupport.h
+1
-1
pyport.h
Include/pyport.h
+0
-9
configure
configure
+0
-38
configure.ac
configure.ac
+0
-18
pyconfig.h.in
pyconfig.h.in
+0
-3
No files found.
Include/modsupport.h
Dosyayı görüntüle @
f6b687fc
...
...
@@ -26,7 +26,7 @@ PyAPI_FUNC(PyObject *) _Py_VaBuildValue_SizeT(const char *, va_list);
/* Due to a glitch in 3.2, the _SizeT versions weren't exported from the DLL. */
#if !defined(PY_SSIZE_T_CLEAN) || !defined(Py_LIMITED_API) || Py_LIMITED_API+0 >= 0x03030000
PyAPI_FUNC
(
int
)
PyArg_Parse
(
PyObject
*
,
const
char
*
,
...);
PyAPI_FUNC
(
int
)
PyArg_ParseTuple
(
PyObject
*
,
const
char
*
,
...)
Py_FORMAT_PARSETUPLE
(
PyArg_ParseTuple
,
2
,
3
)
;
PyAPI_FUNC
(
int
)
PyArg_ParseTuple
(
PyObject
*
,
const
char
*
,
...);
PyAPI_FUNC
(
int
)
PyArg_ParseTupleAndKeywords
(
PyObject
*
,
PyObject
*
,
const
char
*
,
char
**
,
...);
PyAPI_FUNC
(
int
)
PyArg_ValidateKeywordArguments
(
PyObject
*
);
...
...
Include/pyport.h
Dosyayı görüntüle @
f6b687fc
...
...
@@ -831,15 +831,6 @@ extern pid_t forkpty(int *, char *, struct termios *, struct winsize *);
#define Py_GCC_ATTRIBUTE(x) __attribute__(x)
#endif
/*
* Add PyArg_ParseTuple format where available.
*/
#ifdef HAVE_ATTRIBUTE_FORMAT_PARSETUPLE
#define Py_FORMAT_PARSETUPLE(func,p1,p2) __attribute__((format(func,p1,p2)))
#else
#define Py_FORMAT_PARSETUPLE(func,p1,p2)
#endif
/*
* Specify alignment on compilers that support it.
*/
...
...
configure
Dosyayı görüntüle @
f6b687fc
...
...
@@ -6523,44 +6523,6 @@ then
BASECFLAGS
=
"
$BASECFLAGS
$ac_arch_flags
"
fi
# Check whether GCC supports PyArg_ParseTuple format
if
test
"
$GCC
"
=
"yes"
then
{
$as_echo
"
$as_me
:
${
as_lineno
-
$LINENO
}
: checking whether gcc supports ParseTuple __format__"
>
&5
$as_echo_n
"checking whether gcc supports ParseTuple __format__... "
>
&6
;
}
save_CFLAGS
=
$CFLAGS
CFLAGS
=
"
$CFLAGS
-Werror -Wformat"
cat
confdefs.h -
<<
_ACEOF
>conftest.
$ac_ext
/* end confdefs.h. */
void f(char*,...)__attribute((format(PyArg_ParseTuple, 1, 2)));
int
main ()
{
;
return 0;
}
_ACEOF
if
ac_fn_c_try_compile
"
$LINENO
"
;
then
:
$as_echo
"#define HAVE_ATTRIBUTE_FORMAT_PARSETUPLE 1"
>>
confdefs.h
{
$as_echo
"
$as_me
:
${
as_lineno
-
$LINENO
}
: result: yes"
>
&5
$as_echo
"yes"
>
&6
;
}
else
{
$as_echo
"
$as_me
:
${
as_lineno
-
$LINENO
}
: result: no"
>
&5
$as_echo
"no"
>
&6
;
}
fi
rm
-f
core conftest.err conftest.
$ac_objext
conftest.
$ac_ext
CFLAGS
=
$save_CFLAGS
fi
# On some compilers, pthreads are available without further options
# (e.g. MacOS X). On some of these systems, the compiler will not
# complain if unaccepted options are passed (e.g. gcc on Mac OS X).
...
...
configure.ac
Dosyayı görüntüle @
f6b687fc
...
...
@@ -1328,24 +1328,6 @@ then
BASECFLAGS="$BASECFLAGS $ac_arch_flags"
fi
# Check whether GCC supports PyArg_ParseTuple format
if test "$GCC" = "yes"
then
AC_MSG_CHECKING(whether gcc supports ParseTuple __format__)
save_CFLAGS=$CFLAGS
CFLAGS="$CFLAGS -Werror -Wformat"
AC_COMPILE_IFELSE([
AC_LANG_PROGRAM([[void f(char*,...)__attribute((format(PyArg_ParseTuple, 1, 2)));]], [[]])
],[
AC_DEFINE(HAVE_ATTRIBUTE_FORMAT_PARSETUPLE, 1,
[Define if GCC supports __attribute__((format(PyArg_ParseTuple, 2, 3)))])
AC_MSG_RESULT(yes)
],[
AC_MSG_RESULT(no)
])
CFLAGS=$save_CFLAGS
fi
# On some compilers, pthreads are available without further options
# (e.g. MacOS X). On some of these systems, the compiler will not
# complain if unaccepted options are passed (e.g. gcc on Mac OS X).
...
...
pyconfig.h.in
Dosyayı görüntüle @
f6b687fc
...
...
@@ -61,9 +61,6 @@
/* Define to 1 if you have the `atanh' function. */
#undef HAVE_ATANH
/* Define if GCC supports __attribute__((format(PyArg_ParseTuple, 2, 3))) */
#undef HAVE_ATTRIBUTE_FORMAT_PARSETUPLE
/* Define to 1 if you have the `bind_textdomain_codeset' function. */
#undef HAVE_BIND_TEXTDOMAIN_CODESET
...
...
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