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

Side by Side Diff: Include/warnings.h

Issue 11619: On Windows, don't encode filenames in the import machinery
Patch Set: Created 6 years 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:
View unified diff | Download patch
« no previous file with comments | « Include/symtable.h ('k') | Modules/parsermodule.c » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
11 PyAPI_FUNC(int) PyErr_WarnEx( 11 PyAPI_FUNC(int) PyErr_WarnEx(
12 PyObject *category, 12 PyObject *category,
13 const char *message, /* UTF-8 encoded string */ 13 const char *message, /* UTF-8 encoded string */
14 Py_ssize_t stack_level); 14 Py_ssize_t stack_level);
15 PyAPI_FUNC(int) PyErr_WarnFormat( 15 PyAPI_FUNC(int) PyErr_WarnFormat(
16 PyObject *category, 16 PyObject *category,
17 Py_ssize_t stack_level, 17 Py_ssize_t stack_level,
18 const char *format, /* ASCII-encoded string */ 18 const char *format, /* ASCII-encoded string */
19 ...); 19 ...);
20 PyAPI_FUNC(int) PyErr_WarnExplicitObject(
21 PyObject *category,
22 PyObject *message,
23 PyObject *filename,
24 int lineno,
25 PyObject *module,
26 PyObject *registry);
20 PyAPI_FUNC(int) PyErr_WarnExplicit( 27 PyAPI_FUNC(int) PyErr_WarnExplicit(
21 PyObject *category, 28 PyObject *category,
22 const char *message, /* UTF-8 encoded string */ 29 const char *message, /* UTF-8 encoded string */
23 const char *filename, /* decoded from the filesystem encoding */ 30 const char *filename, /* decoded from the filesystem encoding */
24 int lineno, 31 int lineno,
25 const char *module, /* UTF-8 encoded string */ 32 const char *module, /* UTF-8 encoded string */
26 PyObject *registry); 33 PyObject *registry);
27 34
28 PyAPI_FUNC(int) 35 PyAPI_FUNC(int)
29 PyErr_WarnExplicitFormat(PyObject *category, 36 PyErr_WarnExplicitFormat(PyObject *category,
30 const char *filename, int lineno, 37 const char *filename, int lineno,
31 const char *module, PyObject *registry, 38 const char *module, PyObject *registry,
32 const char *format, ...); 39 const char *format, ...);
40
33 41
34 /* DEPRECATED: Use PyErr_WarnEx() instead. */ 42 /* DEPRECATED: Use PyErr_WarnEx() instead. */
35 #ifndef Py_LIMITED_API 43 #ifndef Py_LIMITED_API
36 #define PyErr_Warn(category, msg) PyErr_WarnEx(category, msg, 1) 44 #define PyErr_Warn(category, msg) PyErr_WarnEx(category, msg, 1)
37 #endif 45 #endif
38 46
39 #ifdef __cplusplus 47 #ifdef __cplusplus
40 } 48 }
41 #endif 49 #endif
42 #endif /* !Py_WARNINGS_H */ 50 #endif /* !Py_WARNINGS_H */
43
OLDNEW
« no previous file with comments | « Include/symtable.h ('k') | Modules/parsermodule.c » ('j') | no next file with comments »

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