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

Side by Side Diff: Include/parsetok.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/compile.h ('k') | Include/pyerrors.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 1
2 /* Parser-tokenizer link interface */ 2 /* Parser-tokenizer link interface */
3 #ifndef Py_LIMITED_API 3 #ifndef Py_LIMITED_API
4 #ifndef Py_PARSETOK_H 4 #ifndef Py_PARSETOK_H
5 #define Py_PARSETOK_H 5 #define Py_PARSETOK_H
6 #ifdef __cplusplus 6 #ifdef __cplusplus
7 extern "C" { 7 extern "C" {
8 #endif 8 #endif
9 9
10 typedef struct { 10 typedef struct {
(...skipping 24 matching lines...) Expand all
35 #define PyPARSE_IGNORE_COOKIE 0x0010 35 #define PyPARSE_IGNORE_COOKIE 0x0010
36 #define PyPARSE_BARRY_AS_BDFL 0x0020 36 #define PyPARSE_BARRY_AS_BDFL 0x0020
37 37
38 PyAPI_FUNC(node *) PyParser_ParseString(const char *, grammar *, int, 38 PyAPI_FUNC(node *) PyParser_ParseString(const char *, grammar *, int,
39 perrdetail *); 39 perrdetail *);
40 PyAPI_FUNC(node *) PyParser_ParseFile (FILE *, const char *, grammar *, int, 40 PyAPI_FUNC(node *) PyParser_ParseFile (FILE *, const char *, grammar *, int,
41 char *, char *, perrdetail *); 41 char *, char *, perrdetail *);
42 42
43 PyAPI_FUNC(node *) PyParser_ParseStringFlags(const char *, grammar *, int, 43 PyAPI_FUNC(node *) PyParser_ParseStringFlags(const char *, grammar *, int,
44 perrdetail *, int); 44 perrdetail *, int);
45 PyAPI_FUNC(node *) PyParser_ParseFileFlags(FILE *, const char *, 45 PyAPI_FUNC(node *) PyParser_ParseFileFlags(
46 » » » » » const char*, grammar *, 46 FILE *fp,
47 » » » » » » int, char *, char *, 47 const char *filename, /* decoded from the filesystem encoding */
48 » » » » » » perrdetail *, int); 48 const char *enc,
49 grammar *g,
50 int start,
51 char *ps1,
52 char *ps2,
53 perrdetail *err_ret,
54 int flags);
49 PyAPI_FUNC(node *) PyParser_ParseFileFlagsEx( 55 PyAPI_FUNC(node *) PyParser_ParseFileFlagsEx(
50 FILE *fp, 56 FILE *fp,
51 const char *filename, /* decoded from the filesystem encoding */ 57 const char *filename, /* decoded from the filesystem encoding */
52 const char *enc, 58 const char *enc,
53 grammar *g, 59 grammar *g,
54 int start, 60 int start,
55 char *ps1, 61 char *ps1,
62 char *ps2,
63 perrdetail *err_ret,
64 int *flags);
65 PyAPI_FUNC(node *) PyParser_ParseFileObject(
66 FILE *fp,
67 PyObject *filename,
68 const char *enc,
69 grammar *g,
70 int start,
71 char *ps1,
56 char *ps2, 72 char *ps2,
57 perrdetail *err_ret, 73 perrdetail *err_ret,
58 int *flags); 74 int *flags);
59 75
60 PyAPI_FUNC(node *) PyParser_ParseStringFlagsFilename(const char *, 76 PyAPI_FUNC(node *) PyParser_ParseStringFlagsFilename(
61 » » » » » const char *, 77 const char *s,
62 » » » » » grammar *, int, 78 const char *filename, /* decoded from the filesystem encoding */
63 perrdetail *, int); 79 grammar *g,
80 int start,
81 perrdetail *err_ret,
82 int flags);
64 PyAPI_FUNC(node *) PyParser_ParseStringFlagsFilenameEx( 83 PyAPI_FUNC(node *) PyParser_ParseStringFlagsFilenameEx(
65 const char *s, 84 const char *s,
66 const char *filename, /* decoded from the filesystem encoding */ 85 const char *filename, /* decoded from the filesystem encoding */
67 grammar *g, 86 grammar *g,
87 int start,
88 perrdetail *err_ret,
89 int *flags);
90 PyAPI_FUNC(node *) PyParser_ParseStringObject(
91 const char *s,
92 PyObject *filename,
93 grammar *g,
68 int start, 94 int start,
69 perrdetail *err_ret, 95 perrdetail *err_ret,
70 int *flags); 96 int *flags);
71 97
72 /* Note that the following functions are defined in pythonrun.c, 98 /* Note that the following functions are defined in pythonrun.c,
73 not in parsetok.c */ 99 not in parsetok.c */
74 PyAPI_FUNC(void) PyParser_SetError(perrdetail *); 100 PyAPI_FUNC(void) PyParser_SetError(perrdetail *);
75 PyAPI_FUNC(void) PyParser_ClearError(perrdetail *); 101 PyAPI_FUNC(void) PyParser_ClearError(perrdetail *);
76 102
77 #ifdef __cplusplus 103 #ifdef __cplusplus
78 } 104 }
79 #endif 105 #endif
80 #endif /* !Py_PARSETOK_H */ 106 #endif /* !Py_PARSETOK_H */
81 #endif /* !Py_LIMITED_API */ 107 #endif /* !Py_LIMITED_API */
OLDNEW
« no previous file with comments | « Include/compile.h ('k') | Include/pyerrors.h » ('j') | no next file with comments »

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