aboutsummaryrefslogtreecommitdiff
path: root/py/frozenmod.h
diff options
context:
space:
mode:
authorScott Shawcroft <scott@chickadee.tech>2017-08-10 15:46:17 -0700
committerScott Shawcroft <scott@chickadee.tech>2017-08-10 15:46:17 -0700
commitf6a702538a0b3dd72879d65e3acc32520d4371f5 (patch)
tree9458c2136d681a962dbc88c2ab592404abafcc18 /py/frozenmod.h
parent5c32a5aa6a9ab207235db340576bdc6a8ed81225 (diff)
py: Pretend frozen files are stored under .frozen rather than the empty path.
This makes it clear when frozen modules are loaded as opposed to the empty path which represents the current working directory. Furthermore, by splitting the two apart this allows one to control in what order frozen modules are loaded. This is a prerequisite for #56.
Diffstat (limited to 'py/frozenmod.h')
-rw-r--r--py/frozenmod.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/py/frozenmod.h b/py/frozenmod.h
index 4b125ff24..de11e4a61 100644
--- a/py/frozenmod.h
+++ b/py/frozenmod.h
@@ -33,5 +33,5 @@ enum {
};
int mp_find_frozen_module(const char *str, size_t len, void **data);
-const char *mp_find_frozen_str(const char *str, size_t *len);
+const char *mp_find_frozen_str(const char *str, size_t str_len, size_t *len);
mp_import_stat_t mp_frozen_stat(const char *str);