diff 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
line wrap: on
line diff
--- a/Python/pythonrun.c	Thu Apr 17 15:24:21 2003 +0000
+++ b/Python/pythonrun.c	Thu Apr 17 16:02:26 2003 +0000
@@ -1264,6 +1264,15 @@
 						       start, 0);
 }
 
+/* May want to move a more generalized form of this to parsetok.c or
+   even parser modules. */
+
+void
+PyParser_SetError(perrdetail *err)
+{
+	err_input(err);
+}
+
 /* Set the error appropriate to the given input error code (see errcode.h) */
 
 static void