py: Allow to compile with extra warnings (sign-compare, unused-param).

This commit is contained in:
Damien George
2015-03-19 00:21:29 +00:00
parent 02894b51f4
commit 2e2e404ff7
5 changed files with 16 additions and 11 deletions

View File

@@ -141,7 +141,8 @@ typedef enum _mp_token_kind_t {
// the next-byte function must return the next byte in the stream
// it must return MP_LEXER_EOF if end of stream
// it can be called again after returning MP_LEXER_EOF, and in that case must return MP_LEXER_EOF
#define MP_LEXER_EOF (-1)
#define MP_LEXER_EOF ((unichar)(-1))
typedef mp_uint_t (*mp_lexer_stream_next_byte_t)(void*);
typedef void (*mp_lexer_stream_close_t)(void*);