Replace global "static" -> "STATIC", to allow "analysis builds". Part 1.
Some tools do not support local/static symbols (one example is GNU ld map file).
Exposing all functions will allow to do detailed size comparisons, etc.
Also, added bunch of statics where they were missing, and replaced few identity
functions with global mp_identity().
diff --git a/py/objzip.c b/py/objzip.c
index 6560a08..5e5d35d 100644
--- a/py/objzip.c
+++ b/py/objzip.c
@@ -13,7 +13,7 @@
mp_obj_t iters[];
} mp_obj_zip_t;
-static mp_obj_t zip_make_new(mp_obj_t type_in, uint n_args, uint n_kw, const mp_obj_t *args) {
+STATIC mp_obj_t zip_make_new(mp_obj_t type_in, uint n_args, uint n_kw, const mp_obj_t *args) {
// TODO check n_kw == 0
mp_obj_zip_t *o = m_new_obj_var(mp_obj_zip_t, mp_obj_t, n_args);
@@ -25,11 +25,11 @@
return o;
}
-static mp_obj_t zip_getiter(mp_obj_t self_in) {
+STATIC mp_obj_t zip_getiter(mp_obj_t self_in) {
return self_in;
}
-static mp_obj_t zip_iternext(mp_obj_t self_in) {
+STATIC mp_obj_t zip_iternext(mp_obj_t self_in) {
assert(MP_OBJ_IS_TYPE(self_in, &zip_type));
mp_obj_zip_t *self = self_in;
mp_obj_t *items;