Lines Matching defs:tok
100 struct tok_state *tok = (struct tok_state *)PyMem_MALLOC( in tok_new() local
147 decoding_fgets(char *s, int size, struct tok_state *tok) in decoding_fgets()
153 decoding_feof(struct tok_state *tok) in decoding_feof()
159 decode_str(const char *str, int exec_input, struct tok_state *tok) in decode_str()
167 error_ret(struct tok_state *tok) /* XXX */ in error_ret()
260 check_coding_spec(const char* line, Py_ssize_t size, struct tok_state *tok, in check_coding_spec()
330 struct tok_state *tok) in check_bom()
401 fp_readl(char *s, int size, struct tok_state *tok) in fp_readl()
468 fp_setreadl(struct tok_state *tok, const char* enc) in fp_setreadl()
493 static int fp_getc(struct tok_state *tok) { in fp_getc()
499 static void fp_ungetc(int c, struct tok_state *tok) { in fp_ungetc()
507 decoding_fgets(char *s, int size, struct tok_state *tok) in decoding_fgets()
565 decoding_feof(struct tok_state *tok) in decoding_feof()
587 buf_getc(struct tok_state *tok) { in buf_getc()
594 buf_ungetc(int c, struct tok_state *tok) { in buf_ungetc()
603 buf_setreadl(struct tok_state *tok, const char* enc) { in buf_setreadl()
626 translate_newlines(const char *s, int exec_input, struct tok_state *tok) { in translate_newlines()
670 decode_str(const char *input, int single, struct tok_state *tok) in decode_str()
736 struct tok_state *tok = tok_new(); in PyTokenizer_FromString() local
756 struct tok_state *tok = tok_new(); in PyTokenizer_FromFile() local
775 PyTokenizer_Free(struct tok_state *tok) in PyTokenizer_Free()
792 tok_stdin_decode(struct tok_state *tok, char **inp) in tok_stdin_decode()
857 tok_nextc(register struct tok_state *tok) in tok_nextc()
1030 tok_backup(register struct tok_state *tok, register int c) in tok_backup()
1198 indenterror(struct tok_state *tok) in indenterror()
1216 tok_get(register struct tok_state *tok, char **p_start, char **p_end) in tok_get()
1681 PyTokenizer_Get(struct tok_state *tok, char **p_start, char **p_end) in PyTokenizer_Get()
1702 PyTokenizer_RestoreEncoding(struct tok_state* tok, int len, int* offset) in PyTokenizer_RestoreEncoding()
1722 PyTokenizer_RestoreEncoding(struct tok_state* tok, int len, int *offset) in PyTokenizer_RestoreEncoding()