diff options
| author | Damien George | 2014-01-03 14:03:48 +0000 |
|---|---|---|
| committer | Damien George | 2014-01-03 14:03:48 +0000 |
| commit | 66028ab6dcd1b2ec9504c3473d817649935a4a1e (patch) | |
| tree | c441ee4d665b3218e235dec24dd5a66a6fe050ef /py/lexerunix.h | |
| parent | aae7847508e2a9555ad3276c5cd4f42b2e66686c (diff) | |
Basic implementation of import.
import works for simple cases. Still work to do on finding the right
script, and setting globals/locals correctly when running an imported
function.
Diffstat (limited to 'py/lexerunix.h')
| -rw-r--r-- | py/lexerunix.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/py/lexerunix.h b/py/lexerunix.h index d86f202d5..b422a4306 100644 --- a/py/lexerunix.h +++ b/py/lexerunix.h @@ -1,2 +1,4 @@ mp_lexer_t *mp_lexer_new_from_str_len(const char *src_name, const char *str, uint len, bool free_str); mp_lexer_t *mp_lexer_new_from_file(const char *filename); + +void mp_import_set_directory(const char *dir); |
