Mercurial > cpython-lru_cache-weakref
comparison Python/pythonrun.c @ 28649:04b172843292 legacy-trunk
A missing piece of the PEP 269 patch: add PyParser_SetError(), a
wrapper around err_input().
| author | Guido van Rossum <guido@python.org> |
|---|---|
| date | Thu, 17 Apr 2003 16:02:26 +0000 |
| parents | 0e8416be208e |
| children | 7fda09f751ad |
comparison
equal
deleted
inserted
replaced
| 28648:0e8416be208e | 28649:04b172843292 |
|---|---|
| 1260 node * | 1260 node * |
| 1261 PyParser_SimpleParseStringFilename(const char *str, const char *filename, int start) | 1261 PyParser_SimpleParseStringFilename(const char *str, const char *filename, int start) |
| 1262 { | 1262 { |
| 1263 return PyParser_SimpleParseStringFlagsFilename(str, filename, | 1263 return PyParser_SimpleParseStringFlagsFilename(str, filename, |
| 1264 start, 0); | 1264 start, 0); |
| 1265 } | |
| 1266 | |
| 1267 /* May want to move a more generalized form of this to parsetok.c or | |
| 1268 even parser modules. */ | |
| 1269 | |
| 1270 void | |
| 1271 PyParser_SetError(perrdetail *err) | |
| 1272 { | |
| 1273 err_input(err); | |
| 1265 } | 1274 } |
| 1266 | 1275 |
| 1267 /* Set the error appropriate to the given input error code (see errcode.h) */ | 1276 /* Set the error appropriate to the given input error code (see errcode.h) */ |
| 1268 | 1277 |
| 1269 static void | 1278 static void |
