diff options
author | Damien George <damien.p.george@gmail.com> | 2014-06-11 19:55:46 +0100 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2014-06-11 19:55:46 +0100 |
commit | 8a0801ad24eb7cab4b80ff23249412d7a8af9995 (patch) | |
tree | 7695c5ac0564cfa2506cb2445f2f8c1160d4976e /py | |
parent | 73c98d87092910b04bb026e0da69ac4f390c62e3 (diff) | |
download | micropython-8a0801ad24eb7cab4b80ff23249412d7a8af9995.tar.gz micropython-8a0801ad24eb7cab4b80ff23249412d7a8af9995.zip |
py: Make 3 functions static.
Diffstat (limited to 'py')
-rw-r--r-- | py/builtinimport.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/py/builtinimport.c b/py/builtinimport.c index 44ba4d5541..467a27897c 100644 --- a/py/builtinimport.c +++ b/py/builtinimport.c @@ -54,7 +54,7 @@ #define PATH_SEP_CHAR '/' -mp_import_stat_t stat_dir_or_file(vstr_t *path) { +STATIC mp_import_stat_t stat_dir_or_file(vstr_t *path) { //printf("stat %s\n", vstr_str(path)); mp_import_stat_t stat = mp_import_stat(vstr_str(path)); if (stat == MP_IMPORT_STAT_DIR) { @@ -68,7 +68,7 @@ mp_import_stat_t stat_dir_or_file(vstr_t *path) { return MP_IMPORT_STAT_NO_EXIST; } -mp_import_stat_t find_file(const char *file_str, uint file_len, vstr_t *dest) { +STATIC mp_import_stat_t find_file(const char *file_str, uint file_len, vstr_t *dest) { // extract the list of paths uint path_num = 0; mp_obj_t *path_items; @@ -102,7 +102,7 @@ mp_import_stat_t find_file(const char *file_str, uint file_len, vstr_t *dest) { } } -void do_load(mp_obj_t module_obj, vstr_t *file) { +STATIC void do_load(mp_obj_t module_obj, vstr_t *file) { // create the lexer mp_lexer_t *lex = mp_lexer_new_from_file(vstr_str(file)); |