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

Side by Side Diff: Include/pyerrors.h

Issue 11619: On Windows, don't encode filenames in the import machinery
Patch Set: Created 8 years, 11 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:
View unified diff | Download patch
« no previous file with comments | « Doc/c-api/exceptions.rst ('k') | Include/warnings.h » ('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_ERRORS_H 1 #ifndef Py_ERRORS_H
2 #define Py_ERRORS_H 2 #define Py_ERRORS_H
3 #ifdef __cplusplus 3 #ifdef __cplusplus
4 extern "C" { 4 extern "C" {
5 #endif 5 #endif
6 6
7 /* Error objects */ 7 /* Error objects */
8 8
9 #ifndef Py_LIMITED_API 9 #ifndef Py_LIMITED_API
10 /* PyException_HEAD defines the initial segment of every exception class. */ 10 /* PyException_HEAD defines the initial segment of every exception class. */
(...skipping 247 matching lines...) Expand 10 before | Expand all | Expand 10 after
258 /* Support for adding program text to SyntaxErrors */ 258 /* Support for adding program text to SyntaxErrors */
259 PyAPI_FUNC(void) PyErr_SyntaxLocation( 259 PyAPI_FUNC(void) PyErr_SyntaxLocation(
260 const char *filename, /* decoded from the filesystem encoding */ 260 const char *filename, /* decoded from the filesystem encoding */
261 int lineno); 261 int lineno);
262 PyAPI_FUNC(void) PyErr_SyntaxLocationEx( 262 PyAPI_FUNC(void) PyErr_SyntaxLocationEx(
263 const char *filename, /* decoded from the filesystem encoding */ 263 const char *filename, /* decoded from the filesystem encoding */
264 int lineno, 264 int lineno,
265 int col_offset); 265 int col_offset);
266 PyAPI_FUNC(PyObject *) PyErr_ProgramText( 266 PyAPI_FUNC(PyObject *) PyErr_ProgramText(
267 const char *filename, /* decoded from the filesystem encoding */ 267 const char *filename, /* decoded from the filesystem encoding */
268 int lineno);
269 PyAPI_FUNC(PyObject *) PyErr_ProgramTextObject(
270 PyObject *filename,
268 int lineno); 271 int lineno);
269 272
270 /* The following functions are used to create and modify unicode 273 /* The following functions are used to create and modify unicode
271 exceptions from C */ 274 exceptions from C */
272 275
273 /* create a UnicodeDecodeError object */ 276 /* create a UnicodeDecodeError object */
274 PyAPI_FUNC(PyObject *) PyUnicodeDecodeError_Create( 277 PyAPI_FUNC(PyObject *) PyUnicodeDecodeError_Create(
275 const char *encoding, /* UTF-8 encoded string */ 278 const char *encoding, /* UTF-8 encoded string */
276 const char *object, 279 const char *object,
277 Py_ssize_t length, 280 Py_ssize_t length,
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
374 #include <stdarg.h> 377 #include <stdarg.h>
375 PyAPI_FUNC(int) PyOS_snprintf(char *str, size_t size, const char *format, ...) 378 PyAPI_FUNC(int) PyOS_snprintf(char *str, size_t size, const char *format, ...)
376 Py_GCC_ATTRIBUTE((format(printf, 3, 4))); 379 Py_GCC_ATTRIBUTE((format(printf, 3, 4)));
377 PyAPI_FUNC(int) PyOS_vsnprintf(char *str, size_t size, const char *format, va_l ist va) 380 PyAPI_FUNC(int) PyOS_vsnprintf(char *str, size_t size, const char *format, va_l ist va)
378 Py_GCC_ATTRIBUTE((format(printf, 3, 0))); 381 Py_GCC_ATTRIBUTE((format(printf, 3, 0)));
379 382
380 #ifdef __cplusplus 383 #ifdef __cplusplus
381 } 384 }
382 #endif 385 #endif
383 #endif /* !Py_ERRORS_H */ 386 #endif /* !Py_ERRORS_H */
OLDNEW
« no previous file with comments | « Doc/c-api/exceptions.rst ('k') | Include/warnings.h » ('j') | no next file with comments »

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