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/qstr.c | |
parent | d5df6cd44a433d6253a61cb0f987835fbc06b2de (diff) |
Replace global "static" -> "STATIC", to allow "analysis builds". Part 2.
Diffstat (limited to 'py/qstr.c')
-rw-r--r-- | py/qstr.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -60,13 +60,13 @@ const static qstr_pool_t const_pool = { }, }; -static qstr_pool_t *last_pool; +STATIC qstr_pool_t *last_pool; void qstr_init(void) { last_pool = (qstr_pool_t*)&const_pool; // we won't modify the const_pool since it has no allocated room left } -static const byte *find_qstr(qstr q) { +STATIC const byte *find_qstr(qstr q) { // search pool for this qstr for (qstr_pool_t *pool = last_pool; pool != NULL; pool = pool->prev) { if (q >= pool->total_prev_len) { @@ -78,7 +78,7 @@ static const byte *find_qstr(qstr q) { return 0; } -static qstr qstr_add(const byte *q_ptr) { +STATIC qstr qstr_add(const byte *q_ptr) { DEBUG_printf("QSTR: add hash=%d len=%d data=%.*s\n", Q_GET_HASH(q_ptr), Q_GET_LENGTH(q_ptr), Q_GET_LENGTH(q_ptr), Q_GET_DATA(q_ptr)); // make sure we have room in the pool for a new qstr |