diff options
author | ian-v <ianv888@gmail.com> | 2014-01-06 13:51:53 -0800 |
---|---|---|
committer | ian-v <ianv888@gmail.com> | 2014-01-06 13:51:53 -0800 |
commit | 5fd8fd2c16076f683b629b513e8865e461d4c9a8 (patch) | |
tree | 9f10aab33ca9b4325cbe84c41b1e4d614d202021 /py/lexerunix.c | |
parent | 7a16fadbf843ca5d49fb20b5f5785ffccfd9019f (diff) | |
download | micropython-5fd8fd2c16076f683b629b513e8865e461d4c9a8.tar.gz micropython-5fd8fd2c16076f683b629b513e8865e461d4c9a8.zip |
Revert MP_BOOL, etc. and use <stdbool.h> instead
Diffstat (limited to 'py/lexerunix.c')
-rw-r--r-- | py/lexerunix.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/py/lexerunix.c b/py/lexerunix.c index 935fed0d32..14c28c16d9 100644 --- a/py/lexerunix.c +++ b/py/lexerunix.c @@ -7,7 +7,7 @@ #include "lexer.h" typedef struct _str_buf_t { - MP_BOOL free; // free src_beg when done + bool free; // free src_beg when done const char *src_beg; // beginning of source const char *src_cur; // current location in source const char *src_end; // end (exclusive) of source @@ -30,7 +30,7 @@ void str_buf_free(str_buf_t *sb) { } } -mp_lexer_t *mp_lexer_new_from_str_len(const char *src_name, const char *str, uint len, MP_BOOL free_str) { +mp_lexer_t *mp_lexer_new_from_str_len(const char *src_name, const char *str, uint len, bool free_str) { str_buf_t *sb = m_new(str_buf_t, 1); sb->free = free_str; sb->src_beg = str; @@ -56,7 +56,7 @@ mp_lexer_t *mp_lexer_new_from_file(const char *filename) { return NULL; } - return mp_lexer_new_from_str_len(filename, data, size, MP_TRUE); + return mp_lexer_new_from_str_len(filename, data, size, true); } /******************************************************************************/ |