From d5df6cd44a433d6253a61cb0f987835fbc06b2de Mon Sep 17 00:00:00 2001 From: Paul Sokolovsky Date: Wed, 12 Feb 2014 18:15:40 +0200 Subject: 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(). --- py/objslice.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'py/objslice.c') diff --git a/py/objslice.c b/py/objslice.c index d5c31f446..b62c4e09b 100644 --- a/py/objslice.c +++ b/py/objslice.c @@ -27,7 +27,7 @@ const mp_obj_type_t ellipsis_type = { .print = ellipsis_print, }; -static const mp_obj_ellipsis_t ellipsis_obj = {{&ellipsis_type}}; +STATIC const mp_obj_ellipsis_t ellipsis_obj = {{&ellipsis_type}}; const mp_obj_t mp_const_ellipsis = (mp_obj_t)&ellipsis_obj; /******************************************************************************/ -- cgit v1.2.3