summaryrefslogtreecommitdiffstatshomepage
path: root/py/objgetitemiter.c
diff options
context:
space:
mode:
authorPaul Sokolovsky <pfalcon@users.sourceforge.net>2014-02-12 18:15:40 +0200
committerPaul Sokolovsky <pfalcon@users.sourceforge.net>2014-02-12 18:21:11 +0200
commitd5df6cd44a433d6253a61cb0f987835fbc06b2de (patch)
tree76cdea7b7fa8c6664f711314912837861b3906e4 /py/objgetitemiter.c
parent1d1e38d91103cc9a3941a55048fc446290aca64e (diff)
downloadmicropython-d5df6cd44a433d6253a61cb0f987835fbc06b2de.tar.gz
micropython-d5df6cd44a433d6253a61cb0f987835fbc06b2de.zip
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().
Diffstat (limited to 'py/objgetitemiter.c')
-rw-r--r--py/objgetitemiter.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/py/objgetitemiter.c b/py/objgetitemiter.c
index 40ed1a1520..0b8b43913f 100644
--- a/py/objgetitemiter.c
+++ b/py/objgetitemiter.c
@@ -15,7 +15,7 @@ typedef struct _mp_obj_getitem_iter_t {
mp_obj_t args[3];
} mp_obj_getitem_iter_t;
-static mp_obj_t it_iternext(mp_obj_t self_in) {
+STATIC mp_obj_t it_iternext(mp_obj_t self_in) {
mp_obj_getitem_iter_t *self = self_in;
nlr_buf_t nlr;
if (nlr_push(&nlr) == 0) {
@@ -36,7 +36,7 @@ static mp_obj_t it_iternext(mp_obj_t self_in) {
}
}
-static const mp_obj_type_t it_type = {
+STATIC const mp_obj_type_t it_type = {
{ &mp_const_type },
"iterator",
.iternext = it_iternext