From 520e2f58a559c356ea540a5da4e9a585649aecc6 Mon Sep 17 00:00:00 2001 From: Paul Sokolovsky Date: Wed, 12 Feb 2014 18:31:30 +0200 Subject: Replace global "static" -> "STATIC", to allow "analysis builds". Part 2. --- py/emitpass1.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'py/emitpass1.c') diff --git a/py/emitpass1.c b/py/emitpass1.c index 634d09051..d49265239 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); } -- cgit v1.2.3