From 031278f661e5d285c56359e355a96161bf6e1a9f Mon Sep 17 00:00:00 2001 From: Damien George Date: Thu, 4 Jun 2015 23:42:45 +0100 Subject: unix: Allow to cat a script into stdin from the command line. See issue #1306. --- py/lexer.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'py/lexer.h') diff --git a/py/lexer.h b/py/lexer.h index 17c472d98..36d1e99d2 100644 --- a/py/lexer.h +++ b/py/lexer.h @@ -194,4 +194,8 @@ typedef enum { mp_import_stat_t mp_import_stat(const char *path); mp_lexer_t *mp_lexer_new_from_file(const char *filename); +#if MICROPY_HELPER_LEXER_UNIX +mp_lexer_t *mp_lexer_new_from_fd(qstr filename, int fd, bool close_fd); +#endif + #endif // __MICROPY_INCLUDED_PY_LEXER_H__ -- cgit v1.2.3