diff options
author | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2014-02-12 18:31:30 +0200 |
---|---|---|
committer | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2014-02-12 18:31:30 +0200 |
commit | 520e2f58a559c356ea540a5da4e9a585649aecc6 (patch) | |
tree | 864ecd62ad09ab6c1af200a52b7227f8cfdeb6b6 /py/emitpass1.c | |
parent | d5df6cd44a433d6253a61cb0f987835fbc06b2de (diff) | |
download | micropython-520e2f58a559c356ea540a5da4e9a585649aecc6.tar.gz micropython-520e2f58a559c356ea540a5da4e9a585649aecc6.zip |
Replace global "static" -> "STATIC", to allow "analysis builds". Part 2.
Diffstat (limited to 'py/emitpass1.c')
-rw-r--r-- | py/emitpass1.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/py/emitpass1.c b/py/emitpass1.c index 634d090518..d492652399 100644 --- a/py/emitpass1.c +++ b/py/emitpass1.c @@ -27,18 +27,18 @@ void emit_pass1_free(emit_t *emit) { m_del_obj(emit_t, emit); } -static void emit_pass1_dummy(emit_t *emit) { +STATIC void emit_pass1_dummy(emit_t *emit) { } -static void emit_pass1_start_pass(emit_t *emit, pass_kind_t pass, scope_t *scope) { +STATIC void emit_pass1_start_pass(emit_t *emit, pass_kind_t pass, scope_t *scope) { assert(pass == PASS_1); emit->scope = scope; } -static void emit_pass1_end_pass(emit_t *emit) { +STATIC void emit_pass1_end_pass(emit_t *emit) { } -static void emit_pass1_load_id(emit_t *emit, qstr qstr) { +STATIC void emit_pass1_load_id(emit_t *emit, qstr qstr) { // name adding/lookup bool added; id_info_t *id = scope_find_or_add_id(emit->scope, qstr, &added); @@ -69,7 +69,7 @@ static void emit_pass1_load_id(emit_t *emit, qstr qstr) { } } -static id_info_t *get_id_for_modification(scope_t *scope, qstr qstr) { +STATIC id_info_t *get_id_for_modification(scope_t *scope, qstr qstr) { // name adding/lookup bool added; id_info_t *id = scope_find_or_add_id(scope, qstr, &added); @@ -89,11 +89,11 @@ static id_info_t *get_id_for_modification(scope_t *scope, qstr qstr) { return id; } -static void emit_pass1_store_id(emit_t *emit, qstr qstr) { +STATIC void emit_pass1_store_id(emit_t *emit, qstr qstr) { get_id_for_modification(emit->scope, qstr); } -static void emit_pass1_delete_id(emit_t *emit, qstr qstr) { +STATIC void emit_pass1_delete_id(emit_t *emit, qstr qstr) { get_id_for_modification(emit->scope, qstr); } |