unix: Allow to cat a script into stdin from the command line.

See issue #1306.
This commit is contained in:
Damien George
2015-06-04 23:42:45 +01:00
parent 9724a0538b
commit 031278f661
4 changed files with 36 additions and 11 deletions

View File

@@ -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__