Searched refs:tok_state (Results 1 – 3 of 3) sorted by relevance
/external/python/cpython2/Parser/ |
D | tokenizer.h | 16 struct tok_state { struct 58 extern struct tok_state *PyTokenizer_FromString(const char *, int); argument 59 extern struct tok_state *PyTokenizer_FromFile(FILE *, char *, char *); 60 extern void PyTokenizer_Free(struct tok_state *); 61 extern int PyTokenizer_Get(struct tok_state *, char **, char **); 63 extern char * PyTokenizer_RestoreEncoding(struct tok_state* tok,
|
D | tokenizer.c | 31 static struct tok_state *tok_new(void); 32 static int tok_nextc(struct tok_state *tok); 33 static void tok_backup(struct tok_state *tok, int c); 97 static struct tok_state * 100 struct tok_state *tok = (struct tok_state *)PyMem_MALLOC( in tok_new() 101 sizeof(struct tok_state)); in tok_new() 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() [all …]
|
D | parsetok.c | 17 static node *parsetok(struct tok_state *, grammar *, int, perrdetail *, int *); 50 struct tok_state *tok; in PyParser_ParseStringFlagsFilenameEx() 91 struct tok_state *tok; in PyParser_ParseFileFlagsEx() 129 parsetok(struct tok_state *tok, grammar *g, int start, perrdetail *err_ret, in parsetok()
|