summaryrefslogtreecommitdiff
path: root/py/malloc.c
diff options
context:
space:
mode:
authorPaul Sokolovsky <pfalcon@users.sourceforge.net>2014-02-12 18:31:30 +0200
committerPaul Sokolovsky <pfalcon@users.sourceforge.net>2014-02-12 18:31:30 +0200
commit520e2f58a559c356ea540a5da4e9a585649aecc6 (patch)
tree864ecd62ad09ab6c1af200a52b7227f8cfdeb6b6 /py/malloc.c
parentd5df6cd44a433d6253a61cb0f987835fbc06b2de (diff)
Replace global "static" -> "STATIC", to allow "analysis builds". Part 2.
Diffstat (limited to 'py/malloc.c')
-rw-r--r--py/malloc.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/py/malloc.c b/py/malloc.c
index 7f55fa7c8..5699d86b6 100644
--- a/py/malloc.c
+++ b/py/malloc.c
@@ -12,9 +12,9 @@
#endif
#if MICROPY_MEM_STATS
-static int total_bytes_allocated = 0;
-static int current_bytes_allocated = 0;
-static int peak_bytes_allocated = 0;
+STATIC int total_bytes_allocated = 0;
+STATIC int current_bytes_allocated = 0;
+STATIC int peak_bytes_allocated = 0;
#define UPDATE_PEAK() { if (current_bytes_allocated > peak_bytes_allocated) peak_bytes_allocated = current_bytes_allocated; }
#endif