• Home
  • Raw
  • Download

Lines Matching refs:err_ret

18 static void initerr(perrdetail *err_ret, const char* filename);
22 PyParser_ParseString(const char *s, grammar *g, int start, perrdetail *err_ret) in PyParser_ParseString() argument
24 return PyParser_ParseStringFlagsFilename(s, NULL, g, start, err_ret, 0); in PyParser_ParseString()
29 perrdetail *err_ret, int flags) in PyParser_ParseStringFlags() argument
32 g, start, err_ret, flags); in PyParser_ParseStringFlags()
38 perrdetail *err_ret, int flags) in PyParser_ParseStringFlagsFilename() argument
42 err_ret, &iflags); in PyParser_ParseStringFlagsFilename()
48 perrdetail *err_ret, int *flags) in PyParser_ParseStringFlagsFilenameEx() argument
52 initerr(err_ret, filename); in PyParser_ParseStringFlagsFilenameEx()
55 err_ret->error = PyErr_Occurred() ? E_DECODE : E_NOMEM; in PyParser_ParseStringFlagsFilenameEx()
66 return parsetok(tok, g, start, err_ret, flags); in PyParser_ParseStringFlagsFilenameEx()
73 char *ps1, char *ps2, perrdetail *err_ret) in PyParser_ParseFile() argument
76 err_ret, 0); in PyParser_ParseFile()
81 char *ps1, char *ps2, perrdetail *err_ret, int flags) in PyParser_ParseFileFlags() argument
84 return PyParser_ParseFileFlagsEx(fp, filename, g, start, ps1, ps2, err_ret, &iflags); in PyParser_ParseFileFlags()
89 char *ps1, char *ps2, perrdetail *err_ret, int *flags) in PyParser_ParseFileFlagsEx() argument
93 initerr(err_ret, filename); in PyParser_ParseFileFlagsEx()
96 err_ret->error = E_NOMEM; in PyParser_ParseFileFlagsEx()
106 return parsetok(tok, g, start, err_ret, flags); in PyParser_ParseFileFlagsEx()
129 parsetok(struct tok_state *tok, grammar *g, int start, perrdetail *err_ret, in parsetok() argument
138 err_ret->error = E_NOMEM; in parsetok()
161 err_ret->error = tok->done; in parsetok()
183 err_ret->error = E_NOMEM; in parsetok()
199 if ((err_ret->error = in parsetok()
201 &(err_ret->expected))) != E_OK) { in parsetok()
202 if (err_ret->error != E_DONE) { in parsetok()
204 err_ret->token = type; in parsetok()
210 if (err_ret->error == E_DONE) { in parsetok()
224 err_ret->error = E_EOF; in parsetok()
225 err_ret->lineno = tok->lineno; in parsetok()
230 err_ret->offset = (int)(tok->cur - tok->buf); in parsetok()
233 text = PyTokenizer_RestoreEncoding(tok, len, &err_ret->offset); in parsetok()
244 err_ret->text = text; in parsetok()
254 err_ret->error = E_NOMEM; in parsetok()
275 initerr(perrdetail *err_ret, const char *filename) in initerr() argument
277 err_ret->error = E_OK; in initerr()
278 err_ret->filename = filename; in initerr()
279 err_ret->lineno = 0; in initerr()
280 err_ret->offset = 0; in initerr()
281 err_ret->text = NULL; in initerr()
282 err_ret->token = -1; in initerr()
283 err_ret->expected = -1; in initerr()