summaryrefslogtreecommitdiffstats
path: root/Parser/pegen.h
diff options
context:
space:
mode:
authorPablo Galindo Salgado <Pablogsal@gmail.com>2023-10-26 21:43:38 (GMT)
committerGitHub <noreply@github.com>2023-10-26 21:43:38 (GMT)
commitc81ebf5b3d9aa080d2039f1225f6fed91c29f5a8 (patch)
tree31d0a5052319b1480704f513aba52057ca829478 /Parser/pegen.h
parente25d8b40cd70744513e190b1ca153087382b6b09 (diff)
downloadcpython-c81ebf5b3d9aa080d2039f1225f6fed91c29f5a8.zip
cpython-c81ebf5b3d9aa080d2039f1225f6fed91c29f5a8.tar.gz
cpython-c81ebf5b3d9aa080d2039f1225f6fed91c29f5a8.tar.bz2
[3.12] bpo-43950: handle wide unicode characters in tracebacks (GH-28150) (#111346)
Diffstat (limited to 'Parser/pegen.h')
-rw-r--r--Parser/pegen.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/Parser/pegen.h b/Parser/pegen.h
index a8bfa78..268f380 100644
--- a/Parser/pegen.h
+++ b/Parser/pegen.h
@@ -151,6 +151,7 @@ expr_ty _PyPegen_name_token(Parser *p);
expr_ty _PyPegen_number_token(Parser *p);
void *_PyPegen_string_token(Parser *p);
Py_ssize_t _PyPegen_byte_offset_to_character_offset(PyObject *line, Py_ssize_t col_offset);
+Py_ssize_t _PyPegen_calculate_display_width(PyObject *segment, Py_ssize_t character_offset);
// Error handling functions and APIs
typedef enum {