Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(157487)

Delta Between Two Patch Sets: Include/warnings.h

Issue 11619: On Windows, don't encode filenames in the import machinery
Left Patch Set: Created 8 years, 7 months ago
Right Patch Set: Created 6 years, 3 months ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
Left: Side by side diff | Download
Right: Side by side diff | Download
« no previous file with change/comment | « Include/symtable.h ('k') | Modules/parsermodule.c » ('j') | no next file with change/comment »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
LEFTRIGHT
1 #ifndef Py_WARNINGS_H 1 #ifndef Py_WARNINGS_H
2 #define Py_WARNINGS_H 2 #define Py_WARNINGS_H
3 #ifdef __cplusplus 3 #ifdef __cplusplus
4 extern "C" { 4 extern "C" {
5 #endif 5 #endif
6 6
7 #ifndef Py_LIMITED_API 7 #ifndef Py_LIMITED_API
8 PyAPI_FUNC(PyObject*) _PyWarnings_Init(void); 8 PyAPI_FUNC(PyObject*) _PyWarnings_Init(void);
9 #endif 9 #endif
10 10
(...skipping 14 matching lines...) Expand all
25 PyObject *module, 25 PyObject *module,
26 PyObject *registry); 26 PyObject *registry);
27 PyAPI_FUNC(int) PyErr_WarnExplicit( 27 PyAPI_FUNC(int) PyErr_WarnExplicit(
28 PyObject *category, 28 PyObject *category,
29 const char *message, /* UTF-8 encoded string */ 29 const char *message, /* UTF-8 encoded string */
30 const char *filename, /* decoded from the filesystem encoding */ 30 const char *filename, /* decoded from the filesystem encoding */
31 int lineno, 31 int lineno,
32 const char *module, /* UTF-8 encoded string */ 32 const char *module, /* UTF-8 encoded string */
33 PyObject *registry); 33 PyObject *registry);
34 34
35 PyAPI_FUNC(int)
36 PyErr_WarnExplicitFormat(PyObject *category,
37 const char *filename, int lineno,
38 const char *module, PyObject *registry,
39 const char *format, ...);
40
35 41
36 /* DEPRECATED: Use PyErr_WarnEx() instead. */ 42 /* DEPRECATED: Use PyErr_WarnEx() instead. */
37 #ifndef Py_LIMITED_API 43 #ifndef Py_LIMITED_API
38 #define PyErr_Warn(category, msg) PyErr_WarnEx(category, msg, 1) 44 #define PyErr_Warn(category, msg) PyErr_WarnEx(category, msg, 1)
39 #endif 45 #endif
40 46
41 #ifdef __cplusplus 47 #ifdef __cplusplus
42 } 48 }
43 #endif 49 #endif
44 #endif /* !Py_WARNINGS_H */ 50 #endif /* !Py_WARNINGS_H */
45
LEFTRIGHT

RSS Feeds Recent Issues | This issue
This is Rietveld 894c83f36cb7+