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

Side by Side Diff: Include/pyerrors.h

Issue 11619: On Windows, don't encode filenames in the import machinery
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:
View unified diff | Download patch
« no previous file with comments | « Include/parsetok.h ('k') | Include/pythonrun.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 281 matching lines...) Expand 10 before | Expand all | Expand 10 after
292 #ifndef Py_LIMITED_API 292 #ifndef Py_LIMITED_API
293 int PySignal_SetWakeupFd(int fd); 293 int PySignal_SetWakeupFd(int fd);
294 #endif 294 #endif
295 295
296 /* Support for adding program text to SyntaxErrors */ 296 /* Support for adding program text to SyntaxErrors */
297 PyAPI_FUNC(void) PyErr_SyntaxLocation( 297 PyAPI_FUNC(void) PyErr_SyntaxLocation(
298 const char *filename, /* decoded from the filesystem encoding */ 298 const char *filename, /* decoded from the filesystem encoding */
299 int lineno); 299 int lineno);
300 PyAPI_FUNC(void) PyErr_SyntaxLocationEx( 300 PyAPI_FUNC(void) PyErr_SyntaxLocationEx(
301 const char *filename, /* decoded from the filesystem encoding */ 301 const char *filename, /* decoded from the filesystem encoding */
302 int lineno,
303 int col_offset);
304 PyAPI_FUNC(void) PyErr_SyntaxLocationObject(
305 PyObject *filename,
302 int lineno, 306 int lineno,
303 int col_offset); 307 int col_offset);
304 PyAPI_FUNC(PyObject *) PyErr_ProgramText( 308 PyAPI_FUNC(PyObject *) PyErr_ProgramText(
305 const char *filename, /* decoded from the filesystem encoding */ 309 const char *filename, /* decoded from the filesystem encoding */
306 int lineno); 310 int lineno);
311 PyAPI_FUNC(PyObject *) PyErr_ProgramTextObject(
312 PyObject *filename,
313 int lineno);
307 314
308 /* The following functions are used to create and modify unicode 315 /* The following functions are used to create and modify unicode
309 exceptions from C */ 316 exceptions from C */
310 317
311 /* create a UnicodeDecodeError object */ 318 /* create a UnicodeDecodeError object */
312 PyAPI_FUNC(PyObject *) PyUnicodeDecodeError_Create( 319 PyAPI_FUNC(PyObject *) PyUnicodeDecodeError_Create(
313 const char *encoding, /* UTF-8 encoded string */ 320 const char *encoding, /* UTF-8 encoded string */
314 const char *object, 321 const char *object,
315 Py_ssize_t length, 322 Py_ssize_t length,
316 Py_ssize_t start, 323 Py_ssize_t start,
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
417 #include <stdarg.h> 424 #include <stdarg.h>
418 PyAPI_FUNC(int) PyOS_snprintf(char *str, size_t size, const char *format, ...) 425 PyAPI_FUNC(int) PyOS_snprintf(char *str, size_t size, const char *format, ...)
419 Py_GCC_ATTRIBUTE((format(printf, 3, 4))); 426 Py_GCC_ATTRIBUTE((format(printf, 3, 4)));
420 PyAPI_FUNC(int) PyOS_vsnprintf(char *str, size_t size, const char *format, va_l ist va) 427 PyAPI_FUNC(int) PyOS_vsnprintf(char *str, size_t size, const char *format, va_l ist va)
421 Py_GCC_ATTRIBUTE((format(printf, 3, 0))); 428 Py_GCC_ATTRIBUTE((format(printf, 3, 0)));
422 429
423 #ifdef __cplusplus 430 #ifdef __cplusplus
424 } 431 }
425 #endif 432 #endif
426 #endif /* !Py_ERRORS_H */ 433 #endif /* !Py_ERRORS_H */
OLDNEW
« no previous file with comments | « Include/parsetok.h ('k') | Include/pythonrun.h » ('j') | no next file with comments »

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