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/vstr.c | |
parent | d5df6cd44a433d6253a61cb0f987835fbc06b2de (diff) |
Replace global "static" -> "STATIC", to allow "analysis builds". Part 2.
Diffstat (limited to 'py/vstr.c')
-rw-r--r-- | py/vstr.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -3,6 +3,7 @@ #include <string.h> #include <assert.h> #include "misc.h" +#include "mpconfig.h" // returned value is always at least 1 greater than argument #define ROUND_ALLOC(a) (((a) & ((~0) - 7)) + 8) @@ -124,7 +125,7 @@ bool vstr_shrink(vstr_t *vstr) { return vstr_set_size(vstr, vstr->len); } -static bool vstr_ensure_extra(vstr_t *vstr, int size) { +STATIC bool vstr_ensure_extra(vstr_t *vstr, int size) { if (vstr->len + size + 1 > vstr->alloc) { if (vstr->fixed_buf) { return false; |