Skip to content

Commit 8a0801a

Browse files
committed
py: Make 3 functions static.
1 parent 73c98d8 commit 8a0801a

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

py/builtinimport.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454

5555
#define PATH_SEP_CHAR '/'
5656

57-
mp_import_stat_t stat_dir_or_file(vstr_t *path) {
57+
STATIC mp_import_stat_t stat_dir_or_file(vstr_t *path) {
5858
//printf("stat %s\n", vstr_str(path));
5959
mp_import_stat_t stat = mp_import_stat(vstr_str(path));
6060
if (stat == MP_IMPORT_STAT_DIR) {
@@ -68,7 +68,7 @@ mp_import_stat_t stat_dir_or_file(vstr_t *path) {
6868
return MP_IMPORT_STAT_NO_EXIST;
6969
}
7070

71-
mp_import_stat_t find_file(const char *file_str, uint file_len, vstr_t *dest) {
71+
STATIC mp_import_stat_t find_file(const char *file_str, uint file_len, vstr_t *dest) {
7272
// extract the list of paths
7373
uint path_num = 0;
7474
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) {
102102
}
103103
}
104104

105-
void do_load(mp_obj_t module_obj, vstr_t *file) {
105+
STATIC void do_load(mp_obj_t module_obj, vstr_t *file) {
106106
// create the lexer
107107
mp_lexer_t *lex = mp_lexer_new_from_file(vstr_str(file));
108108

0 commit comments

Comments
 (0)