summaryrefslogtreecommitdiffstats
path: root/Parser/tokenizer.h
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2021-10-13 15:22:14 (GMT)
committerGitHub <noreply@github.com>2021-10-13 15:22:14 (GMT)
commit713bb19356bce9b8f2b95461834fe1dae505f889 (patch)
treec06a7178132f94dd09b3a3df660f5093adf63517 /Parser/tokenizer.h
parent3901c081143ef29624f9c1cb49cc70a70321d139 (diff)
downloadcpython-713bb19356bce9b8f2b95461834fe1dae505f889.zip
cpython-713bb19356bce9b8f2b95461834fe1dae505f889.tar.gz
cpython-713bb19356bce9b8f2b95461834fe1dae505f889.tar.bz2
bpo-45434: Mark the PyTokenizer C API as private (GH-28924)
Rename PyTokenize functions to mark them as private: * PyTokenizer_FindEncodingFilename() => _PyTokenizer_FindEncodingFilename() * PyTokenizer_FromString() => _PyTokenizer_FromString() * PyTokenizer_FromFile() => _PyTokenizer_FromFile() * PyTokenizer_FromUTF8() => _PyTokenizer_FromUTF8() * PyTokenizer_Free() => _PyTokenizer_Free() * PyTokenizer_Get() => _PyTokenizer_Get() Remove the unused PyTokenizer_FindEncoding() function. import.c: remove unused #include "errcode.h".
Diffstat (limited to 'Parser/tokenizer.h')
-rw-r--r--Parser/tokenizer.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/Parser/tokenizer.h b/Parser/tokenizer.h
index 677f9db..1d1cfd6 100644
--- a/Parser/tokenizer.h
+++ b/Parser/tokenizer.h
@@ -86,12 +86,12 @@ struct tok_state {
enum interactive_underflow_t interactive_underflow;
};
-extern struct tok_state *PyTokenizer_FromString(const char *, int);
-extern struct tok_state *PyTokenizer_FromUTF8(const char *, int);
-extern struct tok_state *PyTokenizer_FromFile(FILE *, const char*,
+extern struct tok_state *_PyTokenizer_FromString(const char *, int);
+extern struct tok_state *_PyTokenizer_FromUTF8(const char *, int);
+extern struct tok_state *_PyTokenizer_FromFile(FILE *, const char*,
const char *, const char *);
-extern void PyTokenizer_Free(struct tok_state *);
-extern int PyTokenizer_Get(struct tok_state *, const char **, const char **);
+extern void _PyTokenizer_Free(struct tok_state *);
+extern int _PyTokenizer_Get(struct tok_state *, const char **, const char **);
#define tok_dump _Py_tok_dump