Tests about a simple python3 fastcgi runner using libfcgi and the Python-C API.
python
c
wsgi
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

includes_python3.7m.patch 2.5KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. diff -rupN python3.7m/bytesobject.h python3.7m_patched/bytesobject.h
  2. --- python3.7m/bytesobject.h 2019-06-30 07:43:17.201934475 +0200
  3. +++ python3.7m_patched/bytesobject.h 2019-06-29 20:16:35.360347551 +0200
  4. @@ -52,9 +52,9 @@ PyAPI_FUNC(PyObject *) PyBytes_FromStrin
  5. PyAPI_FUNC(PyObject *) PyBytes_FromString(const char *);
  6. PyAPI_FUNC(PyObject *) PyBytes_FromObject(PyObject *);
  7. PyAPI_FUNC(PyObject *) PyBytes_FromFormatV(const char*, va_list)
  8. - Py_GCC_ATTRIBUTE((format(printf, 1, 0)));
  9. + Py_GCC_ATTRIBUTE((format(__printf__, 1, 0)));
  10. PyAPI_FUNC(PyObject *) PyBytes_FromFormat(const char*, ...)
  11. - Py_GCC_ATTRIBUTE((format(printf, 1, 2)));
  12. + Py_GCC_ATTRIBUTE((format(__printf__, 1, 2)));
  13. PyAPI_FUNC(Py_ssize_t) PyBytes_Size(PyObject *);
  14. PyAPI_FUNC(char *) PyBytes_AsString(PyObject *);
  15. PyAPI_FUNC(PyObject *) PyBytes_Repr(PyObject *, int);
  16. diff -rupN python3.7m/pyerrors.h python3.7m_patched/pyerrors.h
  17. --- python3.7m/pyerrors.h 2019-06-30 07:43:17.201934475 +0200
  18. +++ python3.7m_patched/pyerrors.h 2019-06-29 20:16:35.360347551 +0200
  19. @@ -494,9 +494,9 @@ PyAPI_FUNC(int) PyUnicodeTranslateError_
  20. #include <stdarg.h>
  21. PyAPI_FUNC(int) PyOS_snprintf(char *str, size_t size, const char *format, ...)
  22. - Py_GCC_ATTRIBUTE((format(printf, 3, 4)));
  23. + Py_GCC_ATTRIBUTE((format(__printf__, 3, 4)));
  24. PyAPI_FUNC(int) PyOS_vsnprintf(char *str, size_t size, const char *format, va_list va)
  25. - Py_GCC_ATTRIBUTE((format(printf, 3, 0)));
  26. + Py_GCC_ATTRIBUTE((format(__printf__, 3, 0)));
  27. #ifdef __cplusplus
  28. }
  29. diff -rupN python3.7m/sysmodule.h python3.7m_patched/sysmodule.h
  30. --- python3.7m/sysmodule.h 2019-06-30 07:43:17.205934339 +0200
  31. +++ python3.7m_patched/sysmodule.h 2019-06-29 20:16:35.360347551 +0200
  32. @@ -19,9 +19,9 @@ PyAPI_FUNC(void) PySys_SetArgvEx(int, wc
  33. PyAPI_FUNC(void) PySys_SetPath(const wchar_t *);
  34. PyAPI_FUNC(void) PySys_WriteStdout(const char *format, ...)
  35. - Py_GCC_ATTRIBUTE((format(printf, 1, 2)));
  36. + Py_GCC_ATTRIBUTE((format(__printf__, 1, 2)));
  37. PyAPI_FUNC(void) PySys_WriteStderr(const char *format, ...)
  38. - Py_GCC_ATTRIBUTE((format(printf, 1, 2)));
  39. + Py_GCC_ATTRIBUTE((format(__printf__, 1, 2)));
  40. PyAPI_FUNC(void) PySys_FormatStdout(const char *format, ...);
  41. PyAPI_FUNC(void) PySys_FormatStderr(const char *format, ...);