From 2e2e404ff77e95dbe4fee0f19c91913a5888fb6f Mon Sep 17 00:00:00 2001 From: Damien George Date: Thu, 19 Mar 2015 00:21:29 +0000 Subject: py: Allow to compile with extra warnings (sign-compare, unused-param). --- py/lexer.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'py/lexer.c') diff --git a/py/lexer.c b/py/lexer.c index e77851020..536208e41 100644 --- a/py/lexer.c +++ b/py/lexer.c @@ -58,33 +58,33 @@ STATIC bool is_physical_newline(mp_lexer_t *lex) { return lex->chr0 == '\n'; } -STATIC bool is_char(mp_lexer_t *lex, char c) { +STATIC bool is_char(mp_lexer_t *lex, byte c) { return lex->chr0 == c; } -STATIC bool is_char_or(mp_lexer_t *lex, char c1, char c2) { +STATIC bool is_char_or(mp_lexer_t *lex, byte c1, byte c2) { return lex->chr0 == c1 || lex->chr0 == c2; } -STATIC bool is_char_or3(mp_lexer_t *lex, char c1, char c2, char c3) { +STATIC bool is_char_or3(mp_lexer_t *lex, byte c1, byte c2, byte c3) { return lex->chr0 == c1 || lex->chr0 == c2 || lex->chr0 == c3; } /* -STATIC bool is_char_following(mp_lexer_t *lex, char c) { +STATIC bool is_char_following(mp_lexer_t *lex, byte c) { return lex->chr1 == c; } */ -STATIC bool is_char_following_or(mp_lexer_t *lex, char c1, char c2) { +STATIC bool is_char_following_or(mp_lexer_t *lex, byte c1, byte c2) { return lex->chr1 == c1 || lex->chr1 == c2; } -STATIC bool is_char_following_following_or(mp_lexer_t *lex, char c1, char c2) { +STATIC bool is_char_following_following_or(mp_lexer_t *lex, byte c1, byte c2) { return lex->chr2 == c1 || lex->chr2 == c2; } -STATIC bool is_char_and(mp_lexer_t *lex, char c1, char c2) { +STATIC bool is_char_and(mp_lexer_t *lex, byte c1, byte c2) { return lex->chr0 == c1 && lex->chr1 == c2; } -- cgit v1.2.3