summaryrefslogtreecommitdiff
path: root/Include/token.h
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1995-01-12 11:45:45 +0000
committerGuido van Rossum <guido@python.org>1995-01-12 11:45:45 +0000
commitcaa63808861d4e92d4dc1005fc01de0f2e4a8fd0 (patch)
tree3771531169ab510aca9b69cdc4d9de2b5c8810c4 /Include/token.h
parent94390ec2a6ea5acbea9dead528ce067c396a0301 (diff)
downloadcpython-git-caa63808861d4e92d4dc1005fc01de0f2e4a8fd0.tar.gz
The great renaming, phase two: all header files have been updated to
use the new names exclusively, and the linker will see the new names. Files that import "Python.h" also only see the new names. Files that import "allobjects.h" will continue to be able to use the old names, due to the inclusion (in allobjects.h) of "rename2.h".
Diffstat (limited to 'Include/token.h')
-rw-r--r--Include/token.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/Include/token.h b/Include/token.h
index 0e138fc7cf..2be3a30516 100644
--- a/Include/token.h
+++ b/Include/token.h
@@ -66,7 +66,7 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
#define CIRCUMFLEX 33
#define LEFTSHIFT 34
#define RIGHTSHIFT 35
-/* Don't forget to update the table tok_name in tokenizer.c! */
+/* Don't forget to update the table _PyParser_TokenNames in tokenizer.c! */
#define OP 36
#define ERRORTOKEN 37
#define N_TOKENS 38
@@ -80,9 +80,9 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
#define ISEOF(x) ((x) == ENDMARKER)
-extern char *tok_name[]; /* Token names */
-extern int tok_1char PROTO((int));
-extern int tok_2char PROTO((int, int));
+extern char *_PyParser_TokenNames[]; /* Token names */
+extern int PyToken_OneChar Py_PROTO((int));
+extern int PyToken_TwoChars Py_PROTO((int, int));
#ifdef __cplusplus
}